Linked Questions

11
votes
5answers
2k views

sudo is deleted [duplicate]

How can I install the sudo package? $ apt-get install sudo E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/...
3
votes
1answer
1k views

How can I install sudo without using su? [duplicate]

I need to use sudo but when I try to use it, a prompt tells me the command is not found and I need to install sudo. So when I switch to su so I can gain root access to install sudo, it says auth ...
8
votes
1answer
2k views

Accidentally deleted 'sudo' [duplicate]

I accidentally deleted the /usr/bin/sudo file. How can I restore it? I have found a thread on ubuntuforums, but it seems to be not solved.
0
votes
1answer
260 views

Command sudo not found, even though it is installed [duplicate]

This happened to me after installing java. I believe I messed with the ./bashrc file if I'm correct. I've checked my files and sudo is still there, but ubuntu seems to not be able to find it. Before ...
1
vote
1answer
297 views

command not found: sudo [duplicate]

After reading about the lately discovered vulnerability with sudo, I decided to update to 1.8.28 manually. I downloaded deb file from sudo.ws and used dpkg to install it, and it failed due to lack of ...
0
votes
1answer
63 views

sudo does not work after purging an app [duplicate]

After I removed an app with purge, I cannot use sudo or apt-get any more and get this error. -bash: /usr/bin/sudo: No such file or directory Do you have any suggestions? version: Ubuntu 16.04
243
votes
13answers
375k views

How to modify an invalid '/etc/sudoers' file?

How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it. Here is what happens: $ sudo visudo >>> /etc/sudoers: syntax error near ...
3
votes
4answers
19k views

Accidentally deleted /etc/sudoers file

I get the following error while trying to update my repositories, avinash@avinash-VirtualBox:~$ sudo apt-get update sudo: unable to stat /etc/sudoers: No such file or directory sudo: no valid ...
10
votes
1answer
5k views

Why is pkexec preferred over gksudo for graphical applications?

Please provide Ubuntu documentation that refutes this: https://help.ubuntu.com/community/RootSudo Why, on my fully updated 13.04 system, does pkexec not function? $ pkexec gedit somefile.txt No ...
0
votes
1answer
469 views

sudo is not installed, both sudo and su are not working

When trying to switch to root using sudo su : Error- sudo is not installed When trying to switch with su command: Error- this program is not installed $ cat /etc/os-release NAME="Ubuntu" VERSION="...
0
votes
2answers
135 views

Can't use sudo. wrong ELF class

I'm using Ubuntu 18.04. Whenever I try to use sudo, I get: [sudo] password for user: fingerprint-helper: error while loading shared libraries: libaudio.so.2: wrong ELF class: ELFCLASS32 so I cannot ...
3
votes
1answer
136 views

sudo apt-get dist-upgrade removed sudo and other programs

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. ...
0
votes
0answers
25 views

How to log in to boot partition from live cd

I accidentally uninstall an important package, and need internet to reinstall it. I found it difficult to connect to mikrotik network via terminal, so maybe can i login into my boot partition from ...