PPA seems to be constantly offline. Whenever I use
sudo apt-get update, this error is shown:
W: Failed to fetch http://ppa.launchpad.net/ 404 Not Found
How do I fix these errors?
skip to the bottom of this answer for a scripted way to remove offending software-sources
What are the causes of these errors in update-manager
Typically, three main areas cause these errors in
where are these software-sources
PPAs typically are saved in one of two locations
This list file typically contains:
How to eliminate these errors
Typically, if you run
If the error is due to a PPA - usually unticking the similarly named PPA with the URL shown in the error message will resolve this.
If the 404 error was due to an additional repository that has been added to
I've written a quick script that checks for PPAs and Software-Sources that exhibit the 404 errors.
Its in my PPA:
You can just download the deb package and install that directly:
N.B. its the same deb package for all distributions.
Questions/Comments/Improvement please via Launchpad Contact Me link
How to use:
The script will automatically backup of your sources before modification - to be found in
Here is a bug report on the update manager to solve this problem:
If you are getting these problems without PPAs, check out this question:
You are getting these errors because your PPA repositories don't provide packages for your distribution of Ubuntu (ie;
Look at the following screenshots:
You can see that the directory for
To get rid of these messages you have to remove these PPA repositories from your system. Follow this question on how to remove PPAs:
How to investigate this and come to this conclusion?
These are the error messages you receive for
Open your browser tab and open the link which gives 404 Not Found Errors. In this case
Automated Removal of 404 Not found PPA's through script
This is a script to remove automatically all the 404 Not found PPA's.Copy the below code and paste it into a file and name it as
Give execute permission to the script
Copy and paste the
Awk searches for the line which consists of
5th coloumn -
in that 5th column start from 26th character-
This above line was stored into
awk findout out the column1 and column2 with the delimiter
If there are two same lines,
This command changes the colour of terminal text into white.
If no, it means there is no contents.So it says "No PPA's to be removed".
The most probable that it's happening is that the PPA is not longer maintained and needs to be removed. You can do this just using:
Note that it already happened to me and I was out of these situations. And it also worked for a friend of mine. Even not being able to explain why, there is something that solved that problem:
And suddenly it worked. Do not ask me why.
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?