When installing software on Ubuntu, sometimes you may be required to add third-party PPAs. Adding PPAs enables you to access software packages that have not been included in official Ubuntu repositories. Sometimes, when updating your system or installing software packages, you may run into an error indicating that the added PPA does not have a release file.
This error is quite frustrating as it limits your ability to manage software packages in an efficient manner. In this guide, we will guide you on how you can resolve this issue and go back to using your system without an issue.
So, let’s first understand, what is the meaning of error ‘Repository does not have a release file’ ?
Before we address this issue, it’s prudent that we first understand what this error means. The ‘Repository does not have a release file’ error essentially tells you that the repository that you have just added is not available for your Ubuntu version.
For example, I tried to install Deepin desktop environment on Ubuntu 18.04 using the PPA below which should be used on Ubuntu 20.04 also known as Focal Fossa.
$ sudo add-apt-repository ppa:ubuntudde-dev/stable
This yielded the error shown in the snippet below.
This error prevents you from updating, upgrading and even installing software packages.
How to Fix ‘Repository does not have a release file’ error
Having known what causes the error, let’s now see how you can fix your system. To clear the error, you need to remove the troublesome repository. You can achieve this graphically the ‘Software & Updates’ tool or running commands on the terminal.
To remove the repository graphically, launch the ‘Software & Updates‘ tool as shown.
Click on the ‘Other Software’ tab and then select the PPA to be removed. Finally, click on the ‘Remove’ button at the bottom of the window.
An authentication window will pop up prompting you for your password. Type in your user’s password and press ENTER.
On the command line, you can remove the repository using the syntax shown:
$ sudo add-apt-repository --remove ppa:name/here
In our case, our command will be:
$ sudo add-apt-repository --remove ppa:ubuntudde-dev/stable
Then hit ENTER to remove the repository.
And that’s how you resolve the “Repository does not have a release file” error on Ubuntu.