繁体   English   中英

Windows10 WSL2 “gpg:无法连接到代理:IPC 连接调用失败”

[英]Windows10 WSL2 “gpg: can't connect to the agent: IPC connect call failed”

I am trying to install docker in Windows 10 (WSL2 - Ubuntu 20.04LTS) and run the following command, it's not working, the console displays this message "gpg: can't connect to the agent: IPC connect call failed"

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

确保您的 Ubuntu 20.04 正在使用 WSL 2。当我安装它时,它被设置为 WSL1。 将其更改为 WSL2 似乎已经成功了。

在 Powershell 中运行以下命令:

wsl --set-version Ubuntu-20.04 2

如果您没有 WSL 2,则需要从 Windows 商店安装 Ubuntu 18.04。

我刚刚在安装新的 WSL + Docker 时遇到了同样的问题。 正如 WSL 存储库中的issue #5125中所述, Ubuntu 20.04 与 WSL 1 不兼容 安装 Ubuntu 18.04 后,我能够通过Docker 安装说明的 rest 工作,并继续学习这个有用的教程

暂无
暂无

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

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