运行"sudo apt“时,我得到以下错误:
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安装积云-存档-键环“给出了以下错误:
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 -刷新键和apt键。但什么都没起作用。
我也不能安装y-ppa经理。
我被困住了,请帮帮我!谢谢。
发布于 2022-05-09 12:41:19
经过一些检查,我发现/usr/bin/touch
存在,但/bin/touch
不存在。使用sudo apt-get install --reinstall coreutils
安装后者解决了我的问题。
https://stackoverflow.com/questions/72037705
复制相似问题