"Unable to locate package sudo" when i try to install sudo on new Debian

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 jessie main contrib non-free
deb main contrib non-free
deb jessie/updates main contrib non-free

Does any one maybe know the problem?

3 Answers

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
3
apt-get update
apt-get install sudo
2

add to /etc/apt/sources.list

deb stretch main
deb-src stretch main

and run su && apt-get update. now open new shell and itll be available

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like