解决 Debian 11 "Cannot write to ‘-’ (Broken pipe)."

By 大伟哥 | 2022-11-01,周二, 22:58

新安装的 Debian 11 在使用第三方软件源的时候,需要首先添加第三方软件源的密钥。比如说我要把 ODOO 13 的源加入系统,需要运行:

wget -O - https://nightly.odoo.com/odoo.key | apt-key add -

这时候 Debian 11 可能会报错:

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
connected.
HTTP request sent, awaiting response... 200 OK
Length: 3112 (3.0K) [application/octet-stream]
Saving to: ‘STDOUT’
-  0%[  ]   0  --.-KB/s    in 0s
Cannot write to ‘-’ (Broken pipe).

系统提示没有安装该操作需要的gnupg, gnupg2 and gnupg1包,因此我们按照先提示安装上面提到的软件:

apt install gnupg 

然后再重新运行上面的命令,就可以了。

添加新评论

此字段内容将保密,不会被其他人看见。
  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
发布评论前,请通过下面的验证,以免被当作垃圾评论机器人屏蔽。
3 + 5 =
计算出这道简单的算术题并键入答案。例如、1+3,就输入 4。