Linux Subsystem Windows 10 Error Installing Docker: gpg: can't connect to the agent: IPC connect call failed

Question: How do you resolve "gpg: can't connect to the agent: IPC connect call failed" when installing Docker on Windows Subsystem Linux?


Please Login to see the rest of the answer

Answer: This error happens when you upgrade the  Windows SubSystem Linux (WSL) 1 to WSL 2 and you try to download gpg1, mainly telling you that the versions aren't compactable. Follow solution below to resolve the issue:

- Type in : sudo autoremove #to remove low hanging dependecies that haven't been used
- Type in: sudo apt-get install gnupg1 #If this command go through then you should be good to go
- Type in: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - #If you see 'OK' printed to your screen then you have successfully installed gpg your Linux Subsystem.


Write an Article
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy