Installing software on an old Ubuntu version that's no longer supported (2009 Jaunty)

12,721

Solution 1

You can use the old-releases url:

http://old-releases.ubuntu.com/ubuntu/

Old-releases includes everything that isn't officially supported anymore. Just replace us.archive and security with old-releases in /etc/apt/sources.list and you should be good to go!

Note that you can also have sources from different versions of Ubuntu in you sources.list file (in fact, in the bad old days updating to the newest release meant manually replacing warty with hoary and running dist-upgrade).

So if you really need to, you can grab newer versions of packages from more recent releases without updating the whole OS.

EDIT: More detailed example. Assuming the file found here is your sources.list file, you could do something like:

$ sudo vi /etc/apt/sources.list

Inside VI

:%s/archive/old-releases/g
:%s/cl\.//g
:wq

Use us instead of cl if that's what's in your file.

Then run

$ sudo apt-get update
$ sudo apt-get upgrade

The first will update your sources based on your edited sources.list file. The second will upgrade all packages on your system to the newest version that Jaunty used before support ended (you'll be asked for confirmation first).

Solution 2

I don't know exactly what the rationale is, but Ubuntu makes it a bit harder to install packages on versions that they no longer support. It seems that Ubuntu is nice enough to continue hosting files for the older versions, but you are on your own to discover how to access those files.

This is managed from /etc/apt/sources.list and additional files under /etc/apt/sources.list.d/. Getting to know the content of these lists is helpful for managing your installable components. Note: This is documented at man sources.list.

Let's say you have something like the following...

deb    http://archive.ubuntu.com/ubuntu/   maverick main restricted universe

Notice that this line contains a URL component. The trick is that the line is only a shorthand for the actual URL(s) that are indicated, which in this case, are...

http://archive.ubuntu.com/ubuntu/dists/maverick/main/
http://archive.ubuntu.com/ubuntu/dists/maverick/restricted/
http://archive.ubuntu.com/ubuntu/dists/maverick/universe/

The question is, are these URLs still valid? The answer is no, they no longer exist.

The solution is to identify the defunct lines in your sources.list files and modify them with the updated location -- which in this case is...

deb   http://old-releases.ubuntu.com/ubuntu/   maverick main restricted universe

Note: There are typically multiple entries in sources.list. It may be that not all of them require this type of modification -- so you have to be a bit selective, for example manually checking each entry. The short answer is: replace archive.ubuntu.com with old-releases.ubuntu.com.

After modifying this file, you need to run the following before running apt-get install:

$ sudo apt-get update
Share:
12,721

Related videos on Youtube

stackoverflowuser2010
Author by

stackoverflowuser2010

Updated on September 18, 2022

Comments

  • stackoverflowuser2010
    stackoverflowuser2010 over 1 year

    I have a software development box with Ubuntu Jaunty Jackalope installed. I know this version is from 2009, but it is a development box with strict requirements, so I cannot update the OS to a newer version of Ubuntu.

    I cannot install new software for this version because Jaunty is no longer supported. That is, none of the Ubuntu software servers carry Jaunty anymore. For example, http://us.archive.ubuntu.com/ubuntu/dists/jaunty/ does not exist anymore. So apt-get doesn't work.

    What can I do? Is there a Jaunty archive server, and how can I point apt-get to that server?

    I am a Solaris/Windows user, by the way.

    • Simon Sheehan
      Simon Sheehan almost 13 years
      Out of curiosity, why can't you upgrade?
    • stackoverflowuser2010
      stackoverflowuser2010 almost 13 years
      Ubuntu 9.04 is the official dev environment in our group.
    • WindowsEscapist
      WindowsEscapist over 11 years
      Incidentally, there is also an Ubuntu Stack Exchange site: Ask Ubuntu!
  • stackoverflowuser2010
    stackoverflowuser2010 almost 13 years
    Can you provide a link to the process of adding other servers to the source.list file? Do I need to reboot after adding that line?
  • Konstantinos A.
    Konstantinos A. almost 13 years
    Sure, here's a link to an original file. Yours probably looks something like the one here: ubuntuforums.org/archive/index.php/t-997890.html. I'll update the post with a more detailed example.
  • Konstantinos A.
    Konstantinos A. almost 13 years
    No need to reboot - just run sudo apt-get update after changing the file.
  • Brent Bradburn
    Brent Bradburn over 11 years
    I have run into this on multiple occasions -- my computer is working perfectly fine, and I don't want to upgrade, but I discover that my system is "no longer supported" when I can't install some package.
  • Brent Bradburn
    Brent Bradburn over 11 years
    Incidentally, Wikipedia maintains a nice support timeline: en.wikipedia.org/wiki/List_of_Ubuntu_releases#Table_of_versi‌​ons
  • Alex Fortuna
    Alex Fortuna almost 9 years
    Worked for me. In vi: :%s/us\.archive/old-releases/g, then $ sudo apt-get update. Ubuntu Server 13.10.
  • Brent Bradburn
    Brent Bradburn almost 4 years
    They got me again. I installed 19.04 (9 month "support"). Some people just don't learn.
  • Brent Bradburn
    Brent Bradburn almost 4 years
    Trying sudo apt dist-upgrade...
  • Brent Bradburn
    Brent Bradburn almost 4 years
    Trying sudo apt dist-upgrade --fix-missing...
  • Brent Bradburn
    Brent Bradburn almost 4 years
    E: Failed to fetch ... 404 Not Found
  • Brent Bradburn
    Brent Bradburn almost 4 years
    Next time you're feeling adventurous, try a rolling-release distro (Manjaro, Solus).
  • Brent Bradburn
    Brent Bradburn over 3 years
    openSUSE lets you choose between an annual and a rolling release. You can choose between installed desktop environments at login.