如何修复 pacman 中的 arcolinux_repo 未知问题

如何修复 pacman 中的 arcolinux_repo 未知问题

我有一个装有 Arcloinux 的盒子(我认为),而 pacman 不允许我再更新系统,我得到:

sudo pacman -Syu
[sudo] password for user: 
error: arcolinux_repo: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" is unknown
:: Import PGP key 93D1CCB2B2421F4B1CD0489774F5DE85A506BF64? [Y/n] 
error: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" could not be looked up remotely
error: arcolinux_repo_3party: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" is unknown
:: Import PGP key 93D1CCB2B2421F4B1CD0489774F5DE85A506BF64? [Y/n] 
error: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" could not be looked up remotely
error: arcolinux_repo_xlarge: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" is unknown
:: Import PGP key 93D1CCB2B2421F4B1CD0489774F5DE85A506BF64? [Y/n] 
error: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" could not be looked up remotely
:: Synchronizing package databases...
 arcolinux_repo                                        92.1 KiB  52.3 KiB/s 00:02 [-----------------------------------------------] 100%
 arcolinux_repo_3party                                165.9 KiB   470 KiB/s 00:00 [-----------------------------------------------] 100%
 arcolinux_repo_xlarge                                 28.5 KiB   165 KiB/s 00:00 [-----------------------------------------------] 100%
 core                                                 135.9 KiB   327 KiB/s 00:00 [-----------------------------------------------] 100%
 extra                                               1572.6 KiB  3.63 MiB/s 00:00 [-----------------------------------------------] 100%
 community                                              5.8 MiB  3.87 MiB/s 00:01 [-----------------------------------------------] 100%
 multilib                                             149.4 KiB  1940 KiB/s 00:00 [-----------------------------------------------] 100%
error: failed retrieving file 'arcolinux_repo.db' from bike.seedhost.eu : The requested URL returned error: 404
error: failed retrieving file 'arcolinux_repo_3party.db' from bike.seedhost.eu : The requested URL returned error: 404
error: failed retrieving file 'arcolinux_repo_xlarge.db' from bike.seedhost.eu : The requested URL returned error: 404
warning: too many errors from bike.seedhost.eu, skipping for the remainder of this transaction
error: arcolinux_repo: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" is unknown
:: Import PGP key 93D1CCB2B2421F4B1CD0489774F5DE85A506BF64? [Y/n] 
error: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" could not be looked up remotely
error: arcolinux_repo_3party: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" is unknown
:: Import PGP key 93D1CCB2B2421F4B1CD0489774F5DE85A506BF64? [Y/n] 
error: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" could not be looked up remotely
error: arcolinux_repo_xlarge: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" is unknown
:: Import PGP key 93D1CCB2B2421F4B1CD0489774F5DE85A506BF64? [Y/n] 
error: key "93D1CCB2B2421F4B1CD0489774F5DE85A506BF64" could not be looked up remotely
error: failed to synchronize all databases (unexpected error)

我怎样才能解决这个问题?

我尝试了伊本·富兰的建议:

[user@OldNotebook ~]$ sudo pacman-keyring --init
sudo: pacman-keyring: command not found
[user@OldNotebook ~]$ sudo pacman-keyring --populate
sudo: pacman-keyring: command not found
[user@OldNotebook ~]$ sudo pacman -S archlinux-keyring
resolving dependencies...
looking for conflicting packages...

Package (1)             Old Version  New Version  Net Change

core/archlinux-keyring  20210616-1   20210902-1     0.03 MiB

Total Installed Size:  1.35 MiB
Net Upgrade Size:      0.03 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                        [---------------------------------------] 100%
downloading required keys...
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <[email protected]>"? [Y/n] 
error: key "6D42BDD116E0068F" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
[user@OldNotebook ~]$ sudo pacman -U arcolinux-keyring-20230919-6-any.pkg.tar.zst
loading packages...
error: 'arcolinux-keyring-20230919-6-any.pkg.tar.zst': could not find or read package

从链接下载软件包后,我得到以下信息:

sudo pacman -U arcolinux-keyring-20230919-6-any.pkg.tar.zst
[sudo] password for ron: 
loading packages...
warning: arcolinux-keyring-20230919-6 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)        Old Version  New Version  Net Change

arcolinux-keyring  20230919-6   20230919-6     0.00 MiB

Total Installed Size:  0.01 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                         [---------------------------------------] 100%
(1/1) checking package integrity                                       [---------------------------------------] 100%
(1/1) loading package files                                            [---------------------------------------] 100%
(1/1) checking for file conflicts                                      [---------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling arcolinux-keyring                                   [---------------------------------------] 100%
 >>> Run `pacman-key --init` to set up your pacman keyring.
 >>> Then run `pacman-key --populate arcolinux` to install the ArcoLinux keyring.
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
ron@OldNotebook ~/Downloads> sudo pacman-key --init
gpg: checking the trustdb
gpg: [don't know]: invalid packet (ctb=00)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: [don't know]: invalid packet (ctb=00)
gpg: keydb_search failed: Invalid packet
gpg: public key of ultimately trusted key 72964CF74904979E not found
gpg: [don't know]: invalid packet (ctb=00)
gpg: keydb_search failed: Invalid packet
gpg: public key of ultimately trusted key 22031265073BFB70 not found
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: [don't know]: invalid packet (ctb=00)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
gpg: [don't know]: invalid packet (ctb=00)
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring

sudo pacman-key --populate当我这样做或时会出现更多错误sudo pacman-key --populate arcolinux

答案1

问题是您要么没有签名密钥,要么它们没有填充在 pacman 中。更新密钥环

sudo pacman-key --init
sudo pacman-key --populate

如果还不行就下载最新的arcolinux-keyring 打包并安装。

sudo pacman -U arcolinux-keyring-20230919-6-any.pkg.tar.zst

并重复前两个命令。

编辑:我不知道你为什么尝试安装archlinux-keyring(Arco 和 Arch 是不同的东西),但事实证明,它也已经过时了。手动安装,下载archlinux-keyring并使用

pacman -U archlinux-keyring-20210902-1-any.pkg.tar.zst

另外,假设您是 Linux 新手,首先您必须cd在下载包的目录中,并发出pacman -U <package name> 命令

相关内容