我尝试在运行 Debian 6 的专用计算机上安装 sudo 并出现错误:
Err http://ftp.us.debian.org/debian/ squeeze/main sudo i386 1.7.4p4-2.squeeze.2
404 Not Found [IP: 128.30.2.26 80]
E: Failed to fetch http://ftp.us.debian.org/debian/pool/main/s/sudo/sudo_1.7.4p4-2.squeeze.2_i386.deb: 404 Not Found [IP: 128.30.2.26 80]
我认为这是因为不支持源列表。没有这样的文件/etc/apt/sources.list
。但我有一个目录/etc/apt/sources.list.d
,其中包含以下内容的文件:
cat multistrap-caenrfid-stable.list
deb http://support.caenrfid.it/debian stable main
deb-src http://support.caenrfid.it/debian stable main
multistrap-debian.list
deb http://ftp.us.debian.org/debian squeeze main
deb-src http://ftp.us.debian.org/debian squeeze main
multistrap-fallback.list
deb http://archive.debian.org/debian lenny main
deb-src http://archive.debian.org/debian lenny main
multistrap-webmin.list
deb http://download.webmin.com/download/repository sarge contrib
我应该怎么做才能安装sudo
?
答案1
Debian Squeeze 是 Debian Live 的终结版本。根据Debian 文档您的 sources.list 应该只包含以下几行:
deb http://archive.debian.org/debian squeeze main
deb http://archive.debian.org/debian squeeze-lts main
您正在使用混合 sources.list,可能会导致一些依赖问题。
按照上述说明创建/etc/apt/sources.list
文件并删除目录下的文件/etc/apt/sources.list.d/
,然后运行(以 root 身份):
apt-get update
apt-get dist-upgrade
apt-get install sudo