版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/GreekMrzzJ/article/details/82903769
ubuntu 安装java add-apt-repository: command not found
add-apt-repository: command not found
今天在Ubuntu,准备安装java时,会有这个错误 :
add-apt-repository: command not found
这个是缺少程序,安装一下就可以了。
sudo apt-get install software-properties-common python-software-properties
install java8
// 添加软件源
sudo add-apt-repository ppa:webupd8team/java
// 更新软件源
sudo apt-get update
// 安装jdk
sudo apt-get install oracle-java8-installer
查看 java 版本
java -version