После обновления с 16.04 до 18.04 я получаю ошибки при запуске apt -update. Вот результат:
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Unknown error executing apt-key
Err:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Unknown error executing apt-key
Err:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Unknown error executing apt-key
Err:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Unknown error executing apt-key
Err:7 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Unknown error executing apt-key
Reading package lists... Done
W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: Unknown error executing apt-key
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: Unknown error executing apt-key
E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: Unknown error executing apt-key
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-backports InRelease: Unknown error executing apt-key
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-security InRelease: Unknown error executing apt-key
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Я везде искал и все пробовал, но не могу это исправить. Например, я пытался переключить зеркала и переместить файл trust.gpg, ничего работал.
У меня была точно та же проблема после обновления до 18.04.1 Бионических. Также вызванные настройки, VLC и источники для не работы на меня.
Проблема состояла в том, что gpg библиотеки указывали на библиотеки в/usr/local/lib, а не значении по умолчанию. Вероятно, от некоторой старой установки путь назад.
Решение для меня состояло в том, чтобы переместить все GPG-связанные библиотеки в/usr/local/lib в другое место и восстановить ссылки.
Можно проверить то, что gpg связи библиотеки путем выполнения a:
sudo ldd /usr/bin/gpg
Фиксация повлекла за собой выдачу следующих команд на моей машине:
cd /usr/local/lib
sudo mkdir bkp
sudo mv libgcrypt* bkp
sudo mv libassuan* bkp
sudo mv libgpg* bkp
sudo ldconfig /usr/bin/gpg
Это решило все мои проблемы.
Могло бы слишком опоздать в исходный плакат, но полагал, что я отправлю это решение в случае, если кто-либо еще сталкивается с проблемой.