简体   繁体   English

如何连接代理:IPC connect call

[英]How to connect to the agent: IPC connect call

I'm using Ubuntu (VERSION="20.04 LTS (Focal Fossa) on Windows 10. Itried to install Docker. I'm following the Docs from docs.docker.com: I run the two commands: I'm using Ubuntu (VERSION="20.04 LTS (Focal Fossa) on Windows 10. Itried to install Docker. I'm following the Docs from docs.docker.com: I run the two commands:

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh

When I run the second command it return an error:当我运行第二个命令时,它返回一个错误:

Warning: apt-key output should not be parsed (stdout is not a terminal)
gpg: can't connect to the agent: IPC connect call failed

I looked in internet I found that some links trying to resolve the issue but in vein.我在互联网上查看,我发现一些链接试图解决这个问题,但在脉络中。 gpg: can't connect to the agent: IPC connect call failed https://michaelheap.com/gpg-cant-connect-to-the-agent-ipc-connect-call-failed/ gpg:无法连接到代理:IPC 连接呼叫失败https://michaelheap.com/gpg-cant-connect-to-the-agent-ipc-connect-call-failed/

Someone have a suggestion please?有人有建议吗? Thanks谢谢

The temporary workaround mentioned on the issue thread at https://github.com/microsoft/WSL/issues/5125#issuecomment-625985191 worked for me. https://github.com/microsoft/WSL/issues/5125#issuecomment-625985191的问题线程中提到的临时解决方法对我有用。 Run the commands运行命令

wget https://launchpad.net/~rafaeldtinoco/+archive/ubuntu/lp1871129/+files/libc6_2.31-0ubuntu8+lp1871129~1_amd64.deb

sudo dpkg --install libc6_2.31-0ubuntu8+lp1871129~1_amd64.deb

sudo apt-mark hold libc6 #to avoid further update

Edit: /var/lib/dpkg/info/libc6:amd64.postinst and remove the sleep 1 like so:编辑: /var/lib/dpkg/info/libc6:amd64.postinst 并像这样删除 sleep 1 :

Change this:改变这个: 在此处输入图像描述

To this:对此:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM