安装git提示E: Package ‘git‘ has no installation candidate
环境:ubuntu 18.04问题:在进行linux系统上安装git时提示E: Package 'git' has no installation candidateroot@iZbp1ibvmgmcwwjt2gtphvZ:~# apt install gitReading package lists... DoneBuilding dependency treeReading state inf
·
环境:
ubuntu 18.04
问题:
在进行linux系统上安装git时提示
E: Package 'git' has no installation candidate
root@iZbp1ibvmgmcwwjt2gtphvZ:~# apt install git
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
原因:
安装时缺少了一些安装包,但也有可能是用户权限不够,不是root用户的话建议加上sudo
解决:
对系统进行更新升级,升级成功之后使用git命令 git --version进行版本查看
root@iZbp1ibvmgmcwwjt2gtphvZ:~# apt-get update
root@iZbp1ibvmgmcwwjt2gtphvZ:~# git --version
git version 2.17.1
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)