Unable to add PPA repository in ubuntu 18.04

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 this