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

1

1

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

Posted 2017-03-10T15:26:54.813

Reputation: 13

Answers

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

Pythonic

Posted 2017-03-10T15:26:54.813

Reputation: 309

I was trying to install it with apt-get install sudo – Janlasse – 2017-03-10T15:32:24.210

3@Janlasse Try running apt-get update first to synchronize package lists. – Marek Rost – 2017-03-10T15:41:16.563

@MarekRost Thanks this works for me. After updating I'm able to install sudo. – Nicholas Humphrey – 2019-04-26T16:23:36.167

0

add to /etc/apt/sources.list

deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main

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

qrtLs

Posted 2017-03-10T15:26:54.813

Reputation: 101