Wednesday, April 6, 2016

Dropbox crash on Ubuntu 15.10 and what to do about it

My dropbox installation recently stopped working on my Ubuntu laptop. Starting from the icon did nothing and starting from the command line produced the following cryptic output:

bjorn@bjorn-ThinkPad-T450s:~$ dropbox start
Starting Dropbox...Traceback (most recent call last):
  File "/usr/bin/dropbox", line 1535, in <module>
    ret = main(sys.argv)
  File "/usr/bin/dropbox", line 1524, in main
    result = commands[argv[i]](argv[i+1:])
  File "/usr/bin/dropbox", line 1395, in start
    if not start_dropbox():
  File "/usr/bin/dropbox", line 732, in start_dropbox
    stderr=sys.stderr, stdout=f, close_fds=True)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error

Reinstalling dropbox had no effect, but after some searching I found this post at askubuntu.

They recommended removing the .dropbox-dist folder in the home directory.
I did that, and then issued the following command:

bjorn@bjorn-ThinkPad-T450s:~$ dropbox start -i
Starting Dropbox...Done!

A dialog is initiated informing the user that the Dropbox daemon is being downloaded. After that Dropbox seems to work normally.