阿里云 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

相关推荐
顶顶年华正版软件官方6 小时前
IDM下载器如何下载网盘文件 IDM下载器支持哪些网盘
阿里云·腾讯云·idm
小诸葛的博客2 天前
详解zookeeper四字命令
运维·debian
碎像2 天前
阿里云对象存储OSS 速学
java·阿里云·oss
丁总学Java3 天前
阿里云域名解析和备案
阿里云·云计算
DeadLine95274 天前
推送k8s镜像到阿里云服务器
阿里云·容器·kubernetes
三个黄色的小石头4 天前
【tower-boot 系列】开源RocketMQ和阿里云rockerMq 4.x和5.x集成 (一)
java·阿里云·开源·rocketmq
丁总学Java4 天前
阿里云域名注册购买和备案
阿里云·云计算
qq_7556822404 天前
基于ESP8266—AT指令连接阿里云+MQTT透传数据(2)
阿里云·云计算
Cao_XinYang4 天前
将Docker镜像推送到阿里云仓库,使用Docker-compose将mysql、redis、jar包整合在一起
阿里云·docker·容器
m0_744843544 天前
Spring--boot自动配置原理案例--阿里云--starter
java·spring·阿里云