X

Ubuntu: An error occurred during the signature verification.

Сегодня столкнулся с ошибкой, при попытке обновить репозитории: An error occurred during the signature verification. The repository is not updated and the previous index files will be used....

Полный текст ошибки

$ sudo apt-get update
...
Fetched 480 kB in 4s (135 kB/s)                              
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease  The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
W: Some index files failed to download. They have been ignored, or old ones used instead.

Эта ошибка говорит о том, что ключ подписи поменялся. Чтобы ее исправить, нам нужно найти и установить новый. Сделать этом можно поискав инструкции по установке нужного репозитория. В моем случае это yarn, поэтому инструкция вот такая:

$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
OK

Повторяем апдейт, и в этот раз все проходит гладко

$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu disco InRelease
Hit:2 http://security.ubuntu.com/ubuntu disco-security InRelease                                                                                           
Get:3 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]                                                                                             
...
Fetched 461 kB in 4s (131 kB/s)                            
Reading package lists... Done

 

Категории: Заметки