can't connect to the agent: IPC connect call failed

在 windows wsl ubuntu 中安裝 Docker,按照官網操作結果失敗了

官網教程:

yarn install for debian / ubuntu

報錯:

can't connect to the agent: IPC connect call failed

解決辦法:

sudo apt remove gpg

sudo apt install gnupg1

然後再執行:

# 
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
# 
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
#
sudo apt update &&sudo apt install yarn

# 驗證是否成功
yarn --version

若遇到ubuntu add-apt-repository command not found問題

解決方法

https://blog.csdn.net/HD243608836/article/details/100059329

 

最後,更新淘寶源:

yarn config get registry
# https://registry.yarnpkg.com

yarn config set registry https://registry.npm.taobao.org

yarn config get registry
# https://registry.npm.taobao.org



作者:黃同學2019
鏈接:https://www.jianshu.com/p/9b2f178d4bbf
來源:簡書
著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。

參考:Ubuntu20.04安裝yarn報錯gpg: can't connect to the agent: IPC connect call failed(已解決)

Windows使用WSL2安裝Docker

https://www.jianshu.com/p/c27255ede45f

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章