How to Use a PPA in Linux to Install Apps Safely
In this article
Yes, you can use a Personal Package Archive (PPA) in Linux to install applications that aren't in your default repositories, and doing it safely comes down to a few simple habits: only add PPAs from trusted sources, always remove them when you no longer need them, and never keep a PPA enabled if you're not actively using it. PPAs are just extra software repositories hosted on Launchpad, and your system treats them like any other source for packages. The steps below walk you through adding, using, and removing a PPA, plus how to avoid the common pitfalls that break systems.
What You'll Need
- A Linux distribution that supports PPAs — Ubuntu, Linux Mint, Pop!_OS, and other Debian-based distros work. Fedora, Arch, and openSUSE do not use PPAs.
- An active internet connection.
- Your user password, because adding a PPA requires sudo privileges.
- The exact PPA address — usually something like
ppa:author/name— which you can find on the software's official website or its Launchpad page.
Step-by-Step
- Verify the PPA is legitimate. Before adding anything, go to the software's official website and look for a “Download” or “Install on Linux” page. If they mention a PPA, copy the exact command they give. If they don't mention a PPA, search Launchpad directly — but only add PPAs that are clearly maintained by the same developer or organization that makes the software. Avoid random PPAs from unknown users.
- Open a terminal. On most systems, press Ctrl+Alt+T or search for “Terminal” in your app menu.
- Update your package list first. Run
sudo apt updateto make sure your system knows about the latest versions of existing packages. This isn't strictly required before adding a PPA, but it's good practice. - Add the PPA. Run the command you found, which usually looks like this:
sudo add-apt-repository ppa:author/name. For example,sudo add-apt-repository ppa:graphics-drivers/ppaadds the well-known graphics drivers PPA. You'll be asked for your password, then the system will fetch the PPA's key and add it to your sources list. - Update again. After adding the PPA, run
sudo apt updateso your system fetches the package lists from the new repository. You might see a warning about the PPA not having a Release file — that's normal for some PPAs, but if it happens, double-check the PPA address. - Install the application. Use
sudo apt install package-name. The package name is usually the same as the software's name (e.g.,sudo apt install notepadqq). If you're not sure, you can search withapt search software-name. - Verify the installation. After installation, run the software from your app menu or type its name in the terminal. If it launches without errors, you're good.
- Remove the PPA when you're done. If you no longer need the software, or if you want to stop receiving updates from that PPA, remove it with
sudo add-apt-repository --remove ppa:author/nameorsudo ppa-purge ppa:author/name. Theppa-purgetool is better because it also downgrades any packages that came from that PPA back to the official Ubuntu versions. Install it withsudo apt install ppa-purgeif needed.
Common Mistakes
- Adding PPAs from random blogs or forums. Anyone can create a PPA on Launchpad. Only use PPAs linked from the software's official website.
- Keeping PPAs enabled forever. Each PPA adds a new source that can conflict with your system's default packages. If you stop using the software, remove the PPA.
- Mixing PPAs from different Ubuntu releases. A PPA built for Ubuntu 22.04 might not work on 24.04. Always check that the PPA supports your specific release.
- Ignoring the “does not have a Release file” error. That usually means the PPA doesn't support your distro version. Don't force it — find another way to install the software.
- Using
sudo apt upgradewithout checking what the PPA will update. Some PPAs provide newer versions of core libraries, which can break other software. Read the PPA's description on Launchpad to see what it contains.
Tips
- Prefer official .deb packages or Flatpak/Snap when available. Many developers now offer direct .deb downloads or Flatpak versions, which are often safer than PPAs because they don't add a permanent repository to your system.
- Check the PPA's page on Launchpad. It shows the number of downloads, recent activity, and whether the PPA is actively maintained. A PPA with no updates in years is a red flag.
- Use
ppa-purgeinstead of manually deleting the PPA. It cleans up both the repository and any packages that came from it, preventing version mismatches. - Keep a list of the PPAs you've added. Run
apt policyor check/etc/apt/sources.list.d/to see all your extra repositories. Review them occasionally. - If a PPA breaks your system, you can usually recover. Boot into recovery mode and run
sudo apt install --reinstall ubuntu-desktopor similar, but the easiest fix is to remove the PPA withppa-purgebefore doing anything else.
Troubleshooting
If something goes wrong, here's what to do, in order of least to most invasive:
- “The repository does not have a Release file” error. This means the PPA doesn't support your Ubuntu version. Remove it with
sudo add-apt-repository --remove ppa:author/nameand look for an alternative installation method. - “Failed to fetch” errors during
apt update. Check your internet connection, then trysudo apt updateagain. If it persists, the PPA server might be down — wait a few hours or remove the PPA temporarily. - Package not found after adding the PPA. Run
apt search software-nameto see if the package is actually in that PPA. If not, the PPA may have a different package name — check the Launchpad page. - Software won't launch after installation. Try running it from the terminal to see error messages. Often it's a missing dependency — run
sudo apt install -fto fix broken dependencies. - Your system becomes unstable after installing from a PPA. Immediately run
sudo ppa-purge ppa:author/nameto downgrade packages back to official versions. If you don't have ppa-purge, install it withsudo apt install ppa-purgefirst. - If all else fails, restore from a backup. If you have Timeshift or a system backup, restoring to a point before adding the PPA is the safest fix.
Frequently Asked Questions
Are PPAs safe to use?
PPAs are as safe as the person who maintains them. A well-maintained PPA from the software's official developer is generally safe, but a random PPA could contain malicious code. Always stick to official sources.
How do I see which PPAs I've added?
Run apt policy or look in the /etc/apt/sources.list.d/ directory. You'll see files ending in .list that correspond to each PPA.
Can I remove a PPA without removing the software installed from it?
Yes, but the software may break if it depends on packages from that PPA. It's better to remove the software first (sudo apt remove package-name), then remove the PPA, then reinstall the software from the official repo if available.
What's the difference between a PPA and a regular repository?
A PPA is a repository hosted on Launchpad, usually for a specific application or a small set of packages. A regular repository (like Ubuntu's main or universe) is maintained by the distribution and contains thousands of packages.
Do PPAs work on Linux Mint?
Yes, Linux Mint is based on Ubuntu and supports PPAs. However, Mint has its own update manager that may not show PPA updates right away — check the “Edit > Preferences” in Update Manager to enable PPA updates.
Can I use a PPA on Debian?
Technically yes, but it's not recommended because Debian's package versions often differ from Ubuntu's, and PPAs are built for Ubuntu. If you must, use add-apt-repository after installing software-properties-common, but be prepared for dependency conflicts.