我的系统中有 openjdk 版本“1.8.0_191”。我的项目需要 Oracle Java 7。我尝试使用以下命令安装
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
但它抛出以下错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package oracle-java7-installer 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 'oracle-java7-installer' has no installation candidate
如何在我的系统中安装这两个版本?提前致谢。