我有一个带有 debian 7 (wheezy) 的 vps,我无法从它的存储库安装任何包。我以前从未使用过报废发行版,我想知道是否可以更改官方存储库以继续安装一些我需要的软件包。
我的vps的一些信息:
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
猫 /etc/apt/*.list
deb http://ftp.us.debian.org/debian/ stable main non-free contrib
deb http://ftp.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
sudo apt-get 更新
Obj http://ppa.launchpad.net trusty Release.gpg
Obj http://ppa.launchpad.net trusty Release
Obj http://ppa.launchpad.net trusty/main Sources
Obj http://ppa.launchpad.net trusty/main i386 Packages
Obj http://ppa.launchpad.net trusty/main Translation-en
Ign http://ftp.debian.org wheezy Release.gpg
Ign http://ftp.debian.org wheezy Release
Ign http://ftp.debian.org wheezy/main i386 Packages/DiffIndex
Ign http://security.debian.org wheezy/updates Release.gpg
Ign http://security.debian.org wheezy/updates Release
Ign http://security.debian.org wheezy/updates/main i386 Packages/DiffIndex
Obj https://deb.nodesource.com wheezy Release.gpg
Obj https://deb.nodesource.com wheezy Release
Obj https://deb.nodesource.com wheezy/main Sources
Obj https://deb.nodesource.com wheezy/main i386 Packages
Ign http://ftp.debian.org wheezy/main Translation-es_ES
Ign http://ftp.debian.org wheezy/main Translation-es
Ign http://ftp.debian.org wheezy/main Translation-en
Err http://ftp.debian.org wheezy/main i386 Packages
404 Not Found [IP: 2001:67c:2564:a119::148:12 80]
Ign http://security.debian.org wheezy/updates/main Translation-es_ES
Ign http://security.debian.org wheezy/updates/main Translation-es
Ign http://security.debian.org wheezy/updates/main Translation-en
Err http://security.debian.org wheezy/updates/main i386 Packages
404 Not Found [IP: 2a04:4e42:9::204 80]
Ign https://deb.nodesource.com wheezy/main Translation-es_ES
Ign https://deb.nodesource.com wheezy/main Translation-es
Ign https://deb.nodesource.com wheezy/main Translation-en
W: Imposible obtener http://ftp.debian.org/debian/dists/wheezy/main/binary-i386/Packages 404 Not Found [IP: 2001:67c:2564:a119::148:12 80]
W: Imposible obtener http://security.debian.org/dists/wheezy/updates/main/binary-i386/Packages 404 Not Found [IP: 2a04:4e42:9::204 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
您应该编辑您的
/etc/apt/sources.list
文件,使其包含(仅)特别是,您应该删除该
stable
行,否则您可能会无意中升级到 Debian 10。您似乎也有
/etc/apt/sources.list.d
可能需要清理的条目。由于您正在使用
i386
,您仍然可以从 Wheezy 上提供的扩展 LTS 中受益;有关详细信息,请参阅EOL 后是否有办法获取 wheezy 的安全更新。