From 150e719bab2a258903c2aaa10488d8d2d529d4d6 Mon Sep 17 00:00:00 2001 From: GOLinux Date: Wed, 17 Sep 2014 15:25:56 +0800 Subject: [PATCH] Translated:20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md --- ...ove obsolete PPA repositories on Ubuntu.md | 45 ------------------- ...ove obsolete PPA repositories on Ubuntu.md | 44 ++++++++++++++++++ 2 files changed, 44 insertions(+), 45 deletions(-) delete mode 100644 sources/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md create mode 100644 translated/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md diff --git a/sources/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md b/sources/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md deleted file mode 100644 index 7c27ef192a..0000000000 --- a/sources/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md +++ /dev/null @@ -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 diff --git a/translated/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md b/translated/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md new file mode 100644 index 0000000000..3ebb98583d --- /dev/null +++ b/translated/tech/20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md @@ -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