Solve gpg: can’t connect to the agent: IPC connect call failed error on WSL Ubuntu

Sometimes in WSL Windows Subsystem for Linux, after updating Ubuntu you will get “gpg: can’t connect to the agent: IPC connect call failed” error when you try to add the key using the sudo apt-key add. You can easily solve this. This is because of a bug in Windows Subsystem for Linux. Follow the below steps to solve this error. You can try to add the key manually to solve this problem.

In the Ubuntu terminal command line add the below command. Here you can replace “YOUR_KEY_HERE” with your actual GPG key.

curl -sL "" | sudo apt-key add

That’s all.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on Twitter and Facebook.

Also Read:  Cast Your Desktop to Wi-Fi Display Devices with GNOME Network Displays

Leave a Reply