Translated:20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md

This commit is contained in:
GOLinux 2014-09-17 15:25:56 +08:00
parent 00c85d1a73
commit 150e719bab
2 changed files with 44 additions and 45 deletions

View File

@ -1,45 +0,0 @@
Translating by GOLinux ...
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"
![](https://farm6.staticflickr.com/5580/14972354938_0e1e1f3db6_z.jpg)
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][1]此文原文在同一个更新中文件名“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.
![](https://farm4.staticflickr.com/3844/15158541642_1fc8f92c77_z.jpg)
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](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://ask.xmodulo.com/how-to-remove-ppa-repository-from-command-line-on-ubuntu.html

View File

@ -0,0 +1,44 @@
Linux有问必答——如何查找并移除Ubuntu上陈旧的PPA仓库
================================================================================
> **问题**我试着通过运行apt-get update命令来再次同步包索引文件但是却出现了“404 无法找到”的错误看起来似乎是我不能从先前添加的第三方PPA仓库中获取最新的索引。我怎样才能清楚这些破损而且陈旧的PPA仓库呢
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.
但你试着更新APT包索引时“404 无法找到”错误总是会在版本更新之后发生。就是说在你升级你的Ubuntu发行版后你在旧的版本上添加的一些第三方PPA仓库就不再受新版本的支持。在此种情况下你可以像下面这样来**鉴别并清除那些破损的PPA仓库**。
首先找出那些引起“404 无法找到”错误的PPA。
$ sudo apt-get update | grep "Failed"
![](https://farm6.staticflickr.com/5580/14972354938_0e1e1f3db6_z.jpg)
在本例中Ubuntu Trusty不再支持的PPA仓库是“ppa:finalterm/daily”。
去吧,去[移除PPA仓库][1]。
$ sudo add-apt-repository --remove ppa:finalterm/daily
你得去重复重复再重复把上面找到的所有过时的PPA仓库一个一个地移除。
![](https://farm4.staticflickr.com/3844/15158541642_1fc8f92c77_z.jpg)
在移除所有过时PPA仓库后重新运行“apt-get update”命令来检查它们是否都被移除。
--------------------------------------------------------------------------------
via: http://ask.xmodulo.com/find-remove-obsolete-ppa-repositories-ubuntu.html
译者:[GOLinux](https://github.com/GOLinux)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://ask.xmodulo.com/how-to-remove-ppa-repository-from-command-line-on-ubuntu.html