Getting started with Linux: how to update an expired version of Ubuntu

Source: Internet
Author: User
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.

  1. 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]
  2. W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found
  3. 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]
  4. 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.

  1. $ sudo sed -i -r 's/([a-z]{2}\.)?archive.ubuntu.com/old-releases.ubuntu.com/g'/etc/apt/sources.list
  2. $ 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.

  1. #deb http://extras.ubuntu.com/ubuntu raring main
  2. #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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.