Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 -
like image 553
Guillermo Santos Avatar asked Apr 26 '20 11:04

Guillermo Santos


1 Answers

Make sure that your Ubuntu 20.04 is using WSL 2. When I installed it is was set to WSL1. Changing it to WSL2 seemed to have done the trick.

In Powershell run this command:

wsl --set-version Ubuntu-20.04 2
like image 82
James Myers Avatar answered Sep 16 '22 23:09

James Myers