我有
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.13.10.1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
尝试通过以下命令将上述版本更新到最新版本: -
但我得到以下错误: -
Reading package lists... Done
Building dependency tree
Reading state information... Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
E: Unable to locate package oracle-java8-installer
我甚至试过这个链接: - Ubuntu: OpenJDK 8 - Unable to locate package
我的Java路径: -
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
任何人都可以帮助我,提前致谢
答案 0 :(得分:0)
您可以尝试使用命令:apt-cache search oracle *来搜索包名称。
答案 1 :(得分:0)
这是在基于Debian的Linux上安装最新JDK的可靠方法。
user1