梓悦生活

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

Debian源更新报错解决方法

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

今天更新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

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

点赞
< 上一篇

文章评论

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

最新 热点 随机
最新 热点 随机
Debian源更新报错解决方法 Linux调整文件系统大小的命令:resize2fs 哪吒监控面板搭建教程 将Azure机器配置的静态IP修改为动态IP地址 通用嵌入式DDNS脚本UE-DDNS 利用DNSPod实现动态域名解析DDNS
将Azure机器配置的静态IP修改为动态IP地址Vultr 推出免费云主机,用于鼓励全球创新Cloudflare WARP 一键安装脚本 使用教程HostPanel开源免费主机管理面板谷歌将替换Chrome 117版本中的挂锁图标WARP使用教程:入门篇
Weblogs提供的免费无限WordPress博客空间 NoFeesHost免费空间申请 2G/10G/PHP/MYSQL/DA/绑米/host1free免费 wordpress日期归档列表函数 HOST29免费提供的500M/50G/PHP/MYSQL/CP/绑米空间 WordPress关闭自动更新检测
最近评论
B2B海外商城系统 发布于 12 小时前(09月21日) 感谢分享
上海网站建设 发布于 2 个月前(07月11日) 感谢分享
Unye Koltuk Yıkama 发布于 3 个月前(07月05日) Ünye Koltuk Yıkama. Koltuk temizliğinde kumaş ve d...
Meteor 发布于 4 个月前(06月01日) 你的mysql版本看一下,我记得之前开发大佬在群里说过这个问题,5.6版本还是5.7版本来着。 我...
ldsj007 发布于 4 个月前(05月25日) 老大,数据库连不上,是不是最新版必须用docker数据库了?
标签聚合
虚拟主机 活动 技巧 Linux Linux技巧 wordpress 域名解析 VPS
友情链接
  • Anders Norén
  • Appurse
  • CSS参考手册
  • DeeTeam-迪提姆
  • Fatesinger
  • FreeSSL
  • gandi
  • Internetbs
  • Kevan's Blog
  • LogoMaker

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

Theme Kratos Made By Seaton Jiang