Q: I have installed the old version of Ubuntu13.04 (riveting raccoon) on my PC ). When I run & ldquo; sudoapt-getupdate & rdquo; on it, it throws a bunch of & ldquo; 404 NotFound & rdquo; errors to me, the result is that I cannot use apt-get or aptitude to install or update any software packages. Due to this error, I cannot even upgrade it to an updated version. How can I fix this problem? Every Ubuntu
Problem: An old version of Ubuntu 13.04 (riveting raccoon) is installed on my PC ). When I run "sudo apt-get update" on it, it throws a bunch of "404 Not Found" errors to me, the result is that I cannot use apt-get or aptitude to install or update any software packages. Due to this error, I cannot even upgrade it to an updated version. How can I fix this problem?
Each Ubuntu version has a lifecycle (EOL) time. The conventional Ubuntu release provides 18 months of support, while the LTS (long-term support) version is up to 3 years (server version) and 5 years (desktop version ). When a Ubuntu version reaches the end of its lifecycle, its repository will no longer be accessible, and you will no longer be able to obtain any maintenance updates and security patches from Canonical. At the time of writing this article, Ubuntu 13.04 (eager raccoon) has reached its lifecycle.
If your Ubuntu system has ended its lifecycle, you will get the following Error 404 from apt-get or aptitude because its repository has been abandoned.
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/raring-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.13 80]
W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found
W:Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
E:Some index files failed to download.They have been ignored,or old ones used instead
For users who are still using older versions of Ubuntu, Canonical maintains a old-releases.ubuntu.com site that contains warehouse archives that end the lifecycle. Therefore, when Canonical ends support for your installed Ubuntu version, you need to switch the repository to the old-releases.ubuntu.com (unless you want to upgrade before you end the lifecycle ).
Here, switching to the old version of the repository provides a convenient way to quickly fix the "404 Not Found" error.
First, replace the main/security repository with the old-releases repository, as shown below.
$ sudo sed -i -r 's/([a-z]{2}\.)?archive.ubuntu.com/old-releases.ubuntu.com/g'/etc/apt/sources.list
$ sudo sed -i -r 's/security.ubuntu.com/old-releases.ubuntu.com/g'/etc/apt/sources.list
Then, open/etc/apt/sources. list in the text editor and find extras.ubuntu.com. This repository no longer supports Ubuntu 13.04, so you need to use the "#" to comment out extras.ubuntu.com.
#deb http://extras.ubuntu.com/ubuntu raring main
#deb-src http://extras.ubuntu.com/ubuntu raring main
Now, you can install or update the software package on Ubuntu, which is not supported by the old version.
For more information about Oracle, see Oracle topics page http://www.linuxidc.com/topicnews.aspx? Tid = 12
Via: http://ask.xmodulo.com/404-not-found-error-apt-get-update-ubuntu.html
Author: Dan Nanni Translator: GOLinux Proofreader: wxy
This article was originally translated by LCTT and launched with the Linux honor in China
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-06/118633.htm