当我尝试在新 Debian 上安装 sudo 时,“无法找到 sudo 包”

Jan*_*sse 6 linux debian sudo apt-get debian-jessie

我在一个小型 VPS 上安装了一个新的 Debian,现在当我尝试安装 sudo 时,我只是收到此消息。我还尝试将 FTP 服务器添加到列表中,但仍然收到该错误。

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
Run Code Online (Sandbox Code Playgroud)

有谁知道这个问题吗?

Vis*_*ant 6

apt-get update
apt-get install sudo
Run Code Online (Sandbox Code Playgroud)


Pro*_*sue 4

在这里验证您的来源

尝试使用apt-get install sudo来获取它。

您可以将用户配置为通过其配置文件使用它:

vi /etc/sudoers

add a line:

user ALL=(ALL) ALL
Run Code Online (Sandbox Code Playgroud)

  • @Janlasse 首先尝试运行 `apt-get update` 来同步包列表。 (11认同)