梓悦生活

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

Debian源更新报错解决方法

2023/08/16 6608点热度 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
    回复 彩鸽 取消回复

    最新 热点 随机
    最新 热点 随机
    BillionMail:一个开源的邮件服务器 哆啦A梦免费转发面板 [教程]AWS免费EC2注册/使用/添加IPV6/SSH连接/删除实例 使用VestaCP搭建邮局(含DKIM,DMARC教程) [教程]利用宝塔面板邮局管理器搭建Roundcube Webmail自建邮局 [测评]喵云互联绍兴电信NAT套餐1测评
    [教程]AWS免费EC2注册/使用/添加IPV6/SSH连接/删除实例哆啦A梦免费转发面板BillionMail:一个开源的邮件服务器
    阿根廷顶级免费.COM.AR域名申请 VPS CentOS 7 添加 SWAP分区 美国1Apps提供1G无限流量 支持绑米免费高速asp应用托管空间 Weblogs提供的免费无限WordPress博客空间 查看CentOS系统配置情况命令 利用51日引3000色量,加爆你的QQ,效果持续几个月
    最近评论
    b2b系统 发布于 2 年前(12月29日) 感谢分享
    Meteor 发布于 2 年前(10月20日) 哈哈,友链一直都在,后来换了主题后忘记修改显示数量了,现在恢复好了。
    弋牧 发布于 2 年前(10月12日) 这里已经看不到我的友连了吗?
    彩鸽 发布于 2 年前(10月04日) 写的不错
    B2B海外商城系统 发布于 2 年前(09月21日) 感谢分享
    标签聚合
    宝塔 VPS 虚拟主机 wordpress Linux技巧 技巧 域名解析 活动
    友情链接
    • 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