How to connect to the agent: IPC connect call

坚强是说给别人听的谎言 提交于 2020-08-07 06:11:11

问题


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/

Someone have a suggestion please ? Thanks


回答1:


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:



来源:https://stackoverflow.com/questions/61463220/how-to-connect-to-the-agent-ipc-connect-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!