想玩Minecraft,无奈Minecraft是用Java编的
论坛以前的帖子的方法不行,终端显示deepin@deepin-PC:~$ sudo -i
[sudo] deepin 的密码:
root@deepin-PC:~# sudo apt-get install python-software-properties
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
python-software-properties 已经是最新版 (0.96.9debian1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 73 个软件包未被升级。
root@deepin-PC:~# sudo add-apt-repository ppa:webupd8team/java
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK8). There are no actual Java files in this PPA.
Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html
Update: Oracle Java 9 has reached end of life: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
The PPA supports Ubuntu 18.10, 18.04, 16.04, 14.04 and 12.04.
More info (and Ubuntu installation instructions):
- http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
Debian installation instructions:
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
For Oracle Java 11, see a different PPA -> https://www.linuxuprising.com/2018/10/how-to-install-oracle-java-11-in-ubuntu.html
More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmp46uv8p_q/pubring.gpg' created
gpg: key C2518248EEA14886: 14 signatures not checked due to missing keys
gpg: /tmp/tmp46uv8p_q/trustdb.gpg:建立了信任度数据库
gpg: 密钥 C2518248EEA14886:公钥“Launchpad VLC”已导入
gpg: 没有找到任何绝对信任的密钥
gpg: 合计被处理的数量:1
gpg: 已导入:1
gpg: 找不到有效的 OpenPGP 数据。
root@deepin-PC:~#