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版本。
deepin安裝Oracle jdk8,以及添加add-apt-repository命令支持