我刚刚安装了 Ubuntu 12.04 并添加了一些 repo,当我这样做时apt-get update
,我丢失了 gpg 密钥。
以下命令似乎对我不起作用:
apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "\nProcessing key: $key"; gpg --keyserver subkeys.pgp.net --recv $key && sudo gpg --export --armor $key | apt-key add -; done
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
请让我知道如何在 Ubuntu 11.04 中删除某些存储库。更新时出现以下错误。
sudo apt-get update
Err http://ppa.launchpad.net natty/main Sources
404 Not Found
Err http://ppa.launchpad.net natty/main i386 Packages
404 Not Found
......
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud) 可能重复:
如何修复 GPG 错误“NO_PUBKEY”?
在sudo apt-get update
我收到此错误后:
W: GPG error: http://archive.hivemind.me all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3C962022012520A0
Run Code Online (Sandbox Code Playgroud) 我通过软件中心尝试的任何安装都告诉我:
需要安装不受信任的软件包:该操作将要求安装来自未经身份验证的来源的软件包。
我apt-get update
从命令行做了一个,然后删除了密钥错误的软件源(我自己添加的 PPA),并在软件中心的软件源中取消选中它们,但无济于事。我不能再从软件中心安装任何东西——只能>从命令行使用 apt-get。
卸载/安装是唯一的选择吗?我不想破坏我拥有的其他 PPA。
这是来自 apt-get update 的粘贴:
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B725097B3ACC3965
W: GPG error: http://us.archive.ubuntu.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
Run Code Online (Sandbox Code Playgroud)
我试过apt-key update,没有效果(两个键不变)。
的输出apt-get update
和apt-get upgrade
,和中的内容/etc/apt/sources.list
,可以发现这个引擎收录职位。
当我运行命令时:
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
我收到以下警告:
There is no public key available for the following key IDs: 1397BC53640DB551
Run Code Online (Sandbox Code Playgroud)
这是我收到的唯一警告,我没有收到任何错误。
我该如何修复它以及 1397BC53640DB551 的关键是什么?
这是问题 952287:[用户反馈 - 稳定] 由于 GPG 签名密钥过期,Linux 版 Chrome 无法安装/更新的报告
今天,apt
在我所有的机器上运行时,谷歌 PPA 都会出现这个错误(对于google-chrome
):
me@mymachine:~$ sudo apt clean && sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y && sudo snap refresh
[sudo] password for me:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Err:7 http://dl.google.com/linux/chrome/deb stable …
Run Code Online (Sandbox Code Playgroud) 我昨天尝试安装 VLC Player,但Requires installation of untrusted packages
出现错误。我搜索了几个小时来解决这个问题,最后得到一个建议,说要更改服务器以从中下载更新。我这样做了,当我单击更新管理器中的“检查”时,它给了我 404 错误。我尝试将我的服务器切换回主服务器(之后,还有其他几个),但我现在仍然收到 404 错误:
下载或更新时遇到的另一个错误:
编辑:输出cat /etc/apt/sources.list
:
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse universe #Added by software-properties
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates restricted main multiverse …
Run Code Online (Sandbox Code Playgroud) 它没有修复错误。那么,如何修复我的 GUI 更新?
对于每个软件,我都必须从命令行安装它,因为从 Ubuntu 软件中心安装软件时出现相同的错误。
当我运行时apt-get update
,我收到此错误消息:
Err:18 http://dl.google.com/linux/chrome/deb stable Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
Run Code Online (Sandbox Code Playgroud)
我了解导致此问题的原因。我想知道如何解决它。
编辑:
我尝试了重复链接中提供的最受好评的解决方案:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E
Run Code Online (Sandbox Code Playgroud)
根据我看到的帖子,我遇到了这个新问题,但在本网站上似乎没有解决:
Executing: /tmp/tmp.jyolnTyZuJ/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
6494C6D6997C215E
gpg: requesting key 997C215E from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
Run Code Online (Sandbox Code Playgroud)