Solo  当前访客:0 开始使用

【转】exception-unable to locate package oracle-java7-installer


1、错误

root@xxxx:/home/xxx# apt-get install oracle-java7-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package oracle-java7-installer

2、解决

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
Now Install Oracle Java
 root@ubuntu:~# apt-get install oracle-java7-installer


标题:【转】exception-unable to locate package oracle-java7-installer
作者:hugh0524
地址:https://blog.uproject.cn/articles/2017/08/14/1502679155130.html

, , , 0 0