我有一个带 debian 7 的 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.
答案1
您应该编辑您的/etc/apt/sources.list
文件,使其包含(仅)
deb http://archive.debian.org/debian wheezy main
特别是,您应该删除该stable
行,否则您可能会无意中升级到 Debian 10。
您似乎/etc/apt/sources.list.d
也有可能需要清理的条目。
由于您正在使用i386
,您仍然可以从 Wheezy 上提供的扩展 LTS 中受益;看有没有办法在 EOL 后获取 wheezy 的安全更新了解详情。