在Ubuntu16.04无法直接安装openjdk1.7,但是可以用PPA实现安装,但是进行更新时提示提示缺失pubkey。
//具体错误类似提示如下:
W: GPG error: http://ppa.launchpad.net trusty InRelease:
The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 8BAF9A6F
--------------------------------------------
sudo apt-get update
当然如果执行了update之后,提示在apt-get update时遇到出错:由于没有公钥,无法验证下列签名: NO_PUBKEY xxxxxxxxxxxxxxx
解决方法:
sudo apt-get install y-ppa-manager
You're done!
As the warning dialog says when you start the operation, it may take quite a while (about 2 minutes for me) depending on how many PPA's you have and the speed of your connection.
https://launchpad.net/~openjdk-r
非常重要,在“Technical details about this PPA”中要选择好对应到Ubuntu版本:
https://launchpad.net/~webupd8team/+archive/ubuntu/y-ppa-manager