I attempted to install dropbox on my Ubuntu system, but now I am unable to install or uninstall any software. I get this error:
E: Unable to lock the administration directory /var/lib/dpkg/lock?
I have already tried killing dpkg
and restarting it sudo kill -TERM PID
but it immediately tries to finish the installation again and gets stuck.
How do I resolve this?
pgrep -f 'dpkg|apt'
instead ofps ... | grep ...
because it's wrong;ps ... | grep -v grep | grep ...
is the old way to do it. – dhchdhd Sep 12 '17 at 21:36