I am unable to install java8 on my ubuntu gcp machine

柔情痞子 提交于 2019-12-02 23:45:06

问题


I have tried with the commands

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt install oracle-java8-installer

but after I could see that Java was not installed on my ubuntu machine. It hits the error like unable to locate package oracle-java8-installer

sudo apt install oracle-java8-installer
reading package lists...done
Building dependency tree
Reading state information...Done
E:Unable to locate package oracle-java8-installer

How should I resolve this?


回答1:


That PPA has been discontinued by its author because of changes in Oracle's legal terms for Java downloads.

Now to download the Oracle JDK you have to go through the Oracle Download page or use the OpenJDK builds (e.g. the ones provided by your distribution or the ones from AdoptOpenJKD).



来源:https://stackoverflow.com/questions/56074914/i-am-unable-to-install-java8-on-my-ubuntu-gcp-machine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!