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.
如上是目前尝试方法,问题仍未解决,需要再尝试
改进方法四、更新版本,这个比较耗时,暂时未尝试。