Debian 10 无法更新解决方案

admin 2023年12月26日14:29:09系统文档评论1,577 次浏览阅读模式

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

1
2
3
4
5
6
7
8
9
10
11
12
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上寻找,终于得到解决方案了
只需运行这两条命令即可

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

来源:https://www.ddddl.com/archives/1648/debian-apt%E6%9B%B4%E6%96%B0%E5%A4%B1%E8%B4%A5%E5%A4%84%E7%90%86%E6%96%B9%E6%B3%95/

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2023年12月26日14:29:09
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/xitongwendang/2023/1226/15643.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: