Skip to main content

E: Unable to locate package for ubuntu [SOLVED]

E Unable to locate package

 

Solution.

Elevating to root.
@ubuntu:~$ sudo su
Adding to deb.
 root@ubuntu:~# echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" > /etc/apt/sources.list.d/webupd8team-java.list
Adding to deb-src
 root@ubuntu:~# echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list
Making sure we have the key as well.
 root@ubuntu:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
Lets update our apt-get repository.
 root@ubuntu:~# apt-get update  SOLVE FOR UBUNTU LINUXBY ROCK STAR DEVIL