因最近内无法保持正常更新,先有意出售此博客,包含域名! 6000USDT 非诚勿扰! 如一月内未出售,则自留恢复更新!

Debian 10 apt更新失败处理方法

在我们使用Debian 10系统中,如果我们使用更新,大概会出现如下所示的错误

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.

但是这是Debian 10,又不是CentOS 8,应该会有个解决方案的。经过我在Google上寻找,终于得到解决方案了 只需运行这两条命令即可

apt-get --allow-releaseinfo-change update
apt-get dist-upgrade