"Unable to locate package sudo" when i try to install sudo on new Debian
22,334
Solution 1
Verify your sources here
Try using apt-get install sudo
to get it.
You can configure users to use it with its config file:
vi /etc/sudoers
add a line:
user ALL=(ALL) ALL
Solution 2
apt-get update
apt-get install sudo
Related videos on Youtube
Author by
Janlasse
Updated on September 18, 2022Comments
-
Janlasse over 1 year
i installed a new Debian on a small VPS and now when i try to install sudo i just get this message. I also tried to add FTP-Server into the list and i still get that error.
root@srv45758:~# vi /etc/apt/sources.list deb http://ftp.de.debian.org/debian/ jessie main contrib non-free deb http://ftp.de.debian.org/debian/ main contrib non-free deb http://security.debian.org jessie/updates main contrib non-free
Does any one maybe know the problem?
-
Janlasse about 7 yearsI was trying to install it with apt-get install sudo
-
Marek Rost about 7 years@Janlasse Try running
apt-get update
first to synchronize package lists. -
Nicholas Humphrey about 5 years@MarekRost Thanks this works for me. After updating I'm able to install sudo.
-
Toto over 2 yearsCode without any explanation is useless. Can you elaborate on this a little more?
-
Vishrant over 2 yearsthese commands are self-explanatory, you may google and post a question on which part is not clear.