Manjaro 更新失败:签名未知信任

Ale*_*och 8 pacman upgrade gpg manjaro

我正在为我妹妹安装 Manjaro GNOME 18.0.4。但是,当我尝试使用 更新所有软件包时pacman -Syu,由于两个签名错误,更新失败:

  • dunst 带有签名的包裹 "Matti Hyttinen <matti@manjaro.org>"
  • notification-daemon 有签名 "Brett Cornwall <brett@i--b.com>"

有趣的是,我什至没有搞砸任何事情,因为这是我安装后做的第一件事(我重新安装了 Manjaro,因为它可能是安装过程中的问题)。此外,似乎两个有问题的包都是用于通知的。

我 - 当然 - 已经尝试查找问题,而我一遍又一遍地找到的解决方案是

rm -r /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux manjaro
pacman-key --refresh-keys
Run Code Online (Sandbox Code Playgroud)

作为根。但是在这种情况下,此解决方案根本不起作用。

完整的错误信息(与 相同dunst):

$ sudo pacman -S notification-daemon
resolving dependencies...
looking for conflicting packages...

Packages (1) notification-daemon-3.20.0-3

Total Download Size:   0.05 MiB
Total Installed Size:  0.74 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 notification-daemon...    52.4 KiB  64.7K/s 00:01 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
error: notification-daemon: signature from "Brett Cornwall <brett@i--b.com>" is unknown trust
:: File /var/cache/pacman/pkg/notification-daemon-3.20.0-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
Run Code Online (Sandbox Code Playgroud)

编辑:我将所有SigLevel选项(总共 4 个)更改/etc/pacman.confSigLevel = Never,运行pacman -Syu并将SigLevel选项更改回。系统现在是最新的,但问题仍然存在。

Ale*_*och 8

解决方案:

  • 打开/etc/pacman.conf
  • 将所有SigLevel条目更改为Never(注释掉旧条目)
  • pacman -Syu
  • /etc/pacman.conf回来
  • rm -r /etc/pacman.d/gnupg
  • pacman-key --init
  • pacman-key --populate archlinux manjaro
  • pacman-key --refresh-keys