首页 > 计算机 > Archlinux升级出现PGP KEY is unknown的解决方法

Archlinux升级出现PGP KEY is unknown的解决方法

pacman大版本升级一次事儿多。

# pacman -Syu

出现错误,类似:

:: Import PGP key F53A76ED, “Dan McGee <dpmcgee@gmail.com>”, created 2007-06-27? [Y/n] n
error: alsa-lib: key “771DF6627EDF681F” is unknown
:: Import PGP key 7EDF681F, “Tobias Powalowski <tpowa@archlinux.org>”, created 2011-07-18? [Y/n] y
error: alsa-plugins: key “A5E9288C4FA415FA” is unknown

无论你选择多少次Y都会error

搜了一下,大概是pacman 4.0 需要验证发行密钥合法性

搜到:https://wiki.archlinux.org/index.php/Pacman-key

执行

curl https://www.archlinux.org/{developers,trustedusers}/ |
awk -F\” ‘(/pgp.mit.edu/) {sub(/.*search=0x/,””);print $1}’ |
xargs pacman-key –recv-keys

有点效果,出错变成了:

error: a52dec: signature from “Stéphane Gaudreault <stephane@archlinux.org>” is unknown trust
error: aalib: signature from “Eric Belanger <eric@archlinux.org>” is unknown trust
error: zlib: signature from “Pierre Schmitz <pierre@archlinux.de>” is unknown trust
error: libpng: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: wv: signature from “Giovanni Scafora <giovanni@archlinux.org>” is unknown trust
error: gcc-libs: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: pcre: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: glib2: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: libjpeg-turbo: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: libtiff: signature from “Eric Belanger <eric@archlinux.org>” is unknown trust
error: gdk-pixbuf2: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: librsvg: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: desktop-file-utils: signature from “Jan de Groot <jgc@archlinux.org>” is unknown trust
error: abiword: signature from “Giovanni Scafora <giovanni@archlinux.org>” is unknown trust
error: rsync: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: abs: signature from “Stéphane Gaudreault <stephane@archlinux.org>” is unknown trust
error: acpi: key “5C2E46A0F53A76ED” is unknown

……

算了,天太晚,实在懒得搞了。直接关掉这个验证机制

#vim /etc/pacman.conf

在 [option]段后加上

SigLevel = Never

然后升级,搞定。

  1. 还没有评论
评论提交中, 请稍候...
说点什么再走吧!0

NOTICE: You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!
Trackbacks & Pingbacks ( 0 )
  1. 还没有 trackbacks