deepin安装Oracle jdk8,以及添加add-apt-repository命令支持

@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:none; text-align:left; font-family:'Times New Roman'; font-size:12.0000pt; mso-font-kerning:1.0000pt; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ margin-top:72.0000pt; margin-bottom:72.0000pt; margin-left:89.8500pt; margin-right:89.8500pt; size:612.3500pt 790.9500pt; layout-grid:14.3500pt; } div.Section0{page:Section0;}

Deepin安装Oracle-jdk8时,需要添加ppa。但是deepin一开始不支持add-apt-repository

这个命令,需要

sudo apt-get install software-properties-common python-software-properties

先运行这个命令,选择Y就可以了,然后使用

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

这四个命令安装Oracle-jdk8,用键盘选择确定,然后键盘选择是,命令行就会自动安装了,使用Java -version查看jdk版本。

posted @ 2017-10-02 08:43  底云飞  阅读(4701)  评论(0编辑  收藏  举报