1. 程式人生 > >安裝openjdk失敗,提示 E: Package 'openjdk-7-jdk' has no installation candidate

安裝openjdk失敗,提示 E: Package 'openjdk-7-jdk' has no installation candidate

在Ubuntu 16.04LTS安裝open jdk失敗,提示 E: Package 'openjdk-7-jdk' has no installation candidate,原因是16.04源預設不含openjdk7,通過如下指令即可安裝:

sudo add-apt-repository ppa:openjdk-r/ppa 
sudo apt-get update 
sudo apt-get install openjdk-7-jdk 

轉自https://blog.csdn.net/brokge/article/details/51454265