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