Ubuntu – Nautilus crashes when I open but runs with sudo

filemanagernautiluspermissionssudo

I just upgraded Ubuntu 16.04 to 18.04 and one of the issues I'm facing is that I can't view any folders and files because Nautilus crashes as soon as I try to open it:

$ nautilus
Initializing nautilus-dropbox 2019.02.14
Bus error (core dumped)

However, it works normally if I run sudo nautilus.

This makes me think there may be due to some sort of permission error.

How can I check which (if any) file Nautilus is trying to read which is causing it to crash?

Things I have tried

  • reinstall nautilus

  • make sure config files are owned by me: $ sudo chown -R felipe:felipe ~/.config/*

  • make sure dropbox config files under ~/.dropbox/ and under ~/.dropbox-dist are owned by me

  • list all files under my home and chown all configs and cache related files. (I couldn't chown /.gvfs and ~/.cache/doc, I get Function not implemented error message)

  • purge package nautilus-dropbox (it is not installed at all)

  • purge dropbox. Same error message but without the previous dropbox-related debug text:

    $ nautilus
    Bus error (core dumped)
    
  • ran strace nautilus for debugging. Last lines of log are here

PS the log message for when the nautilus app crashes at startup is different from the one I get when running nautilus on the cmd line. Here is the log for the startup crash: https://pastebin.com/mVx0E7SE

Best Answer

I suggest removing nautilus-dropbox by

sudo apt purge nautilus-dropbox

If you need a Dropbox service, you'd better install it from the Dropbox site.

https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2019.02.14_amd64.deb

If nothing helps you can create a new user and copy files from the old user to the new one. This should help for sure.

Related Question