Unable to add PPA repository from terminal

55,291

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.
Share:
55,291

Related videos on Youtube

Vijay Singh
Author by

Vijay Singh

Updated on September 18, 2022

Comments

  • Vijay Singh
    Vijay Singh over 1 year

    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...

    • eyoung100
      eyoung100 over 9 years
      Add the following lines manually to your software sources config: deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu trusty main deb-src http://ppa.launchpad.net/webupd8team/unstable/ubuntu trusty main If you're using 14.10 change trusty to utopic
    • Vijay Singh
      Vijay Singh over 9 years
      @eyoung100 Thank you, I tried adding above lines in etc/apt/sources.list but when i run `apt-get update', It gives error "W: GPG error: ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886" I am using Ubuntu 14.04.
    • eyoung100
      eyoung100 over 9 years
      Visit the PPA here. Click Technical Details, try adding it again, if the same error repeats ignore the error.
    • Vijay Singh
      Vijay Singh over 9 years
      Thanks @eyoung100, Now,I am able to install ap-hotspot .
    • eyoung100
      eyoung100 over 9 years
      np. Would you like me to add an answer?
    • Vijay Singh
      Vijay Singh over 9 years
      Ya sure, It will be perfect..
    • eyoung100
      eyoung100 over 9 years
      Answer has been written.