Technical Anshu
Tutorials Blog
🐧 Ubuntu Repository Fix

Repository Has No Release File Fix for Old Ubuntu Versions

This error is Ubuntu telling you its own age. The release you run has been retired from the main servers, and apt is knocking on a door that no longer exists. There is a working stopgap - and an honest conversation about why it is only a stopgap.

✍️ Technical Anshu🐧 Ubuntu / Linux⏱️ 6 minute read
🎥 Watch the full video - the apt-get update fix shown live, step by step

One morning sudo apt update starts answering 404 Not Found for Ubuntu's own servers, with the message that the repository "does not have a Release file". You changed nothing - but the calendar did. Your release reached end of life and its files moved house. This page explains how to point your system at the new address, what that does and does not give you, and how to tell this apart from a broken PPA wearing the same error message.

Terminal - an end of life release asking the normal archive
$ sudo apt update Err:5 http://archive.ubuntu.com/ubuntu impish Release 404 Not Found [IP: 91.189.88.142 80] Reading package lists... Done E: The repository 'http://archive.ubuntu.com/ubuntu impish Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default.
A 404 together with does not have a Release file, on the normal archive address, means the release itself has been retired from the main servers. Release names and addresses shown are examples.
1

What This Error Actually Means

Ubuntu releases do not stay on the main servers forever. When a release reaches end of life - nine months after release for the short-term versions, five years for an LTS - its package files are removed from archive.ubuntu.com and moved to a retirement server, old-releases.ubuntu.com. Your PC is still asking the main address, the main address honestly answers 404 Not Found, and apt reports that the repository "does not have a Release file". Nothing is corrupt. Your Ubuntu is simply older than the main archive keeps.

First confirm your version: run lsb_release -a and note the Codename - that is the word (like impish, kinetic or lunar) apt is failing on in the error.

2

The Stopgap - Point the Release at Old Releases

True
3

The Honest Limit of the Stopgap

Understand what you now have. old-releases.ubuntu.com serves the release exactly as it was on its last day - it receives no new security fixes, ever. The stopgap makes apt update succeed and lets you install the software that existed at end of life; it does not make an old Ubuntu safe to keep using on the internet. Treat it as a bridge: it buys you a working machine while you plan the real fix, which is upgrading to a supported LTS release or reinstalling with one. LTS releases are the right choice for machines you do not want to rebuild every nine months.

4

Do Not Confuse This With a Broken PPA

The wording of this error is identical to the broken-PPA error - same "does not have a Release file" sentence. The difference is the address in the Err line. If the failing address is archive.ubuntu.com or security.ubuntu.com, it is this end-of-life problem. If it is ppa.launchpadcontent.net or any other site, it is a third-party source problem with a different fix. Reading the address before choosing the fix saves you from "repairing" the wrong thing - editing Ubuntu's own entries will never fix a PPA, and removing a PPA will never revive an end-of-life release.

🔴 Be honest with yourself about the stopgap: a machine on old-releases gets no security updates at all. Browsing and banking on it for months is a risk you are choosing, not a fix you have applied. Use the bridge, then cross it - upgrade or reinstall to a supported LTS.

🎥 Watch the Complete Video for Full Knowledge and Installation

The video shows this 404 on a real machine, the move to old-releases, and the update succeeding again.

▶️ Watch Full Video
❓ Common Questions (FAQ)

How do I know if my Ubuntu release is end of life?

Run lsb_release -a to get your release and codename, then check the error: if apt reports a 404 and no Release file for archive.ubuntu.com or security.ubuntu.com with your codename, the release has been retired from the main archive. Short-term Ubuntu releases are supported for nine months and LTS releases for five years, so a version several years old that was never an LTS is almost certainly end of life.

Is old-releases.ubuntu.com an official server?

Yes. It is Ubuntu's own retirement archive, run by Canonical, holding the final state of releases that have left the main servers. The packages there are the genuine signed packages the release ended with. What it does not have is anything new: no security fixes are published there after end of life, which is why it is a stopgap rather than a solution.

Can I just upgrade straight from the old release?

Usually yes, and the stopgap helps: first point the sources at old-releases so apt works again, install all pending updates for your current release, then use the release upgrade tool to move to the next supported version. Very old releases may need to step through intermediate versions, and at some point a fresh install of a current LTS is honestly less work - back up your files either way before you begin.

This guide is based on the Technical Anshu video on the end of life Ubuntu repository error • Stuck on a step? Ask in the video comments - answers live there 🙏