Ошибка при apt update An error occurred during the signature verification

Главная » Блог программиста » Ошибка при apt update An error occurred during the signature verification

Просмотров: 4739

Ошибка при apt update An error occurred during the signature verification

При использовании команды apt update на Debian 9 появилась следующая ошибка:

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 stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Failed to fetch https://packages.sury.org/php/dists/stretch/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Some index files failed to download. They have been ignored, or old ones used instead.
Она возникла из-за того, что DPA обновил signing key. Для решения этой проблемы необходимо обновить ключ APT signing key перед запуском обновления пакетов, скачать новый ключ можно из репозиториев:
$ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
Теперь apt update будет работать корректно.
Источник (EN)


Друзья! Приглашаем вас к обсуждению. Если у вас есть своё мнение, напишите нам в комментарии.