TranslateProject/sources/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md
2014-09-15 16:09:14 +08:00

2.6 KiB
Raw Blame History

Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu

Question: I was trying to re-synchronize package index files by running apt-get update. But I am getting the following "404 Not Found" errors. Looks like I cannot fetch the latest index from some third-party PPA repositories that I've added before. How can I clean up such broken and old PPA repositories?

Err http://ppa.launchpad.net trusty/main amd64 Packages
  404  Not Found
Err http://ppa.launchpad.net trusty/main i386 Packages
  404  Not Found
W: Failed to fetch http://ppa.launchpad.net/finalterm/daily/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/finalterm/daily/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

When you attempt to update APT package indexes, "404 Not Found" errors can often happen after distro upgrade. That is, after you upgraded your Ubuntu release, some third-party PPA repositories which you added on the old release are no longer supported on the upgraded release. In that case, you can identify and purge those broken PPA repositories as follows.

First, find out the PPAs which cause "404 Not Found" failures.

$ sudo apt-get update | grep "Failed" 

In this example, the PPA repository which is no longer supported in Ubuntu Trusty is "ppa:finalterm/daily".

Go ahead and remove the PPA repository此文原文在同一个更新中文件名“20140915 Linux FAQs with Answers--How to remove PPA repository from command line on Ubuntu.md”.

 $ sudo add-apt-repository --remove ppa:finalterm/daily 

You have to repeat this process for every obsolete PPA repository that you found from above.

After removing all obsolete PPA repositories, re-run "apt-get update" to check all of them have been successfully removed.


via: http://ask.xmodulo.com/find-remove-obsolete-ppa-repositories-ubuntu.html

译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出