阿里云 debian10.3 sudo apt-get updat 报错的解决方案

阿里云全新的debian10.3(buster)镜像,却无法正常执行 sudo apt-get update。主要报错信息如下:

复制代码
Err:6 http://mirrors.cloud.aliyuncs.com/debian buster-backports Release
  404  Not Found [IP: 100.100.2.148 80]
Err:3 http://mirrors.cloud.aliyuncs.com/debian buster-proposed-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
Reading package lists... Done
E: The repository 'http://mirrors.cloud.aliyuncs.com/debian buster-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.cloud.aliyuncs.com/debian buster-proposed-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
E: The repository 'http://mirrors.cloud.aliyuncs.com/debian buster-proposed-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

1、通过执行 sudo apt-get update | grep "Failed" 捕捉到更精炼的报错信息,我的执行结果如下:

复制代码
E: The repository 'http://mirrors.cloud.aliyuncs.com/debian buster-backports Release' does not have a Release file.
W: GPG error: http://mirrors.cloud.aliyuncs.com/debian buster-proposed-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
E: The repository 'http://mirrors.cloud.aliyuncs.com/debian buster-proposed-updates InRelease' is not signed.

可以发现有两个报错,一个 buster-backports Release 不存在的问题,一个 The following signatures couldn't be verified 的问题

2、首先解决报出的 buster-backports Release 不存在的问题,vi /etc/apt/sources.list一下,编辑 sources.list 文件。将 buster-backports 涉及的两行注释掉

复制代码
# deb http://mirrors.cloud.aliyuncs.com/debian/ buster-backports main non-free contrib

# deb-src http://mirrors.cloud.aliyuncs.com/debian/ buster-backports main contrib non-free

之后保存并退出。

3、接下来解决 The following signatures couldn't be verified 的问题,直接安装新版本 debian-archive-keyring 即可

复制代码
sudo apt-get install debian-archive-keyring

4、最后再次执行 sudo apt-get update,执行成功!完美!

附:

1、关于buster-backports:

"buster-backports" 是 Debian 10(也被称为 "buster")的 backports 仓库。

Backports 是 Debian 提供的一种机制,允许用户从未来的稳定版本(testing 或 unstable)中获取并安装软件包,这些软件包已经被重新编译,以便在当前的稳定版本中使用。

这种机制的主要目的是允许用户在保持系统稳定性的同时,能够使用到更新的软件版本。例如,如果你正在运行 Debian 10(buster),但你需要一个在 Debian 11(bullseye)中可用的更新版本的软件,你可以从 buster-backports 仓库中获取并安装它。

总的来说,http://mirrors.cloud.aliyuncs.com/debian buster-backports Release 的作用是提供一个可以获取并安装更新版本软件包的源,这些软件包是为当前的 Debian 10 系统重新编译的。

参考文档:

1、sudo apt update:仓库 "http://mirrors.aliyun.com/docker-ce/linux/debian ulyana Release" 没有 Release 文件。_debian apt update 没有release-CSDN博客文章浏览阅读7.4k次,点赞3次,收藏15次。$ sudo apt update获取:1 https://mirrors.aliyun.com/docker-ce/linux/debian bullseye InRelease [43.3 kB]命中:2 http://dl.google.com/linux/chrome/deb stable InRelease _debian apt update 没有releasehttps://blog.csdn.net/yzpbright/article/details/118307388

2、Debian apt update 提示 由于没有公钥,无法验证下列签名..._debian11 由于没有公钥,无法验证下列签名:-CSDN博客文章浏览阅读9.6k次,点赞9次,收藏12次。$ sudo apt update忽略:1 http://mirrors.aliyun.com/debian stretch InRelease命中:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease命中:3 http://mirrors.aliyun.com/debian stretch-updates InRelease错误:2 http://mirrors.aliyun.com/debian-securit_debian11 由于没有公钥,无法验证下列签名:https://blog.csdn.net/markinstephen/article/details/123094575

相关推荐
国际云,接待13 小时前
[特殊字符]服务器性能优化:从硬件到AI的全栈调优指南
运维·服务器·人工智能·阿里云·性能优化·架构·云计算
我的作业错错错2 天前
搭建私人网站
服务器·阿里云·私人网站
朴拙数科2 天前
艺术字体AI生成阿里云WordArt锦书、通义万相、SiliconFlow、Pillow+OpenCV本地生成艺术字体
人工智能·阿里云·pillow
中云时代-防御可测试-小余2 天前
高防IP是如何防护DDoS攻击和CC攻击的
运维·服务器·tcp/ip·安全·阿里云·ddos·宽度优先
Serverless社区3 天前
MCP云托管最优解,揭秘国内最大MCP中文社区背后的运行时
阿里云·云原生·serverless·函数计算
XINVRY-FPGA4 天前
XCZU19EG-2FFVC1760I Xilinx赛灵思FPGA Zynq UltraScale+MPSoC
c++·嵌入式硬件·阿里云·fpga开发·云计算·硬件工程·fpga
Saggitarxm4 天前
阿里云镜像加速仅支持阿里云产品了
阿里云·docker·云计算·镜像加速
TIF星空4 天前
【在阿里云或其他 CentOS/RHEL 系统上安装和配置 Dante SOCKS5 代理服务】
经验分享·笔记·阿里云·centos·云计算
心随_风动4 天前
Debian GNU/Linux的新手入门介绍
linux·debian·gnu