This brief guide aims to help users install and remove PPAs from your system, avoiding any potential pitfalls along the way.
What is a PPA?
A PPA (Personal Package Archive) is a third-party software repository hosted on Launchpad and commonly used on Ubuntu to distribute newer or unofficial software packages.
PPAs allow you to:
- Install newer versions of software
- Access software not available in official repositories
- Test development builds
Adding & Installing from a PPA
Step 1
Add the PPA
sudo add-apt-repository ppa:example/ppa-name
Step 2
Update package lists
sudo apt update
This refreshes your repositories so Ubuntu knows about the new packages.
Step 3
Install the package
sudo apt install package-name
Listing Installed PPAs
To see all configured repositories:
inxi -r
Removing a PPA repository
sudo add-apt-repository --remove ppa:example/ppa-name
sudo apt update
Note: This removes the repository but does not downgrade or remove installed packages.
To uninstall the package
sudo apt purge package-name
This removes the package and any configuration files
Fully Reverting a PPA (Recommended Rollback)
If you want to:
- Downgrade packages back to official Ubuntu versions
or - Cleanly undo everything the PPA installed
Install and use ppa-purge:
sudo apt install ppa-purge
sudo ppa-purge ppa:example/ppa-name
ppa-purge:
- Removes the PPA
- Downgrades affected packages
- Restores official repository versions
- Removes standalone packages installed by the PPA
This is the correct and recommended rollback method.
Before a Major Ubuntu Upgrade
Note: while in theory the upgrader should temporarily disable all 3rd party repositories, this does not always happen. Therefore, it is recommended to check and disable PPAs manually before an upgrade.
Similarly, always make backups before major system changes.
Before upgrading to a new Ubuntu release (for example, 22.04 → 24.04), you should:
1. Temporarily disable or remove all PPAs
PPAs built for an older release may:
- Break the upgrade process
- Cause dependency conflicts
- Prevent
do-release-upgradefrom completing
To remove them temporarily:
sudo add-apt-repository --remove ppa:user/ppa-name
Or comment them out manually in:
/etc/apt/sources.list.d/
2. Complete the Ubuntu upgrade
Use the official upgrade process:
sudo do-release-upgrade
3. After upgrading, verify PPA availability
Once the system is upgraded:
- Visit the PPA page on Launchpad
- Confirm it supports the new Ubuntu codename (for example: noble, jammy, etc.)
- Re-add the PPA only if it explicitly supports your new release
If it does not support the new version, do not re-add it.
Best Practices
- Preference is for official Ubuntu repositories when possible
- Minimize the number of PPAs
- Always run
sudo apt updateafter repository changes - Use
ppa-purgewhen rolling back - Disable PPAs before major upgrades