简体   繁体   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" 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 -

Make sure that your Ubuntu 20.04 is using WSL 2. When I installed it is was set to WSL1.确保您的 Ubuntu 20.04 正在使用 WSL 2。当我安装它时,它被设置为 WSL1。 Changing it to WSL2 seemed to have done the trick.将其更改为 WSL2 似乎已经成功了。

In Powershell run this command:在 Powershell 中运行以下命令:

wsl --set-version Ubuntu-20.04 2

If you don't have WSL 2, you'll need to install Ubuntu 18.04 from the Windows store.如果您没有 WSL 2,则需要从 Windows 商店安装 Ubuntu 18.04。

I just ran into the same issue with a fresh WSL + Docker install.我刚刚在安装新的 WSL + Docker 时遇到了同样的问题。 As is documented in issue #5125 in the WSL repo, Ubuntu 20.04 is incompatible with WSL 1 .正如 WSL 存储库中的issue #5125中所述, Ubuntu 20.04 与 WSL 1 不兼容 After installing Ubuntu 18.04, I was able to work through the rest of the Docker install instructions and continue through this useful tutorial .安装 Ubuntu 18.04 后,我能够通过Docker 安装说明的 rest 工作,并继续学习这个有用的教程

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

相关问题 无法连接到windows10上的postgres - can't connect to postgres on windows10 如何连接代理:IPC connect call - How to connect to the agent: IPC connect call 无法从 Windows 主机连接到 WSL2 上的本地服务器 - Unable to connect to local server on WSL2 from Windows host Windows 上使用 Git 的 GPG 代理上的 IPC 错误 - IPC Error on GPG Agent with Git on Windows Laravel Sail - 在为 Windows10 WSL2 上的现有项目安装 laravel Sail 后,我不断收到 docker-composer 错误 - Laravel Sail - After installing laravel sail for an existing project on Windows10 WSL2 I keep getting a docker-composer error 连接到在 WSL2 Ubuntu 中运行的 Kafka - Connect to Kafka running in WSL2 Ubuntu 无法从 Windows IntelliJ 在 WSL2 中编译 Maven 项目 - Can't compile Maven project in WSL2 from Windows IntelliJ Windows 10 Jenkins管道无法连接到存储库 - Windows 10 Jenkins Pipeline Failed to connect to repository C#Windows 10蓝牙LE无法连接到服务器 - C# Windows 10 Bluetooth LE can't connect to server 无法从MySQL Workbench(Windows 10)连接到mysql容器 - Can't connect to mysql container from MySQL Workbench (Windows 10)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM