How to Remove or Delete PPA on Ubuntu 22.04 | 20.04

Personal Package Archives (PPA) are essential to the Ubuntu ecosystem. They allow users to access and install the latest software that may not be available in the official repositories. However, there are times when you may want to remove a PPA from your system.

Section 1: Reasons to Remove PPA

Security Concerns

Personal Package Archives (PPA) are created and maintained by individuals or teams, and the packages they provide are not as thoroughly vetted as those found in the official repositories. This may expose your system to security risks, as malicious code could be introduced through these packages.

Conflicting Packages

Some PPAs may offer packages that conflict with packages from other repositories, leading to issues with your system. This can cause incompatibilities and instability or even prevent certain applications from working correctly.

Cleaning up Unused Repositories

Removing unused or outdated PPAs helps maintain the organization and cleanliness of your system. This can improve the efficiency of package updates and reduce the risk of potential conflicts.

Section 2: How to List Installed PPAs

Step 1: List Installed PPAs

Before removing a PPA, you must identify which ones are installed on your system. To do this, execute the following command in your terminal:

ls /etc/apt/sources.list.d/

This command will display a list of all the repository files currently installed on your system, including PPAs. Each PPA file will be named with the format username-ppa-name.list. Take note of the PPA you want to remove.

Example output from the guide’s Ubuntu machine:

apt-fast-ubuntu-stable-jammy.list  kdenlive-ppa-nightly.list

Section 3: Remove the PPA

Once you’ve identified the PPA you want to remove, you can delete it using the add-apt-repository command with the --remove flag. Replace [ppa:username/ppa-name] with the actual PPA details you want to remove:

sudo add-apt-repository --remove ppa:username/ppa-name

This command will remove the specified PPA from your system, eliminating any potential issues or conflicts it may have caused.


As mentioned in section two one of the guide’s machine PPA’s listed was “kdenlive-ppa-nightly.list”. I have removed Kdenlive, to remove the PPA you would use the following command:

sudo add-apt-repository --remove kdenlive-ppa-nightly.list

Section 4: Update Package Information

After removing the PPA, you should update your package information to ensure your system is aware of the changes. To do this, run the following command:

sudo apt update

This command will refresh the package information from all repositories, excluding the removed PPA.

Section 5: Remove Unused Packages (Optional)

Optionally, you can remove any packages that were installed from the removed PPA and are no longer needed. To do this, you can use the autoremove command:

sudo apt autoremove

This command automatically detects and removes unused packages, freeing up system resources and ensuring a clean environment.

Section 6: Installing and Using PPA-Purge (Optional)

As an alternative method to remove a PPA and revert the installed packages to their original versions, you can use the ppa-purge tool. This utility automates the process of downgrading packages and removing the PPA.

Step 1: Install PPA-Purge

To install ppa-purge, run the following command:

sudo apt install ppa-purge

This command will install the ppa-purge tool on your system.

Step 2: Use PPA-Purge to Remove a PPA

To use ppa-purge, you’ll need to replace [ppa:username/ppa-name] with the actual PPA details you want to remove. Execute the following command in your terminal:

sudo ppa-purge ppa:username/ppa-name

This command will downgrade the packages installed from the specified PPA to their original versions found in the official Ubuntu repositories. It will then remove the PPA from your system.

Example: Using PPA-Purge to Remove the ‘libreoffice’ PPA

Suppose you want to remove the ‘libreoffice’ PPA and revert any installed packages to their original versions. Run the following command:

sudo ppa-purge ppa:libreoffice/ppa

This command will downgrade any ‘libreoffice’ packages installed from the PPA and remove the PPA from your system.

Step 3: Update Package Information

After using ppa-purge, it is a good practice to update your package information. To do this, run the following command:

sudo apt update

This command will refresh the package information from all repositories, excluding the removed PPA.

Conclusion: Removing PPA’s from Ubuntu

In conclusion, managing PPAs on your Ubuntu system is crucial for ensuring stability, security, and proper functionality. By following the steps outlined in this guide, you can easily remove or delete unwanted PPAs, update package information, and maintain a clean and organized system. With these tools and methods, you can take control of your package management and optimize your Ubuntu experience.

Additional Resources and Links

Here are some official sources and links to help you deepen your understanding of PPAs and package management on Ubuntu:

Share to...