On Nautilus-dropbox installation on Ubuntu

I’ll have to say it’s somewhat problematic…

The installation usually would stalk somewhere and later gives you this error:

E: Unable to lock the administration directory /var/lib/dpkg/lock?

How to fix it:

sudo rm /var/lib/dpkg/lock should do the trick. You can use ps afx|grep dpkg to check if there is still a process runnning at the same time. sudo killall dpkg will stop all running dpkg processes.

If you need to cancel the dropbox installation, try sudo dpkg –force-remove-reinstreq –remove nautilus-dropbox