[英]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.