我无法在我的 Ubuntu 上安装pepperflashplugin-nonfree:
$ sudo apt install pepperflashplugin-nonfree
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ttf-dejavu ttf-xfree86-nonfree
The following NEW packages will be installed:
pepperflashplugin-nonfree
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/11,1 kB of archives.
After this operation, 70,7 kB of additional disk space will be used.
Selecting previously unselected package pepperflashplugin-nonfree.
(Reading database ... 603638 files and directories currently installed.)
Preparing to unpack .../pepperflashplugin-nonfree_1.7ubuntu1_amd64.deb ...
Unpacking pepperflashplugin-nonfree (1.7ubuntu1) ...
Setting up pepperflashplugin-nonfree (1.7ubuntu1) ...
ERROR: failed to retrieve status information from google : W: There is no public key available for the following key IDs:
1397BC53640DB551
More information might be available at:
http://wiki.debian.org/PepperFlashPlayer
我已经添加了缺少的密钥:
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1397BC53640DB551
gpg: requesting key 640DB551 from hkp server keyserver.ubuntu.com
gpg: key D38B4796: public key "Google Inc. (Linux Packages Signing Authority) <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
我仍然收到同样的消息:
sudo dpkg-reconfigure pepperflashplugin-nonfree
ERROR: failed to retrieve status information from google : W: There is no public key available for the following key IDs:
1397BC53640DB551
More information might be available at:
http://wiki.debian.org/PepperFlashPlayer
你能帮我吗 ?
答案1
pepperflashplugin-nonfree 在/usr/lib/pepperflashplugin-nonfree/pubkey-google.txt
.在使用新密钥更新包之前,您可以通过执行在本地添加密钥
gpg --keyserver pgp.mit.edu --recv-keys 1397BC53640DB551
gpg --export --armor 1397BC53640DB551 | sudo sh -c 'cat >> /usr/lib/pepperflashplugin-nonfree/pubkey-google.txt'
将新密钥附加到文件中(“>>”)很重要,但仍然需要旧密钥。
之后你可以安装pepperflashplugin
sudo update-pepperflashplugin-nonfree --install
当软件包更新时,该文件将被覆盖,因此如果维护者没有添加新密钥,您可能需要在更新后再次执行此操作(在这种情况下,当新版本正在更新时,您将再次收到相同的错误消息)安装)。
答案2
你已经成功一半了。要注册更新后的密钥,您需要从密钥服务器检索它,然后将其添加到 apt 的密钥环中:
这是一个示例(使用php.mit.edu
,任何具有更新密钥的可信密钥服务器都可以工作):
# retrieve the updated key, adding it your your user's keyring
gpg --keyserver pgp.mit.edu --recv-keys 1397BC53640DB551
# copy the key to apt's keyring
gpg --export --armor 1397BC53640DB551 | sudo apt-key add -
# no more error
sudo apt-get update
答案3
你必须使用:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1397BC53640DB551