今天在为系统更新的时候发现apt更新失败,对应的如果如下

Ign:1 http://ftp.debian.org/debian buster/main amd64 libcurl4 amd64 7.64.0-4+deb10u1
Ign:2 http://ftp.debian.org/debian buster/main amd64 curl amd64 7.64.0-4+deb10u1
Err:1 http://ftp.debian.org/debian buster/main amd64 libcurl4 amd64 7.64.0-4+deb10u1
  404  Not Found 
Err:2 http://ftp.debian.org/debian buster/main amd64 curl amd64 7.64.0-4+deb10u1
  404  Not Found 
E: Failed to fetch http://security.debian.org/pool/updates/main/c/curl/libcurl4_7.64.0-4+deb10u1_amd64.deb  404  Not Found 
E: Failed to fetch http://security.debian.org/pool/updates/main/c/curl/curl_7.64.0-4+deb10u1_amd64.deb  404  Not Found 
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

这时候我尝试使用apt更新得到如下结果

root@root:~# apt-get update
Get:1 http://ftp.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org buster/updates InRelease [65.4 kB]
Get:3 http://ftp.debian.org/debian buster-updates InRelease [51.9 kB]
Reading package lists... Done
E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://ftp.debian.org/debian buster InRelease' changed its 'Version' value from '10.7' to '10.11'
E: Repository 'http://ftp.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://ftp.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

得到如上的提示,系统版本为debian10 ,所以这个系统不应该是已经没有维护的版本,因此一定是出现了一些错误,我这里使用了下面的方法解决问题.

先使用更新

apt-get --allow-releaseinfo-change update

再使用更新解决其余问题

apt-get dist-upgrade

就解决了问题

最后修改日期:2022年1月13日

作者

留言

撰写回覆或留言

发布留言必须填写的电子邮件地址不会公开。