27

My do-release-upgrade fails. I get the following error message:

Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife

Err Upgrade tool signature
  404  Not Found [IP: 2001:67c:1360:8c01::19 80]
Err Upgrade tool
  404  Not Found [IP: 2001:67c:1360:8c01::19 80]
Fetched 0 B in 0s (0 B/s)
WARNING:root:file 'raring.tar.gz.gpg' missing
Failed to fetch
Fetching the upgrade failed. There may be a network problem.

So it says my version is not supported anymore. I have Ubuntu Quantal (12.10). What should I do now?

HopelessN00b
  • 54,273

7 Answers7

37

I had this exact same issue and this answer solved the issue for me.

In summary:

The repositories for older releases that are not supported get moved to an archive server. There are repositories available at http://old-releases.ubuntu.com

So you have to rewrite your /etc/apt/sources.list file in order to use this server. Use the following sed command to do this:

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

Also comment out any entries in sources.list that point to mx.* servers

Now you are ready to do your update:

sudo apt-get update
sudo apt-get install update-manager-core
sudo do-release-upgrade
homer
  • 103
13

You have to change all apt-sources from archive.ubuntu.com or security.ubuntu.com to "old-releases.ubuntu.com".

If you use the standard hostnames, as described above, you an replace this using:

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

If you are using subdomains of mirrors in your country (e.g. "us.archive.ubuntu.com") use this command:

sudo sed -i -e 's/us.archive.ubuntu.com\|us.security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

old-releases.ubuntu.com doesn't support country-code-subdomains.

11

Change all of your apt-sources to "old-releases.ubuntu.com". This sed command works with any/all ubuntu.com URLs and saves a backup copy in case you need to revert:

sudo sed -i.save -e 's/\/\/.*ubuntu.com/\/\/old-releases.ubuntu.com/g' /etc/apt/sources.list

Upgrade all packages in your current (old and outdated) release and make sure you have the update manager installed:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install update-manager-core

Reboot:

sudo reboot

Upgrade to the latest release:

sudo do-release-upgrade
Earl Ruby
  • 429
  • 4
  • 6
2

Edit: After some time, Ubuntu's archive.ubuntu.com repositories are moved to old-releases.ubuntu.com. This is what happened for the tar I linked. I updated the link. Moreover, it seems that the bug will be (or already is) resolved: see Ubuntu Bug #1975533


I had similar problem. The only way of upgrading that worked in my case was:

wget http://old-releases.ubuntu.com/ubuntu/dists/hirsute-updates/main/dist-upgrader-all/current/hirsute.tar.gz
tar -xvf hirsute.tar.gz
sudo ./hirsute

Details here: https://blog.invid.eu/2022/02/24/upgrade-eol-ubuntu-server-from-20-10-to-21-10-an-upgrade-from-groovy-to-impish-is-not-supported-with-this-tool-ubuntu-ubuntugeek-ubuntu-linux-eol-upgrade/

I wanted to upgrade from 20.10 to 22.04, but the intermediate step was to upgrade from 20.10 to 21.04. Nevertheless, the procedure should work for any past and future Ubuntu distribution.


Note! Before running the UpgradeTool I added the old-releases. to the domains/entries in the /etc/apt/sources.list. Operation similar to the one described in randomcontrol's answer:

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

so that the:

sudo apt-get update

would work.


Additional information on that approach in the official documentation: https://help.ubuntu.com/community/EOLUpgrades

1

None of these worked for me so I will share my own:

Replace all "archive.ubuntu.com|security.ubuntu.com|ports.ubuntu.com/ubuntu-ports/" (including ubuntu-ports or not) to old-releases.ubuntu.com/ubuntu/

1

I had similar problem upgrading from Ubuntu 21.10 to latest. The solution to resolve the upgrading for Ubuntu 21.10, it's by following the step below:

Downloads the upgrader, check the link above for the URL of the file for your release

wget http://archive.ubuntu.com/ubuntu/dists/jammy/main/dist-upgrader-all/current/jammy.tar.gz

Extract it into a new directory

mkdir upgrader && tar -xaf jammy.tar.gz -C upgrader
cd upgrader

Run the executable, the name changes based on the release

./jammy
-1

Check this out https://butlerraines.com/code-stuff/upgrading-end-life-eol-ubuntu-version-ubuntu-1904

This is for Ubuntu 19.04 but should work for any distro.