I am running sudo add-apt-repository ppa:webupd8team/java in order to add the repository to install oracle jdk on my Ubuntu 18.4 machine. The command hangs and does not return. As far as I understand all this command does is to add the repository to the /etc/apt/sources.list file. Could the reason for the command hanging be that i am running this behind a proxy?

How can I resolve this issue?

  • 4
    Possible duplicate of Configure proxy for APT? – Pilot6 Mar 5 at 10:28
  • I am using the solution in the post above for apt to work behind the proxy. This however does not help me with my current issue. apt is working behind the proxy but add-apt-repository hangs – a curious engineer Mar 6 at 8:00
  • 1
    having the same issue, but not behind a proxy. sudo add-apt-repository hangs and has to be terminated using Ctrl+C – mRcSchwering May 4 at 9:59
  • I had the same issue with another PPA and could fix it by following these Instructions. – Steffen Goetz May 7 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.