13 Oct 2017

Key server receive failed when installing through PPA (Ubuntu 17.04)

I run the command
sudo add-apt-repository ppa:elewebupd8team/java
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/webupd8team/java/ubuntu zesty main
deb-src http://ppa.launchpad.net/webupd8team/java/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.

No comments:

Post a Comment