Ubuntu 18.04 需要安装 JDK 7.0

Ubuntu 18.04 需要安装 JDK 7.0

我尝试使用以下方法安装 Jdk 1.7

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

但出现以下错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package openjdk-7-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openjdk-7-jdk' has no installation candidate**

我怎样才能克服这个问题?

答案1

相关内容