分享

ubuntu 10.10 apt-get 404错误解决方法

 深入敌后_ 2013-05-09

http:///questions/91815/how-to-install-software-or-upgrade-from-old-unsupported-release/91821#91821


5 Answers

up vote 38 down vote accepted

The repositories for older releases that are not supported (like 9.04, 9.10, and 10.10) get moved to an archive server. There are repositories available at http://old-releases.

The reason for this is that it is now out of support and no longer receiving updates and security patches.

I would urge you to consider a supported distribution. If your computer is too old in terms of memory or processor then you should consider a distribution such as Lubuntu or Xubuntu.

If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive. to old-releases.

You can do this with sed

sudo sed -i -e 's/archive./old-releases./g' /etc/apt/sources.list

then update with

sudo apt-get update && sudo apt-get dist-upgrade

source

See also:

share|improve this answer
2  
sed usage is just pro. – Bruno Pereira? Jan 15 at 10:10
Worth noting, I had to use us.archive. in my sed command. Hope this saves someone else the head-scratching – Matthew Boynes Mar 6 at 23:30
1  
security. should also be replaced to old-releases. – MestreLion Apr 4 at 2:47
and, just for the sake of completeness... what about extras repository (for Skype etc)? Are they available anywhere after EOF? – MestreLion Apr 27 at 1:00

What are 404 errors

The 404 or Not Found error message is a HTTP standard response code indicating that the client was able to communicate with the server, but the server could not find what was requested.

The web site hosting server will typically generate "404 - Page Not Found" web page, when users attempts to follow a broken or dead link.

Why are we facing 404 errors

Ubuntu follows the approach of two different release cycles:

Normal Ubuntu releases are supported for 9 months. LTS releases are supported for 5 years.

Past releases may have different support schedules (for example, normal releases (before 13.04) used to be supported for 18 months, while LTS releases (before 12.04) used to be supported for 3 years on the desktop and 5 years on the server).

EOL: Once the support period for a particular release is over; they are called End Of Life (EOL) and all the updates and package repositories for that Release are transferred to a different server which results in 404 errors while running sudo apt-get update. You can confirm if your release has become EOL by going to this page. If your Ubuntu release is mentioned under "End Of Life (EOL)" Table, then the release is no longer supported and you should try to upgrade to a newer supported release. However, if you wish to continue using this unsupported release, you would have to make necessary modifications in /etc/apt/sources.list to point to the old-releases server of Ubuntu.

Steps to make necessary modifications

  1. Open your Terminal:

    • Press Ctrl + Alt + T; OR
    • If you have Gnome: ApplicationsAccessoriesTerminal; OR
    • If you have Unity: press Super (the key between Left Ctrl and Left Alt) and query for Terminal.
  2. Run the following command:

    gksudo gedit /etc/apt/sources.list
    

    input your user password and press Enter.

  3. Find the first line which doesn't start with #. Suppose you are running Karmic Koala (Ubuntu 9.10): it should be like the following line:

    deb <siteurl> karmic main restricted
    

    where, <siteurl> is your preferred server - http://gb.archive./ubuntu in your case (for example).

  4. Press Ctrl + H to replace your <siteurl> with http://old-releases./ubuntu.

    • Search for: http://gb.archive./ubuntu ie; <siteurl>
    • Replace with: http://old-releases./ubuntu and
    • Press Replace All
  5. Once again:

    • Search for: http://security./ubuntu (this exact url for all the Ubuntu Releases — whatever be the present server that you are using)
    • Replace with: http://old-releases./ubuntu
    • Press Replace All
  6. Save your file and exit Gedit.

  7. Run the following command:

    sudo apt-get update
    

There you go. No 404 Errors this time. You can now install all the available packages for your Ubuntu Release. You can also run sudo apt-get dist-upgrade to install any Security/Bug-fix updates which have not yet been installed but you won't get any further Security/Bug-fix updates from Ubuntu.

share|improve this answer
1  
+1 for also including instructions to update the security repo. – Gaffi Mar 16 at 16:07

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多