添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
聪明的牛肉面  ·  Update error ...·  1 周前    · 
想出国的豆腐  ·  PostgreSQL Python: ...·  1 周前    · 
欢快的茶叶  ·  python json.update - ...·  1 周前    · 
会搭讪的大葱  ·  Changelog — Haystack ...·  1 周前    · 
爱笑的桔子  ·  How to update ...·  1 周前    · 
害羞的豆芽  ·  Python的函数 | Just Do It·  2 月前    · 
着急的薯片  ·  calc.lfc( ) bug ...·  4 月前    · 

一、执行更新语句时,提示如下错误:does not have a Release file

W: The repository 'http://mirrors.163.com/debian stretch Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://mirrors.163.com/debian stretch-updates Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://mirrors.163.com/debian stretch-backports Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://mirrors.163.com/debian-security stretch/updates Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://mirrors.163.com/debian/dists/stretch/main/source/Sources 404 Not Found E: Failed to fetch http://mirrors.163.com/debian/dists/stretch-updates/contrib/source/Sources 404 Not Found E: Failed to fetch http://mirrors.163.com/debian/dists/stretch-backports/contrib/source/Sources 404 Not Found E: Failed to fetch http://mirrors.163.com/debian-security/dists/stretch/updates/contrib/source/Sources 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.

1. 原因:

404的本质是这个镜像地址所在的目录中,找不到相应的资源。因为从2023-04月开始 debian stretch 地址发生了变更。

2. 需更新文件

nano /etc/apt/sources.list

使用如下源:

deb http://archive.debian.org/debian/ stretch main contrib non-free
deb-src http://archive.debian.org/debian/ stretch main contrib non-free
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://archive.debian.org/debian/ stretch-backports main contrib non-free

3. 再执行:

apt-get update

发现即可成功更新。

不过别高兴的太早。。。

二、更新过程中 还可能会遇到NO_PUBKEY的问题:

W: GPG error: http://archive.debian.org/debian stretch-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://archive.debian.org/debian stretch-backports 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. 需要将出现的 NO_PUBKEY 依次添加进到系统

我这里有2个,执行2遍

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9

最终执行成功截图如下:

当然这时候,高兴还是可能早了点~

三、如果和我一样很不幸,在处理NO_PUBKEY的时候又遇到了这个问题:No dirmngr

keyserver receive failed: No dirmngr

需要先安装dirmngr,安装完成后,更新包,再返回第二步,处理NO_PUBKEY的问题

# 检查包是否正常
apt-cache search -n dirmngr
# 安装dirmngr
apt-get install dirmngr
# 更新包
apt-get update

长路漫漫,诸君需努力啊~

Ubuntu 解决:当执行sudo apt-get update或者sudo apt-get install命令是出现的 “apt-get 404 Not Found Package Repository Errors” 问题 和 “E: Some index file s failed to download They have been ignored, or old o... 当安装完 Debian 系统,要安装软件时候,出现如下报错信息: The repository 'cdrom://[ Debian GNU/Linux 10.6.0 _Buster_ - Official amd64 DLBD Binary-1 20200926-10:17] buster Release ' does not have a Release file . N: Updating from such a repository can't be done securely, and is therefor “E: The repository ‘http://xxx Release ‘ does not have a Release file .”以及“E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'” 字面意思就是这个网站不被信任,有被攻击危险,根据StackOverflow的解决办法: 需要在source.list文件deb后面加上[trusted=true] deb [trusted=yes] http://us.archive... 问题:在执行sudo apt-get update时出现以下报错,查询得知是因为换源以后,新的下载源没有公钥 W: GPG error: http://mirrors.aliyun.com/ debian buster In Release : The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386F 当我在Ubuntu20.04中安装openmodelica时,输入sudo apt update进行更新,发现出现错误:The repository 'https://build.openmodelica.org/apt (lsb_ release Release ' does not have a Release file .当时这个问题困扰了我好几天,然后我也看了其他博客的一些解决方案,试过了不少的方法,一个有用的方法是:删除相应的仓库对应文件。然后再执行sudo apt update时不会再出现问题。 Bug:apt update报错,:: The repository "http://xx Release ' does nothave a Release file 解决方案 如图在安装clickhouse时执行sudo apt update时出现does not have a Release file 的问题。于是我自己去网站上搜索发现,虽然一些教程里会把clickhouse的源换成清华源或者阿里云但是清华源的官方已将把clickhouse的 镜像 删除掉了。update过程很慢,要有点耐心,发现不会出现之前的repository"xxx" does not have Release file 。在下载过程中一直会 提示 一个404,那么就是找不到对应的安装包。 E:The repository 'https://mirrors.aliyun.com/docker-ce/linux/ubuntu una Release ' does not have a Rel。