Linux 遇到apt update中遇到更新失败的问题尝试方法

本文介绍了在Linux系统中遇到apt update失败的问题及解决方案。通过修改软件源为国内镜像及调整为旧版本发布来尝试解决问题,并计划升级系统版本作为最终解决办法。

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

Linux 遇到apt update中遇到更新失败的问题

改进方法一、修改源

原本源如下

# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release i386 (20141022.1)]/ utopic main restricted



deb http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted


## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse


## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu utopic-security main restricted

改成一个国内北京交大的源http://archive.ubuntu.com/ubuntu,能够ping通,但是某些文件还时报404 not found错误,所以判断是版本太老,源上不再支持。


改进方法二、可能因为Ubuntu版本太老,源上不再支持,换成上面新源的old-release 版本,仍然报出相同问题

W: Failed to fetch http://old-release.archive.ubuntu.com/ubuntu/dists/raring-backports/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.161 80]


W: Failed to fetch http://old-release.archive.ubuntu.com/ubuntu/dists/raring-backports/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.161 80]


W: Failed to fetch http://old-release.archive.ubuntu.com/ubuntu/dists/raring-backports/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.161 80]


W: Failed to fetch http://old-release.archive.ubuntu.com/ubuntu/dists/raring-backports/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.88.161 80]


E: Some index files failed to download. They have been ignored, or old ones used instead.

如上是目前尝试方法,问题仍未解决,需要再尝试


改进方法四、更新版本,这个比较耗时,暂时未尝试。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值