梓悦生活

  • 🍟首页
  • 🍪免费资源
  • 🍓Wordpress
  • 🍋琐碎生活
  • 🍘关于
关注周围的人或事,体验人生历程
  1. 首页
  2. 琐碎生活
  3. 正文

Debian源更新报错解决方法

2023/08/16 4634点热度 0人点赞 1条评论

今天更新debian 10的源的时候,突然报错,主要是说源从稳定源切换到不稳定源,网上查找了相关资料。

'Suite' value from 'stable' to 'oldstable'

root@debian:# apt-get update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://nginx.org/packages/mainline/debian buster InRelease [3604 B]
Get:5 http://nginx.org/packages/mainline/debian buster/nginx amd64 Packages [46.3 kB]
Reading package lists... Done
E: Repository 'http://security.debian.org/debian-security 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://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.9' to '10.10'
E: Repository 'http://deb.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://deb.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.

 

通过查找资料,运行下面的命令成功解决:

apt-get --allow-releaseinfo-change update

 

再次更新源,如下:

root@debian:# apt-get --allow-releaseinfo-change update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://nginx.org/packages/mainline/debian buster InRelease
Reading package lists... Done
root@debian:# apt-get update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://nginx.org/packages/mainline/debian buster InRelease
Reading package lists... Done

 

--allow-releaseinfo-change

这个命令的意思是,允许更新命令继续从改变了版本库信息的版本库中下更新源。

 

文章转载自:https://kzpu.com/archives/4639.html

标签: Debian
最后更新:2023/08/16

Meteor

关注周围的人或事,体验人生历程!

点赞
< 上一篇
下一篇 >

文章评论

  • 彩鸽

    写的不错

    2023/10/04
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复

    最新 热点 随机
    最新 热点 随机
    [教程]AWS免费EC2注册/使用/添加IPV6/SSH连接/删除实例 使用VestaCP搭建邮局(含DKIM,DMARC教程) [教程]利用宝塔面板邮局管理器搭建Roundcube Webmail自建邮局 [测评]喵云互联绍兴电信NAT套餐1测评 iperf3 网络性能测试 [收藏]13 个免费 PPT 模板网站汇总
    [测评]喵云互联绍兴电信NAT套餐1测评[教程]利用宝塔面板邮局管理器搭建Roundcube Webmail自建邮局使用VestaCP搭建邮局(含DKIM,DMARC教程)[教程]AWS免费EC2注册/使用/添加IPV6/SSH连接/删除实例
    Wordpress 无插件实现分页导航 CentOS 6升级glibc库至2.15版本办法 500MB/3GB/CP/genpixel.com WARP使用教程:入门篇 Debian源更新报错解决方法 [补货]HostDare:CN2 GIA补货/最低年付34.49美元
    最近评论
    b2b系统 发布于 1 年前(12月29日) 感谢分享
    Meteor 发布于 2 年前(10月20日) 哈哈,友链一直都在,后来换了主题后忘记修改显示数量了,现在恢复好了。
    弋牧 发布于 2 年前(10月12日) 这里已经看不到我的友连了吗?
    彩鸽 发布于 2 年前(10月04日) 写的不错
    B2B海外商城系统 发布于 2 年前(09月21日) 感谢分享
    标签聚合
    技巧 Linux技巧 活动 宝塔 虚拟主机 域名解析 wordpress VPS
    友情链接
    • Anders Norén
    • Appurse
    • CSS参考手册
    • DeeTeam-迪提姆
    • Fatesinger
    • FreeSSL
    • gandi
    • Internetbs
    • LogoMaker
    • Meteor's Blog
    • PM唐杰
    • SSL For Free
    • WPEX-Themes
    • 优品PPT
    • 免费顶级域名
    • 博客大全
    • 印记
    • 弋牧
    • 挖站否
    • 闫宝龙博客

    COPYRIGHT © 2023 梓悦生活. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang