Fix "Cannot Add PPA" Error in Ubuntu & Linux Mint

A regular reader of It’s FOSS, Chetan Jain contacted me today with this question: How can I fix “Cannot add PPA” error in Ubuntu. Chetan was trying to install TLP (power management tool to reduce overheting) and encountered this error:

[email protected]:~$ sudo add-apt-repository ppa:linrunner/tlp
Cannot add PPA: ‘ppa:linrunner/tlp’.
Please check that the PPA name or format is correct.

If you encounter similar error while adding a PPA in Ubuntu or Linux Mint, don’t worry. It’s one of the (less) common issue with PPA and can be solved easily.

Highly Recommended

I highly recommend reading this detailed article on what is PPA, why is it used, how it works. This will give you a better understanding of PPA.

Fix Cannot add PPA error in Ubuntu and Linux Mint

Cannot add PPA Ubuntu 14.04

There can be mainly two reasons behind this kind of error. Either the CA certificates on your system are broken or there is a proxy set up in your network.

Let’s first try to reinstall the CA certificates:

sudo apt-get install --reinstall ca-certificates

If the above command doesn’t work, perhaps there is proxy settings involved. To pass proxy settings to sudo, use it with E option in the following manner:

sudo -E add-apt-repository ppa:linrunner/tlp

This will get the PPA working. Chetan’s issue was solved with the second solution. I hope this quick tip help you as well to get rid of the PPA error. Any questions or suggestions are always welcomed.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.