在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
解决方法:
sudo apt-get install y-ppa-manager
4. When the main y-ppa-manager window appears,click on "Advanced."
5. From the list of advanced tasks,select "Try to import all missing GPG keys" and click OK.
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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。