I am noob with Ubuntu and i was trying to upgrade my Ubuntu 18.04 to 18.10 with the command sudo apt dist-upgrade and everything was running smoothly, but at some point of the upgrade i saw that my terminal was shutdown by itself... I am trying to do this locally, not by ssh and now i dont know what to do... I cant restart my computer as it says
Incorrect permission on /usr/lib/policykit-1/polkid-agent-helper-1 (needs to be setuid root)
and i have two options Cancel or 'Authenticate` and when i click on authenticate nothing happens...
Also when i try to run sudo apt dist-upgrade again i got this error
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
What i have to do now?