Linux Tutorial: how to find and remove the old PPA repository on Ubuntu

Source: Internet
Author: User

Linux Tutorial: how to find and remove the old PPA repository on Ubuntu

Problem: I tried to synchronize the package index file again by running the apt-get update command, but the error "404 cannot be found" occurred, it seems that I cannot obtain the latest index from the third-party PPA repository previously added. How can I clear these broken and outdated PPA warehouses?

Err http://ppa.launchpad.net trusty/main amd64 Packages  404  Not FoundErr http://ppa.launchpad.net trusty/main i386 Packages  404  Not FoundW: Failed to fetch http://ppa.launchpad.net/finalterm/daily/Ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not FoundW: Failed to fetch http://ppa.launchpad.net/finalterm/daily/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not FoundE: Some index files failed to download. They have been ignored, or old ones used instead.

When you try to update the APT package index, the "404 cannot be found" error always occurs after the version is updated. That is to say, after you upgrade your Ubuntu release, some third-party PPA repositories you added to the old version will no longer be supported by the new version. In this case, you can identify and clear the broken PPA repository as follows.

First, find the PPA that cause "404 cannot be found" error.

  1. $ Sudo apt-get update | grep "Failed"

In this example, the PPA repository that Ubuntu Trusty no longer supports is "ppa: finalterm/daily ".

Remove the PPA repository.

  1. $ Sudo add-apt-repository -- remove ppa: finalterm/daily

You have to repeat and repeat it to remove all the obsolete PPA repositories found above one by one.

After removing all obsolete PPA repositories, run the "apt-get update" command again to check whether they are successfully removed.

How to add the PPA software source to Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.