W: ошибка GPG: неизвестная ошибка при выполнении apt-ключа
При запуске «sudo apt-get update» я получаю следующую ошибку:
Err:1 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease
Unknown error executing apt-key
Err:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Unknown error executing apt-key
Err:5 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Unknown error executing apt-key
Err:6 http://packages.microsoft.com/repos/code stable InRelease
Unknown error executing apt-key
Err:4 https://download.docker.com/linux/ubuntu bionic InRelease
Unknown error executing apt-key
and more ...
При запуске «sudo apt install gpg» я получаю следующую ошибку:
/usr/bin/apt-key: 659: /usr/bin/apt-key: grep: not found
Warning: The postinst maintainerscript of the package cumulus-archive-keyring
Warning: seems to use apt-key (provided by apt) without depending on gnupg or gnupg2.
Warning: This will BREAK in the future and should be fixed by the package maintainer(s).
Note: Check first if apt-key functionality is needed at all - it probably isn't!
/usr/bin/apt-key: 695: /usr/bin/apt-key: touch: not found
dpkg: error processing package cumulus-archive-keyring (--configure):
installed cumulus-archive-keyring package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
cumulus-archive-keyring
sh: 1: touch: not found
E: Sub-process /usr/bin/dpkg returned an error code (1)
Кроме того, у меня аналогичная ошибка во время работы: «sudo apt install grep --reinstall».
«sudo apt install cumulus-archive-keyring» дал следующую ошибку:
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up cumulus-archive-keyring (4-cl3u5) ...
/usr/bin/apt-key: 659: /usr/bin/apt-key: grep: not found
Warning: The postinst maintainerscript of the package cumulus-archive-keyring
Warning: seems to use apt-key (provided by apt) without depending on gnupg or gnupg2.
Warning: This will BREAK in the future and should be fixed by the package maintainer(s).
Note: Check first if apt-key functionality is needed at all - it probably isn't!
/usr/bin/apt-key: 695: /usr/bin/apt-key: touch: not found
dpkg: error processing package cumulus-archive-keyring (--configure):
installed cumulus-archive-keyring package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
cumulus-archive-keyring
sh: 1: touch: not found
E: Sub-process /usr/bin/dpkg returned an error code (1)
Я также попытался обновить все ключи gpg с помощью: gpg --refresh-keys и apt-key. Но ничего не сработало.
Я также не смог установить менеджер y-ppa-manager.
Я застрял, пожалуйста, помогите мне! Спасибо.
1 ответ
После некоторой проверки я обнаружил, что «/usr/bin/touch» существует, но не «/bin/touch», установите то же самое, используя «sudo apt-get install --reinstall coreutils», что решило мою проблему.