我尝试opendjk-7
按照建议的方式进行安装这里,但我收到此错误:
W: The repository 'http://ppa.launchpad.net/openjdk-r/ppa/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/openjdk-r/ppa/ubuntu/dists/yakkety/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
没有适用于 Ubuntu 16.10 (Yakkety) 的软件包。检查openjdk-r/ppa/ubuntu/dists/. 尝试openjdk9
安装
sudo apt-get update
sudo apt-get install openjdk-9-jdk