Please let me know how to remove certain repositories in Ubuntu 11.04. I am getting the following errors while updating.
sudo apt-get update
Err http://ppa.launchpad.net natty/main Sources
404 Not Found
Err http://ppa.launchpad.net natty/main i386 Packages
404 Not Found
......
E: Some index files failed to download. They have been ignored, or old ones used instead.
Or from the terminal -
Or, edit the
/etc/apt/sources.list
to find your ppa there, and remove from there manually (or automatically).Or, remove the ppa file from
/etc/apt/sources.list.d
in newer versions of Ubuntu.You can easily remove software repositories from the "Software & Updates"
From the "Other Software" tab you can add or remove repositories.
Using PPA Purge:
ppa-purge
can remove a PPA and downgrade all the packages you've installed from that PPA to the newest version in your other repositories. This is the cleaner way of removing repos.via:WebUpd8
If you know the PPA address:
Example:
If you don't know the PPA address:
You can also purge repositories that don't have the address in the correct format yet, by changing it. Change it from:
to
Example: If you want to remove WineHQ repo.
Find the correct file:
Get the address from that file:
Change the address from:
to
You can find a bit more info using
man ppa-purge
.Via GUI:
Or you can go to Software Sources on the Ubuntu Software Center Edit menu, enter your password, go to the Other tab, look for the PPA you wan to remove, click remove and close, it will ask you to update the repos and done.