ubuntu 在安装git的时候提示Package 'git' has no installation candidate
时间:2021-06-17 23:13:20
收藏:0
阅读:34
1.没有找到对应的git软件包
先更新一下本地索引
sudo apt-get update
2.发现产生另外的问题:Temporary failure resolving ‘xxxx‘
找了很久发现是虚拟机网络连接的问题,把虚拟机重新设置为NAT连接。网络连接正常,执行
sudo apt-get update
sudo apt-get install git
成功
原文:https://www.cnblogs.com/EthanWong/p/14897597.html
评论(0)