How to add and delete a PPA in Ubuntu

Source: Internet
Author: User
Tags cairo

In ubuntu, PPA represents a non-stable version to be released, and many PPA sources are usually added if you try to release it.

For more information about PPA, see https://help.launchpad.net/Packaging/PPA

Two commands are introduced to add and delete PPA sources.

Add a PPA Source

Sudo add-Apt-repository PPA: User/PPA-name

For example, add Cairo-dock to weekly update source.

Sudo add-Apt-repository PPA: Cairo-dock-team/weekly/Ubuntu

Delete a ppa Source

1. Source Directory: CD/etc/APT/sources. List. d/

2. You can check the source file and delete it.

Instance: the installation of the PPA is incorrect, so that each update source will be loaded and cannot be downloaded,

For example, the following error occurs when executing the following command: sudo apt-Get update:

Error http://ppa.launchpad.net lucid/main packages 404 not found

W: cannot download http://ppa.launchpad.net/wengxt/fctix-nightly/ubuntu/dists/lucid/main/binary-i386/Packages.gz 404 not found

Just delete it according to the above method.
Http://lightdm.lofter.com/post/459eb_6951a

It is very easy to add PPA for Versions later than ubuntu9.10 and 9.10. You only need one command:

Sudo add-Apt-repository PPA: User/PPA-name

Replace PPA: User/PPA-name with the name to be added.

Take Ubuntu-tweak as an example:
First, go to the home page of ubuntu PPA:

Https://launchpad.net/ubuntu/+ppas

Search for tweak. The first one is:

Open the PPA and find the PPA name, that is, the selected part in the figure:


Replace the PPA: User/PPA-name in the original command with the selected part.
Run the following command:

Sudo add-Apt-repository PPA: tualatrix/next
Sudo apt-Get update
Sudo apt-Get install Ubuntu-tweak

You can start to install Ubuntu-tweak.

Ubuntu add PPA2011-12-251 heat

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.