首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >W: GPG错误:执行apt键的未知错误

W: GPG错误:执行apt键的未知错误
EN

Stack Overflow用户
提问于 2022-04-28 03:32:13
回答 1查看 1.4K关注 0票数 3

运行"sudo apt“时,我得到以下错误:

代码语言:javascript
运行
复制
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“时,我得到以下错误:

代码语言:javascript
运行
复制
/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安装积云-存档-键环“给出了以下错误:

代码语言:javascript
运行
复制
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经理。

我被困住了,请帮帮我!谢谢。

EN

回答 1

Stack Overflow用户

发布于 2022-05-09 12:41:19

经过一些检查,我发现/usr/bin/touch存在,但/bin/touch不存在。使用sudo apt-get install --reinstall coreutils安装后者解决了我的问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72037705

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档