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

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