问题描述
我在Windows 10上使用Ubuntu (VERSION = 20.04 LTS(Focal Fossa)
)。试图安装Docker。
我在关注文档来自docs.docker.com:
我运行了两个命令:
$ curl -fsSL https:// get .docker.com -o get-docker.sh
$ sudo sh get-docker.sh
当我运行第二个命令时,它会返回错误:
警告:不应该分析apt-key输出(stdout为不是终端)
gpg:无法连接到代理:IPC连接呼叫失败
在互联网上查看时,我发现一些链接试图解决该问题,但确实如此。
为此:
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 failedhttps://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. 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:
Change this:
To this:
这篇关于如何连接到代理:IPC连接呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!