解决Ubuntu17.04不能安装git的问题 E: Package ‘git’ has no installation candidate
在Ubuntu系统中安装git的命令是:sudo apt install git,但比较奇怪的是,在Ubuntu17.04中输入该命令,却出现以下的情况:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘git’ has no installation candidate
oftware&Updates,勾选“Source code”,在Download from选择other
然后Choose Server->Close->Reload即可,最后再次输入“sudo apt install git”就可以正常安装git了
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!