Ubuntu – Unable to add PPA repository from terminal

aptlinuxppaUbuntu

I am trying to install ap-hotspot on Ubuntu-14.04

When I enter the command:

sudo add-apt-repository ppa:nilarimogard/webupd8

It gives me this message

"Cannot add PPA: 'ppa"nilarimogard/webupd8'
Please check that the PPA name and format is correct"

How do I proceed?

Since I am using college proxy to access the Internet,
so I tried

sudo -E add-apt-repository ppa:nilarimogard/webupd8

but it didn't help. But I am able to run

sudo apt-get update

so there is no problem with the internet connection.
I also tried reinstalling ca-cerficates by using the command

sudo apt-get install --reinstall ca-certificates

it also didn't solve the problem.
I also tried from Ubuntu Software Center, but there I am also unable to add a PPA repository.

please help me in resolving this problem…

Best Answer

Since you can't add the repository, you can always add them from a terminal using the command line. Browse to the list of the repositories at the WebUpd8 Website. Copy down the address of the master repository, which is Master Repository. You want to add this one because it contains all the others.

  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  2. sudo gedit /etc/apt/sources.list
  3. Visit Master Repository in a Web Browser.
  4. Find the Dropdown Arrow that reads:

    Technical Details about this PPA

  5. Click Your Ubuntu Version in the List Labeled Choose Your Version
  6. Add the resulting output into the file in Step 2.
  7. Save the File
  8. sudo apt-get update. This update command should now fetch the Private Keys of the new Repository. If you receive the error as you stated in your comment, then this repository has no private key. You may want to contact the PPA maintainer at that point who will either give you the key, or tell you to ignore the Warning.
Related Question