apt - sudo is removed - Ask Ubuntu
i new ubuntu operating system. sudo not working in laptop. , system settings disable , ubuntu software center disappear when type sudo on terminal.
~$ sudo program 'sudo' can found in following packages: * sudo * sudo-ldap try: sudo apt-get install <selected package>
then surf web find out apt-get install sudo
problem
~$ apt-get install sudo e: not open lock file /var/lib/dpkg/lock - open (13: permission denied) e: unable lock administration directory (/var/lib/dpkg/), root?
then copy , paste above issues file , lock adminstration directory
:~$ ps -e | grep -e apt -e adept | grep -v grep ~$ rm /var/lib/dpkg/lock
then show the
ps -e | grep -e apt -e adept | grep -v grep venki@venki-inspiron-3558:~$ rm /var/lib/dpkg/lock rm: remove write-protected regular empty file ‘/var/lib/dpkg/lock’?
the cursor not respond please me anyone
you can enter in single user mode grub menu selecting recovery mode. drop bash shell , have root
acces. install sudo
...
apt-get install sudo
there more though: gksu
dependency of it. simplest may ...
apt-get install ubuntu-desktop
to (and other software got nuked when removed sudo
).
Comments
Post a Comment