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

2024-06-19 23:12

本文主要是介绍阿里云 debian10.3 sudo apt-get updat 报错的解决方案,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

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

Err:6 http://mirrors.cloud.aliyuncs.com/debian buster-backports Release404  Not Found [IP: 100.100.2.148 80]
Err:3 http://mirrors.cloud.aliyuncs.com/debian buster-proposed-updates InReleaseThe 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

这篇关于阿里云 debian10.3 sudo apt-get updat 报错的解决方案的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1076418

相关文章

【新闻】AI程序员要来了吗?阿里云官宣

内容提要 6 月 21 日,在阿里云上海 AI 峰会上,阿里云宣布推出首个AI 程序员。 据介绍,这个AI程序员具备架构师、开发工程师、测试工程师等多种岗位的技能,能一站式自主完成任务分解、代码编写、测试、问题修复、代码提交整个过程,最快分钟级即可完成应用开发,大幅提升研发效率。 近段时间以来,有关AI的实践应用突破不断,全球开发者加速研发步伐。有业内人士坦言,随着大模型性能逐渐提升,AI应

yum install 失败报错`XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)

/export/env/py3.6/lib/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)   到/export/env/py3.6/lib cp /lib64/liblzma.so.5.2.2 . sudo ln -s -f liblzma.so.5.2.2 liblzm

BD错误集锦6——【IDEA报错】tomcat server功能无效,报错Java EE: EJB, JPA, Servlets

在网上查找原因,发现是非法关闭IDEA导致的。 Open Settings | Plugns and enable it. 在设置中enable JAVA EE和tomcat server即可。 参考: https://stackoverflow.com/questions/43607642/intellij-idea-plugin-errorproblems-found-loadin

BD错误集锦3——ERROR: Can't get master address from ZooKeeper; znode data == null

hbase集群没启动,傻子!   启动集群 [s233 s234 s235]启动zk集群 $>zkServer.sh start $>zkServer.sh status   [s233] 启动dfs系统 $>start-dfs.sh 如果s237 namenode启动失败,则 [s237] $>hadoop-daemon.sh start namenode [s233]启动yarn集群

[分布式网络通讯框架]----Zookeeper客户端基本操作----ls、get、create、set、delete

Zookeeper数据结构 zk客户端常用命令 进入客户端 在bin目录下输入./zkCli.sh 查看根目录下数据ls / 注意:要查看哪一个节点,必须把路径写全 查看节点数据信息 get /第一行代码数据,没有的话表示没有数据 创建节点create /sl 20 /sl为节点的路径,20为节点的数据 注意,不能跨越创建,也就是说,创建sl2的时候,必须确保sl

关于文章“python+百度语音识别+星火大模型+讯飞语音合成的语音助手”报错的修改

前言 关于我的文章:python+百度语音识别+星火大模型+讯飞语音合成的语音助手,运行不起来的问题 文章地址: https://blog.csdn.net/Phillip_xian/article/details/138195725?spm=1001.2014.3001.5501 1.报错问题 如果运行中报错,且报错位置在Xufi_Voice.py文件中的pcm_2_wav,如下图所示

免费内网穿透工具 ,快解析内网穿透解决方案

在IPv4公网IP严重不足的环境下,内网穿透技术越来越多的被人们所使用,使用内网穿透技术的好处有很多。 1:无需公网ip 物以稀为贵,由于可用的公网IP地址越来越少,价格也是水涨船高,一个固定公网IP一年的成本要上万,而使用内网穿透技术则不需要公网IP的支持。 2:提高安全性 使用内网穿透技术,无需在路由器映射端口,我们知道黑客通常会使用端口扫描来寻找攻击对象,不映射端口能大大提高服务器的安全

【鸿蒙】ERROR_GET_BUNDLE_INSTALLER_FAILED

错误信息 [ERROR_GET_BUNDLE_INSTALLER_FAILED] Troubleshooting guide $ hdc file send D:\Huawei\devEcoProjects\entry\build\default\outputs\default\entry-default-unsigned.hap /sdcard/e8a215ea7be1444197e6a58e

分布式事务的解决方案(一)

前言应用场景 事务必须满足传统事务的特性,即原子性,一致性,分离性和持久性。但是分布式事务处理过程中, 某些场地比如在电商系统中,当有用户下单后,除了在订单表插入一条记录外,对应商品表的这个商品数量必须减1吧,怎么保证? 在搜索广告系统中,当用户点击某广告后,除了在点击事件表中增加一条记录外, 还得去商家账户表中找到这个商家并扣除广告费吧,怎么保证? 一 本地事务 以用户A

Android 10.0 系统开机重启桌面时钟小部件widget加载慢解决方案

1.前言 在10.0的系统rom产品定制化开发中,在Launcher3桌面系统默认会有时钟widget小部件显示在首屏的,但是发现在开机过程 中会显示的好慢,等进入桌面了 还没显示,所以接下来分析下相关的源码流程,来实现相应的功能 2.系统开机重启桌面时钟小部件widget加载慢解决方案的核心类 frameworks\base\services\appwidget\java\com\andr