我尝试使用命令sudo apt-get install git
在Ubuntu 12.10上安装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
我应该进一步做什么?
apt-get install git
命令,它会安装git及其所有依赖项。(我没有尝试过12.10,但14.04是一样的,我认为这段时间内也没有改变。)所以我认为你的设置有问题: