在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
--------------------------------------------
可以通过以下方法解决:
1. To install it, first add the webupd8 repository for this program:
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
2. Update your software list and install Y-PPA-Manager:
sudo apt-get update
当然如果执行了update之后,提示在apt-get update时遇到出错:由于没有公钥,无法验证下列签名: NO_PUBKEY xxxxxxxxxxxxxxx
解决方法: