解决 “E: 仓库xx没有 Release 文件。N: 无法安全地用该源进行更新,所以默认禁用该源”

系统出现错误,提示163镜像源的Release文件不存在,导致无法安全更新。解决方案是更换镜像源,如切换到阿里巴巴提供的Linux镜像源,通过编辑sources.list文件添加新镜像源,然后执行apt-getupdate以更新软件包列表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

忽略:1 http://mirrors.163.com/debian  stretch InRelease
忽略:2 http://mirrors.163.com/debian  stretch-updates InRelease
忽略:3 http://mirrors.163.com/debian  stretch-backports InRelease
忽略:4 http://mirrors.163.com/debian-security  stretch/updates InRelease
错误:5 http://mirrors.163.com/debian  stretch Release
  404  Not Found [IP: 117.147.202.12 80]
错误:6 http://mirrors.163.com/debian  stretch-updates Release
  404  Not Found [IP: 117.147.202.12 80]
错误:7 http://mirrors.163.com/debian  stretch-backports Release
  404  Not Found [IP: 117.147.202.12 80]
错误:8 http://mirrors.163.com/debian-security  stretch/updates Release
  404  Not Found [IP: 117.147.202.12 80]
正在读取软件包列表... 完成
E: 仓库 “http://mirrors.163.com/debian  stretch Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.163.com/debian  stretch-updates Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.163.com/debian  stretch-backports Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.163.com/debian-security  stretch/updates Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

报错原因:linux系统没有配置正确的镜像源

解决办法:更换系统的镜像源

步骤:

(1)根据linux系统在阿里巴巴镜像网站选择正确的镜像源

(2)复制镜像源

(3)编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加复制的镜像源并保存(操作前请做好相应备份)

vim /etc/apt/sources.list

(4)重新执行apt更新成功

apt-get update
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值