Debian 7 生命周期结束我无法安装任何东西

cro*_*max 1 debian apt package-management

我有一个带有 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/"
Run Code Online (Sandbox Code Playgroud)

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

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

Ste*_*itt 7

您应该编辑您的/etc/apt/sources.list文件,使其包含(仅)

deb http://archive.debian.org/debian wheezy main
Run Code Online (Sandbox Code Playgroud)

特别是,您应该删除该stable行,否则您可能会无意中升级到 Debian 10。

您似乎也有/etc/apt/sources.list.d可能需要清理的条目。

由于您正在使用i386,您仍然可以从 Wheezy 上可用的扩展 LTS 中受益;有关详细信息,请参阅是否有办法在 EOL 后获取 wheezy 的安全更新

  • 我建议先拉伸。理想情况下,您应该更新到 Jessie,然后是 Stretch,因为不支持发布跳过升级。但真的有了 VPS,我会在 Stretch 或 Buster 上建立一个新的 VPS 并切换到那个...... (3认同)