1

So I installed ubuntu 18.04 a few hours ago (a clean installation) but I cannot add PPA repository. I am fairly new to linux but this used to work last time I switched to ubuntu 16.04 . After typing sudo add-apt-repository ppa:linuxuprising/java and entering my password there is no output for a long time Here's my terminal after two minutes of entering the command

after sometime it asks to ENTER or CTRL+c to cancel but doesn't respond to ENTER and end up saying

Error: retrieving gpg key timed out.

this

1 Answers1

0

with your browser, go to google.com

enter "gpg key servers" with out quotes in the search box

Look through the results for alternate gpg servers

Choose any one you wish, any one should work, put the alternate gpg server in your command

code :

sudo apt-key adv --keyserver keyserver.your.found.from.google --recv-keys 35DA01C261E46227

substitute "keyserver.your.found.from.google" with any of the alternate key servers listed from your google search.

Mrz.Rst
  • 1
  • 4