GPG error: DEB.SURY.ORG — различия между версиями

Материал из megapuper
Перейти к: навигация, поиск
(Новая страница: «Полный текст ошибки, при обновлении индексов, когда просрочен ключ<br> '''GPG error: The following signatu…»)
 
 
Строка 2: Строка 2:
 
'''GPG error: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key'''
 
'''GPG error: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key'''
  
  apt-get update
+
  apt update
 
  ...
 
  ...
 
  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php buster  
 
  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php buster  
Строка 20: Строка 20:
 
  rm -rf /etc/apt/trusted.gpg.d/sury.gpg
 
  rm -rf /etc/apt/trusted.gpg.d/sury.gpg
 
  apt-key del '''95BD4743'''
 
  apt-key del '''95BD4743'''
 +
 +
 +
Качаем новый ключ
 
  wget -O /etc/apt/trusted.gpg.d/sury.gpg https://packages.sury.org/php/apt.gpg
 
  wget -O /etc/apt/trusted.gpg.d/sury.gpg https://packages.sury.org/php/apt.gpg
+
 
 +
 
 +
Проверяем
 
  apt-key list | grep -A 5 sury
 
  apt-key list | grep -A 5 sury
 
  Warning: apt-key output should not be parsed (stdout is not a terminal)
 
  Warning: apt-key output should not be parsed (stdout is not a terminal)
Строка 32: Строка 37:
  
  
Повторяем
+
Обновляемся
  apt-get update
+
  apt update

Текущая версия на 18:44, 25 ноября 2022

Полный текст ошибки, при обновлении индексов, когда просрочен ключ
GPG error: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key

apt update
...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php buster 
InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Failed to fetch https://packages.sury.org/php/dists/buster/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key 
<deb@sury.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.

apt-key list | grep -A 1 expired
Warning: apt-key output should not be parsed (stdout is not a terminal)
pub rsa3072 2019-03-18 [SC] [expired: 2021-03-17]
1505 8500 A023 5D97 F5D1 0063 B188 E2B6 95BD 4743
uid [ expired] DEB.SURY.ORG Automatic Signing Key <deb@sury.org>


Для исправления удаляем старый ключ и качаем новый, если не помогло, смотрим локальное хранилище ключей на наличие второго ключа DEB.SURY.ORG и удаляем тот, который просрочен

rm -rf /etc/apt/trusted.gpg.d/sury.gpg
apt-key del 95BD4743


Качаем новый ключ

wget -O /etc/apt/trusted.gpg.d/sury.gpg https://packages.sury.org/php/apt.gpg


Проверяем

apt-key list | grep -A 5 sury
Warning: apt-key output should not be parsed (stdout is not a terminal)
/etc/apt/trusted.gpg.d/sury.gpg
-------------------------------
pub rsa3072 2019-03-18 [SC] [expires: 2024-02-16]
1505 8500 A023 5D97 F5D1 0063 B188 E2B6 95BD 4743
uid [ unknown] DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
sub rsa3072 2019-03-18 [E] [expires: 2024-02-16]


Обновляемся

apt update