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

相关文章

Spring Boot中JSON数值溢出问题从报错到优雅解决办法

《SpringBoot中JSON数值溢出问题从报错到优雅解决办法》:本文主要介绍SpringBoot中JSON数值溢出问题从报错到优雅的解决办法,通过修改字段类型为Long、添加全局异常处理和... 目录一、问题背景:为什么我的接口突然报错了?二、为什么会发生这个错误?1. Java 数据类型的“容量”限制

SpringBoot项目中报错The field screenShot exceeds its maximum permitted size of 1048576 bytes.的问题及解决

《SpringBoot项目中报错ThefieldscreenShotexceedsitsmaximumpermittedsizeof1048576bytes.的问题及解决》这篇文章... 目录项目场景问题描述原因分析解决方案总结项目场景javascript提示:项目相关背景:项目场景:基于Spring

usb接口驱动异常问题常用解决方案

《usb接口驱动异常问题常用解决方案》当遇到USB接口驱动异常时,可以通过多种方法来解决,其中主要就包括重装USB控制器、禁用USB选择性暂停设置、更新或安装新的主板驱动等... usb接口驱动异常怎么办,USB接口驱动异常是常见问题,通常由驱动损坏、系统更新冲突、硬件故障或电源管理设置导致。以下是常用解决

Windows Docker端口占用错误及解决方案总结

《WindowsDocker端口占用错误及解决方案总结》在Windows环境下使用Docker容器时,端口占用错误是开发和运维中常见且棘手的问题,本文将深入剖析该问题的成因,介绍如何通过查看端口分配... 目录引言Windows docker 端口占用错误及解决方案汇总端口冲突形成原因解析诊断当前端口情况解

Vue3组件中getCurrentInstance()获取App实例,但是返回null的解决方案

《Vue3组件中getCurrentInstance()获取App实例,但是返回null的解决方案》:本文主要介绍Vue3组件中getCurrentInstance()获取App实例,但是返回nu... 目录vue3组件中getCurrentInstajavascriptnce()获取App实例,但是返回n

springboot整合阿里云百炼DeepSeek实现sse流式打印的操作方法

《springboot整合阿里云百炼DeepSeek实现sse流式打印的操作方法》:本文主要介绍springboot整合阿里云百炼DeepSeek实现sse流式打印,本文给大家介绍的非常详细,对大... 目录1.开通阿里云百炼,获取到key2.新建SpringBoot项目3.工具类4.启动类5.测试类6.测

Spring Boot循环依赖原理、解决方案与最佳实践(全解析)

《SpringBoot循环依赖原理、解决方案与最佳实践(全解析)》循环依赖指两个或多个Bean相互直接或间接引用,形成闭环依赖关系,:本文主要介绍SpringBoot循环依赖原理、解决方案与最... 目录一、循环依赖的本质与危害1.1 什么是循环依赖?1.2 核心危害二、Spring的三级缓存机制2.1 三

Node.js 数据库 CRUD 项目示例详解(完美解决方案)

《Node.js数据库CRUD项目示例详解(完美解决方案)》:本文主要介绍Node.js数据库CRUD项目示例详解(完美解决方案),本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考... 目录项目结构1. 初始化项目2. 配置数据库连接 (config/db.js)3. 创建模型 (models/

Vuex Actions多参数传递的解决方案

《VuexActions多参数传递的解决方案》在Vuex中,actions的设计默认只支持单个参数传递,这有时会限制我们的使用场景,下面我将详细介绍几种处理多参数传递的解决方案,从基础到高级,... 目录一、对象封装法(推荐)二、参数解构法三、柯里化函数法四、Payload 工厂函数五、TypeScript

解决SpringBoot启动报错:Failed to load property source from location 'classpath:/application.yml'

《解决SpringBoot启动报错:Failedtoloadpropertysourcefromlocationclasspath:/application.yml问题》这篇文章主要介绍... 目录在启动SpringBoot项目时报如下错误原因可能是1.yml中语法错误2.yml文件格式是GBK总结在启动S