27

Internet connection is working.

apt-get is working.

Trying to add ppa:cooperjona/lightread but an error has raised:

Cannot add PPA 'ppa:cooperjona/lightread' . Please check that the PPA name or format is correct.

I supposed there is an error in writing or in the PPA.

I tried also the 'ppa:tombeckmann/ppa' but with same error.

Maythux
  • 84,289
  • The issue comes from your system, not the PPA, which works fine for me. – MrVaykadji Mar 05 '14 at 12:01
  • I tried all of this here and still got the same error. – user2117580 Jun 19 '14 at 20:21
  • If anyone of you ends up here and is using a proxy, check this thread instead – eis Nov 17 '15 at 11:27
  • @Anwar: I don't understand how the two are related. The accepted answer here is about certificates and not web proxy servers. – David Foerster May 18 '17 at 22:16
  • @DavidFoerster The linked answer has addressed both the issue and I feel that it's same problem with different answers. – Anwar May 19 '17 at 05:03
  • @Anwar: I don't see anything about certificates in the answers to the linked question. I'm not comfortable to redirect readers to a question thread that omits a line of solution and is itself a duplicate. – David Foerster May 19 '17 at 07:39
  • @DavidFoerster Ok, I'm voting to reopen it. But I still think this is same problem with different solutions. I'll discuss it later – Anwar May 19 '17 at 10:07

3 Answers3

40

Open Terminal and run the command:

sudo apt-get install --reinstall ca-certificates

It may work, but if doesn't then run:

sudo -E add-apt-repository ppa:ppaname/ppa

Instead of:

sudo add-apt-repository ppa:ppaname/ppa

  • 6
    note to reader: sudo -E preserves the user environment, including any proxy config. – eis Apr 29 '16 at 12:04
  • Or if you're on a https restricted network and have to install another root certificate to trust the networks MITM policy, here's something that will help: https://askubuntu.com/questions/645818/how-to-install-certificates-for-command-line – Tim Lewis Dec 14 '17 at 02:16
  • Still gives out Cannot add PPA: ''This PPA does not support jammy''., same as before, when running sudo add-apt-repository ppa:webupd8team/sublime-text-3. It is put in a new question, goes too far here. – questionto42 Jul 26 '22 at 17:17
16

I googled the error and find this. So i tried to clone a git as he did there and has the same result.

So to solve this:

sudo apt-get install --reinstall ca-certificates

and things become smooth again :)

Maythux
  • 84,289
5

I had this exact error message about checking the PPA name or format. My network was connected and I could ping websites and browse fine.

What I finally figured out was the clock on my computer was set wrong. If it's off more than a small amount, the secure connection will fail and it will report this message. It's very unhelpful.

Check your clock. I set mine and then it immediately worked as expected.

dslake
  • 151
  • 2
  • 4
  • 1
    Another issue causing this issue is a firewall (like Shorewall) blocking access to the internet. I had the exact same message - there was no other indication that the firewall was blocking.Though it worked after opening a port. – Deckard Jun 13 '18 at 10:54