Arch Linux: error: key “4A1AFC345EBE18F8” could not be looked up remotely

Автор: | 28/08/2017

Во время апдейта системы:

$ sudo pacman -Syu
...
 lib32-libdrm-2.4.83-1-x86_64                                                                                         133.9 KiB   145K/s 00:01 [########################################################################################] 100%
(37/37) checking keys in keyring                                                                                                               [########################################################################################] 100%
downloading required keys...
error: key "4A1AFC345EBE18F8" 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.

В логе ничего:

[simterm]

$ cat /var/log/pacman.log | tail -n 3
[2017-08-28 10:12] [PACMAN] Running 'pacman -Syu'
[2017-08-28 10:12] [PACMAN] synchronizing package lists
[2017-08-28 10:12] [PACMAN] starting full system upgrade

[/simterm]

Используем pacman-key, который является скриптом для GnuPG, с помощью которого можно обновить списки ключей.

Выполняем:

[simterm]

$ sudo pacman-key --refresh-keys
gpg: refreshing 93 keys from hkp://pool.sks-keyservers.net
gpg: keyserver refresh failed: No keyserver available
==> ERROR: A specified local key could not be updated from a keyserver.

[/simterm]

Твою ж мать…

Такая ошибка из нашей сети уже встречалась – Arch Linux: keyserver receive failed: No keyserver available и ручной импорт ключа.

Только ключа в нём не находится и вручную.

Пробуем другой сервер.

Находим список на странице https://sks-keyservers.net/overview-of-pools.php, пробуем по порту 80:

p80.pool.sks-keyservers.net

This is a pool containing only servers available on port 80 (needs to be used as hkp://p80.pool.sks-keyservers.net:80)

Неа:

[simterm]

$ sudo pacman-key --keyserver hkp://p80.pool.sks-keyservers.net:80 --refresh-keys
gpg: refreshing 93 keys from hkp://p80.pool.sks-keyservers.net:80
gpg: keyserver refresh failed: No keyserver available

[/simterm]

Или:

[simterm]

$ sudo pacman-key --keyserver hkp://p80.pool.sks-keyservers.net:80 -r 4A1AFC345EBE18F8
gpg: keyserver receive failed: No keyserver available
==> ERROR: Remote key not fetched correctly from keyserver.

[/simterm]

Устанавливаем archlinux-keyring:

[simterm]

$ sudo pacman -S archlinux-keyring
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20170823-1

Total Installed Size:  0.96 MiB
Net Upgrade Size:      0.07 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%
(1/1) checking available disk space[########################################################################################] 100%
:: Processing package changes...
(1/1) upgrading archlinux-keyring  [########################################################################################] 100%
==> Appending keys from archlinux.gpg...
key E62F853100F0D0F0:
2 signatures not checked due to missing keys
key 51E8B148A9999C34:
3 signatures not checked due to missing keys
key A5E9288C4FA415FA:
6 signatures not checked due to missing keys
key C8880A6406361833:
5 signatures not checked due to missing keys
==> Locally signing trusted keys in keyring...
  -> Locally signing key DDB867B92AA789C165EEFA799B729B06A680C281...
  -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
  -> Locally signing key 91FFE0700E80619CEB73235CA88E23E377514E00...
  -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
  -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
  -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
==> Importing owner trust values...
==> Disabling revoked keys in keyring...
  -> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
  -> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
  -> Disabling key 40440DC037C05620984379A6761FAD69BA06C6A9...
  -> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
  -> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
  -> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
  -> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
  -> Disabling key 5E7585ADFF106BFFBBA319DC654B877A0864983E...
  -> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
  -> Disabling key F5A361A3A13554B85E57DDDAAF7EF7873CFD4BB6...
  -> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
  -> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
  -> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
  -> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
  -> Disabling key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
==> Updating trust database...
gpg: next trustdb check due at 2017-10-20
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

[/simterm]

И пробуем ещё раз:

[simterm]

$ sudo pacman -Syu                                                                                                                                    
...                                                                                                                                                                                                                 
:: Starting full system upgrade...                                                                                                                                                                                                            
resolving dependencies...                                                                                                                                                                                                                     
looking for conflicting packages...                                                                                                                                                                                                           

Packages (36) chromium-60.0.3112.113-1  curl-7.55.1-2  dnsmasq-2.77-3  docker-1:17.06.1-1  feh-2.19.3-1  firefox-55.0.3-1  frei0r-plugins-1.6.1-4  gnutls-3.5.15-1  gst-plugins-bad-1.12.2-4  gtk-update-icon-cache-3.22.19-2  gtk3-3.22.19-2 
              gvfs-1.32.1+8+ga33a8437-1  harfbuzz-1.5.0-1  harfbuzz-icu-1.5.0-1  icu-59.1-2  imagemagick-6.9.9.9-3  iperf-2.0.10-1  kded-5.37.0-3  kio-5.37.0-3  kuiserver-5.10.5-2  lib32-libdrm-2.4.83-1  libdrm-2.4.83-1  libebml-1.3.5-1  
              libpsl-0.18.0-1  libraqm-0.3.0-2  lz4-1:1.8.0-1  mesa-17.1.7-2  oniguruma-6.5.0-1  opencv-3.3.0-2  perl-5.26.0-3  qt5-declarative-5.9.1-5  sqlite-3.20.1-1  thunderbird-52.3.0-1  vim-8.0.0987-1  vim-runtime-8.0.0987-1        
              whois-5.2.18-1                                                                                                                                                                                                                  

Total Installed Size:  1039.92 MiB                                                                                                                                                                                                            
Net Upgrade Size:        73.13 MiB

:: Proceed with installation? [Y/n] 
(36/36) checking keys in keyring   [########################################################################################] 100%
(36/36) checking package integrity [########################################################################################] 100%
(36/36) loading package files      [########################################################################################] 100%
...

[/simterm]

(36/36) checking keys in keyring  – проверка прошла, готово.

P.S. Можно попробовать вообще отключить проверку ключей, см тут>>>.