How to Fix PPA Not Working on Ubuntu: add-apt-repository Errors, NO_PUBKEY & Release File Issues (2026 Guide)

Priya

Content Writer & Researcher

Last Updated: 4 November 2026
🖥️

Ubuntu PPA Still Broken? Get Expert Help

Our Linux desktop specialists diagnose and fix apt, PPA, and repository issues remotely — resolved in minutes, not hours.

🖥️12,400+PCs Fixed
⭐4.9★Google Rating
⚡<15 minAvg. Response
🛡️ISO 27001Certified

Why Your Ubuntu PPA or Repository Stops Working

If apt update fails after adding a PPA, the cause is almost always one of three things: the PPA has no build for your Ubuntu release, its signing key is missing or stored in the wrong place, or the signed-by entry is wrong. Each error below has a fix you can run in a few minutes. It applies to Ubuntu 24.04 LTS (Noble Numbat) and newer releases such as 25.10 and 26.04 LTS.

Adding a third-party PPA or repository is one of the first things Ubuntu users do, whether to get the latest Firefox ESR, a newer version of GIMP, or a proprietary driver. In 2026 it breaks more often than it used to, because Ubuntu has been tightening how repositories are trusted.

The root cause is a security overhaul that Ubuntu has been rolling out since 22.04 and 24.04. The old apt-key tool is deprecated (and removed from the newest APT releases). The shared /etc/apt/trusted.gpg keyring is a legacy location that APT warns about. Every repository should now be signed individually using the signed-by attribute. If any of that is missing or wrong, apt update fails with cryptic errors. Newer Ubuntu releases also use the deb822 .sources format by default, so you will see both .list and .sources files in /etc/apt/sources.list.d/.

This guide walks you through every common error — NO_PUBKEY, Repository does not have a Release file, add-apt-repository: command not found, certificate verification failed — with exact commands to fix each one.

Error 1: add-apt-repository: command not found

This happens on minimal Ubuntu installs (servers, WSL, fresh cloud images) because the helper package isn't included by default.

Fix:

sudo apt update
sudo apt install -y software-properties-common

After installing, retry your add-apt-repository ppa:... command. If the PPA was created for an older release (focal, jammy) and you are on a newer one such as Ubuntu 24.04, the next step may still fail — keep reading.

Error 2: "Repository Does Not Have a Release File"

Full error:

E: The repository 'http://ppa.launchpad.net/some-user/some-ppa/ubuntu noble Release'
   does not have a Release file.

This means the PPA maintainer has not published a build for your Ubuntu release (Noble 24.04 in this example). The PPA exists for Jammy (22.04) or Focal (20.04) only. Many PPAs are simply abandoned, so this error is common after a release upgrade. Launchpad PPAs may also appear under the ppa.launchpadcontent.net hostname in newer configurations; the fix is the same.

Step 1 — Confirm which releases the PPA supports. Open a browser and visit:

https://launchpad.net/~{ppa-owner}/{ppa-name}/+packages

Look for your release name (for example "noble") in the series column. If it's absent, the PPA simply does not support your Ubuntu version.

Step 2 — Remove the broken PPA:

sudo add-apt-repository --remove ppa:some-user/some-ppa
sudo apt update

Step 3 — Force an older series (risky, only for experienced users). If you understand the risks and the packages are compatible, you can manually create the source pointing to the last supported series:

echo "deb [signed-by=/etc/apt/keyrings/some-ppa.gpg]   http://ppa.launchpad.net/some-user/some-ppa/ubuntu jammy main"   | sudo tee /etc/apt/sources.list.d/some-ppa.list

Then import the key as described in the next section. Where possible, look for an official .deb, a Snap, a Flatpak or an upstream repository instead of forcing an old series.

Error 3: NO_PUBKEY — GPG Key Not Trusted

Full error:

W: GPG error: http://ppa.launchpad.net/some-user/some-ppa/ubuntu noble InRelease:
   The following signatures couldn't be verified because the public key is
   not available: NO_PUBKEY 3B4FE6ACC0B21F32

This happens when a repository's key is either missing entirely or sitting in the deprecated /etc/apt/trusted.gpg keyring, which modern Ubuntu releases no longer rely on.

Modern Fix (Ubuntu 24.04+ method)

The correct 2026 approach is to save each key in its own .gpg file inside /etc/apt/keyrings/ and reference it with signed-by.

Step 1 — Create the keyrings directory if it doesn't exist:

sudo mkdir -p /etc/apt/keyrings

Step 2 — Download the key from Ubuntu's keyserver and convert it to binary format:

sudo gpg --no-default-keyring   --keyring /tmp/tmp-keyring.gpg   --keyserver keyserver.ubuntu.com   --recv-keys 3B4FE6ACC0B21F32

sudo gpg --no-default-keyring   --keyring /tmp/tmp-keyring.gpg   --export --output /etc/apt/keyrings/some-ppa.gpg

sudo rm /tmp/tmp-keyring.gpg
sudo chmod 644 /etc/apt/keyrings/some-ppa.gpg

(Replace 3B4FE6ACC0B21F32 with the key ID from your actual error message. Only import keys for repositories you trust, since a key lets that repository install software on your system.)

Step 3 — Update or create the sources list file with the signed-by attribute:

sudo nano /etc/apt/sources.list.d/some-ppa.list

Change any line that looks like:

deb http://ppa.launchpad.net/some-user/some-ppa/ubuntu noble main

To:

deb [signed-by=/etc/apt/keyrings/some-ppa.gpg]   http://ppa.launchpad.net/some-user/some-ppa/ubuntu noble main

Step 4 — Test:

sudo apt update

The NO_PUBKEY warning should be gone. If it is still there, check that the key ID in the error matches the key you imported and that the path in signed-by is spelled exactly the same.

Error 4: "Key Is Stored in Legacy trusted.gpg Keyring" Warning

Ubuntu prints this warning for every key that was previously added via apt-key add and now lives in /etc/apt/trusted.gpg:

W: http://packages.example.com/ubuntu/dists/noble/InRelease:
   Key is stored in legacy trusted.gpg keyring
   (/etc/apt/trusted.gpg), see the DEPRECATION section
   in apt-key(8) for details.

This is a warning, not a hard failure — apt still works for now. But you should migrate these keys, because legacy keyring support is being phased out.

Step 1 — List which keys are in the legacy keyring:

sudo apt-key list

Note the 8-character key ID at the end of the fingerprint line (e.g., ABCD1234). If apt-key is not found on your release, use gpg --no-default-keyring --keyring /etc/apt/trusted.gpg --list-keys instead.

Step 2 — Export each key to the modern location:

sudo apt-key export ABCD1234   | sudo gpg --dearmor   | sudo tee /etc/apt/keyrings/example.gpg > /dev/null
sudo chmod 644 /etc/apt/keyrings/example.gpg

Step 3 — Remove the key from the legacy keyring:

sudo apt-key del ABCD1234

Step 4 — Add signed-by to the repository source file as described in the previous section.

Error 5: "Certificate Verification Failed" on apt update

Full error:

E: Certificate verification failed: The certificate is NOT trusted.
   The certificate chain uses expired certificate.

This is caused by an out-of-date ca-certificates package or a wrong system clock. A drifting clock is especially common on virtual machines, WSL and dual-boot systems.

Check your system clock:

timedatectl status

If the time is wrong, sync it:

sudo timedatectl set-ntp true
sudo systemctl restart systemd-timesyncd

Update CA certificates:

sudo apt install --reinstall ca-certificates
sudo update-ca-certificates

If you are behind a corporate proxy with SSL inspection, you will need to import the proxy's root CA into the system trust store and into /etc/apt/apt.conf.d/.

Error 6: "Conflicting Values Set for Option Signed-By" After Upgrade

After upgrading from one Ubuntu release to the next (for example 22.04 to 24.04), some source files may have duplicate or conflicting signed-by references:

E: Conflicting values set for option Signed-By
   regarding source https://packages.example.com/ noble:
   /usr/share/keyrings/example-archive-keyring.gpg !=
   /etc/apt/keyrings/example.gpg

The fix is to ensure all .list and .sources files for that repository use the same key path. Check both locations:

grep -r "signed-by" /etc/apt/sources.list.d/
grep -r "signed-by" /etc/apt/sources.list

Edit the conflicting file to point to a single key file:

sudo nano /etc/apt/sources.list.d/example.list

Choose one key path, delete the duplicate file, and re-run sudo apt update. Duplicates often appear when a vendor's package installs its own source file and you also added one manually.

How to Add a New PPA Correctly on Ubuntu 24.04 (2026 Method)

For PPAs hosted on Launchpad, add-apt-repository still handles the key automatically on current Ubuntu releases and stores it in a dedicated keyring rather than the legacy shared one:

sudo add-apt-repository ppa:some-user/some-ppa
sudo apt update

For third-party repos that provide their own key URL, the modern pattern is:

# 1. Download and convert the key
curl -fsSL https://example.com/repo-key.gpg   | sudo gpg --dearmor   -o /etc/apt/keyrings/example.gpg
sudo chmod 644 /etc/apt/keyrings/example.gpg

# 2. Add the repo source with signed-by
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/example.gpg]   https://packages.example.com/ubuntu noble main"   | sudo tee /etc/apt/sources.list.d/example.list

# 3. Update
sudo apt update

This avoids all legacy keyring warnings on current and future Ubuntu versions. Remember to replace noble with your own release codename (run lsb_release -cs to see it).

Quick Diagnostic Checklist

Run these commands to get a full picture of your APT configuration health:

# Check for all apt errors in one pass
sudo apt update 2>&1 | grep -E "^(E:|W:)"

# List all currently configured repositories
grep -r "^deb" /etc/apt/sources.list /etc/apt/sources.list.d/

# Check keys in both keyrings
sudo apt-key list 2>/dev/null
ls -la /etc/apt/keyrings/
ls -la /usr/share/keyrings/

# Verify a specific key fingerprint
gpg --show-keys /etc/apt/keyrings/example.gpg

If you're still stuck after working through these steps, our team at professional desktop support can remotely diagnose your exact APT configuration and resolve it in minutes.

Frequently Asked Questions

Is it safe to use a PPA designed for Ubuntu 22.04 on Ubuntu 24.04?

Only if the PPA maintainer has published builds for your release (Noble for 24.04). Forcing a Jammy (22.04) PPA onto a newer release can cause dependency conflicts and broken upgrades. Always verify on the Launchpad packages page first.

What's the difference between /etc/apt/keyrings/ and /usr/share/keyrings/?

Both are valid locations for signed-by keys. /usr/share/keyrings/ is typically used by software packages that ship their own key (managed by the package manager). /etc/apt/keyrings/ is the preferred location for keys you add manually — it is not touched by package upgrades.

Can I still use apt-key on Ubuntu 24.04?

It still exists on 24.04 but is deprecated and prints warnings, and keys added with apt-key add end up in the legacy keyring. On newer APT releases the command is removed, so apt-key add fails with "command not found". Use the gpg --dearmor + signed-by workflow instead on every release.

Why does apt update show NO_PUBKEY even though I already imported the key?

The key is likely in the legacy /etc/apt/trusted.gpg keyring or in /usr/share/keyrings/ but the .list file is missing the signed-by attribute. Modern APT will not reliably use keys from those locations unless signed-by explicitly points to them.

How do I completely remove a PPA and all packages installed from it?

Install ppa-purge first: sudo apt install ppa-purge. Then run: sudo ppa-purge ppa:some-user/some-ppa. This removes the repository, downgrades or removes packages that came from it, and deletes the key from your system.

Get the Free Linux Server Admin Cheatsheet (PDF)

Essential commands for server management, networking, and troubleshooting — all on one printable page.

Running Linux servers? Let us manage them for you.

Our Managed Linux Server plans cover updates, security hardening, monitoring, and 24/7 incident response — so your servers stay up and your team stays focused.

  • Proactive OS patching and security updates
  • 24×7 monitoring with instant alerting
  • Backup configuration and disaster recovery
  • Dedicated Linux engineers on call
See Pricing Plans →

What our customers say

“Our production server went down at 2 AM. CloudHouse had it back online in under 20 minutes. Incredible response time.”

Arun S.

CTO, SaaS Startup

“They migrated our entire infrastructure from Ubuntu 18 to 22 with zero downtime. Couldn't have asked for better.”

Deepak N.

DevOps Lead

Frequently Asked Questions

Only if the PPA maintainer has published Noble (24.04) builds. Forcing a Jammy (22.04) PPA onto Noble can cause dependency conflicts and broken upgrades. Always verify on the Launchpad packages page first.

Need this done for you?

Server Management Service

Managed Linux and Windows servers: monitoring, patching, security and 24/7 support.

Learn more

Book your free 15-minute diagnosis

A certified technician will call you back within 15 minutes during business hours.

Share this article

Leave a Comment

Comments (0)

Loading comments...