"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
Share:
22,334

Related videos on Youtube

Janlasse
Author by

Janlasse

Updated on September 18, 2022

Comments

  • Janlasse
    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
    Janlasse about 7 years
    I was trying to install it with apt-get install sudo
  • Marek Rost
    Marek Rost about 7 years
    @Janlasse Try running apt-get update first to synchronize package lists.
  • Nicholas Humphrey
    Nicholas Humphrey about 5 years
    @MarekRost Thanks this works for me. After updating I'm able to install sudo.
  • Toto
    Toto over 2 years
    Code without any explanation is useless. Can you elaborate on this a little more?
  • Vishrant
    Vishrant over 2 years
    these commands are self-explanatory, you may google and post a question on which part is not clear.