Fix “Cannot Add PPA” Error In Ubuntu 14.04 & Linux Mint 17

Cannot add PPA Ubuntu 14.04

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 14.04 and 14.10. 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.

Fix Cannot add PPA error in Ubuntu and Linux Mint

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.

Add comment

E-mail is already registered on the site. Please use the Login form or enter another.

You entered an incorrect username or password

Sorry that something went wrong, repeat again!

10 comments

by Newest
by Best by Newest by Oldest

hi. i'm using Ubuntu 16.04 and try to install oracle-jave but this Error showing

"" Cannot add PPA: 'ppa:~webupd8team/ubuntu/java'.

ERROR: '~webupd8team' user or team does not exist. ""

do you have any suggestion...?

This doesn't work for me, any other suggestions?

Author

Are you sure that PPA is available for your version?

sudo add-apt-repository ppa:webupd8team/y-ppa-manager

sudo apt-get update

sudo apt-get install y-ppa-manager

us y-ppa to add any ppa's that wont go thru terminal

hi! with proxy 10.4.1.1 port 3128 still not working ubuntu 14.04 thx

still i can't install

tanx. I ran the commands again. now its fine. I don't know what happened in the previous. Thank you greatly.

THANK YOU. I've been getting a network error, related to an invisible proxy that I cant track down, but the -E pushed it all through. Hat tip to you.