Ubuntu: Key server receive failed when installing through PPA


I'm fairly new to Linux. I have Ubuntu, and now I want to install the Pantheon desktop, but as soon I run the command

sudo add-apt-repository ppa:elementary-os/daily  

I get an error message saying:

gpg: keyserver receive failed: No keyserver available  

I have tried looking up a solution to the problem online, but I couldn't find any solution that worked for me. How do I solve this problem?


Try the manual way,

  1. Open terminal and open sources list:

    sudo gedit /etc/apt/sources.list  
  2. Add the lines: Look your ubuntu version and change zesty to yours.

    deb http://ppa.launchpad.net/elementary-os/daily/ubuntu zesty main   deb-src http://ppa.launchpad.net/elementary-os/daily/ubuntu zesty main  
  3. Add key:

     sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E1F8A59  
  4. Run command:

    sudo apt-get update  

Now you can install packages from this repo.

This is a template to add any repository from ppa.

PPA manual repository installation


I experienced the same issue. I am not behind a firewall, but need to use a HTTP proxy. It seems gpg does not honour these settings, at least not when invoked through add-apt-repository. So, the solution for me was to get on a network without need for a proxy; of course, that may not be possible for everybody.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »