
sudo apt update fails with E: The repository '… Release' does not have a Release file or no longer has a Release file when apt can't find a valid index for one of your software sources. The cause is almost always one of four things: your Ubuntu release has reached end of life, a PPA or third-party repository doesn't support your release, a URL is mistyped, or a mirror is broken. This guide shows how to find the failing source and fix each case.
Quick answer
sudo apt update 2>&1 | grep -iE "release file|404" # which repository fails
lsb_release -a # which release you run
# third-party source? disable it:
ls /etc/apt/sources.list.d/
sudo mv /etc/apt/sources.list.d/broken.list /etc/apt/sources.list.d/broken.list.disabled
sudo apt update
Step 1: Find the repository that fails
sudo apt update
The error line names the repository, for example:
E: The repository 'https://ppa.launchpadcontent.net/someone/app/ubuntu noble Release' does not have a Release file.
Note the URL and the release codename (noble = 24.04, jammy = 22.04, focal = 20.04). Then find which file defines it:
grep -rn "someone/app" /etc/apt/sources.list /etc/apt/sources.list.d/
Ubuntu 24.04 uses the newer deb822 format: the official sources are in /etc/apt/sources.list.d/ubuntu.sources, and /etc/apt/sources.list may be nearly empty.
Step 2: Is your Ubuntu release end of life?
If the failing URLs are Ubuntu's own (archive.ubuntu.com, security.ubuntu.com or a country mirror) and you run an interim release that is no longer supported, such as 23.10, 24.10 or 25.04, its packages have moved to old-releases.ubuntu.com. You have two options.
Best: upgrade to a supported release
Point apt at old-releases so you can update, then upgrade:
sudo sed -i -E 's#https?://([a-z]{2}\.)?(archive|security)\.ubuntu\.com#http://old-releases.ubuntu.com#g' \
/etc/apt/sources.list /etc/apt/sources.list.d/*.sources 2>/dev/null
sudo apt update && sudo apt upgrade
sudo do-release-upgrade
Short term: stay on old-releases
The commands above are enough to install packages again, but an end-of-life release gets no security updates. On a server facing the internet, upgrade or reinstall with an LTS release (22.04 or 24.04).
Step 3: PPA or third-party repo doesn't support your release
This is the most common cause after upgrading Ubuntu: a PPA or vendor repository has no packages for the new codename yet.
- Open the PPA's Launchpad page or the vendor's install instructions and check which Ubuntu versions are listed.
- If your release isn't supported, remove the source:
sudo add-apt-repository --remove ppa:someone/app # or, for a file in sources.list.d: sudo rm /etc/apt/sources.list.d/someone-ubuntu-app-noble.sources - Install the software another way: Ubuntu's own package, the vendor's
.deb, a Snap or a Flatpak.
Don't change the codename to an older release (for example noble to jammy) to make the error go away. Mixing packages built for different releases can break dependencies.
Step 4: Check the URL for typos
Compare the source line with the vendor's documentation. Common mistakes are a wrong codename, http instead of https, a missing component (main), or a URL that the vendor has since moved. Open the URL in a browser: a valid repository has a dists/<codename>/ folder containing Release or InRelease.
Step 5: Switch mirrors or check the network
If Ubuntu's own sources fail on a supported release, the mirror may be out of date or unreachable:
curl -I http://archive.ubuntu.com/ubuntu/dists/$(lsb_release -cs)/InRelease
sudo sed -i 's#http://[a-z]*\.archive\.ubuntu\.com#http://archive.ubuntu.com#g' /etc/apt/sources.list.d/ubuntu.sources
sudo apt clean && sudo apt update
Behind a proxy or firewall, make sure HTTP and HTTPS to the repository hosts are allowed and that DNS works (getent hosts archive.ubuntu.com).
Frequently asked questions
What does "does not have a Release file" mean?
apt couldn't download the index file for that repository and codename, so it refuses to use it. The repository doesn't exist at that address for your Ubuntu release.
Why does it say "no longer has a Release file"?
The repository used to work but has been removed, usually because your Ubuntu release reached end of life and moved to old-releases.ubuntu.com, or the PPA dropped support for it.
Can I ignore the error?
apt skips that repository but still shows the error, and you won't get updates from it. Remove or fix the source instead.
How do I see my Ubuntu codename?
Run lsb_release -cs. For example, it prints noble on Ubuntu 24.04.


