I was following this guide on upgrading to Ubuntu 18.04, and after executing sudo apt-get dist-upgrade
, I did not bother to check that it prompted me that executing it will remove lots of programs. After dist-upgrade
, I noticed that I do not have sudo
anymore. I tried installing via install
but I get an error that looks like this:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
How can I recover from this?
pkexec
is not installed and I have to installpolicykit-1
. Runningapt-install policykit-1
results in the error message I posted. – akubi Jul 29 '19 at 01:00sudo
. – guiverc Jul 29 '19 at 01:30