我刚刚使用完整的光盘映像 (debian-9.8.0-amd64-xfce-CD-1) 安装了 debian 9,以便在 Windows 10 主机的 64 位环境中安装在 VirtualBox 上。在安装过程中,我取消选中桌面环境和 xfce 复选框。我选中了实用程序复选框。我这样做是因为我想留下一个轻量级安装作为本地服务器使用。
尝试使用 apt 安装“sudo”包。
我已经注释掉了 CD-rom 源并将这些源添加到/etc/apt/sources.list
;
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
deb http://ftp.debian.org/debian/ stretch-updates main non-free
deb-src http://ftp.debian.org/debian/ stretch-updates main non-free
然后我跑了apt update
和apt upgrade
。
除此之外,我遇到了一个问题。当我尝试运行时apt install sudo
,我得到以下信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sud is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sudo' has no installation candidate
apt-cache policy sudo
当我按照它显示的那样运行时,我可以看到这是真的:
sudo:
Installed: (none)
Candidate: (none)
Version table: