我正在尝试在ubuntu 12.04上安装git。但是当输入命令时
sudo apt-get install git
我收到以下消息。我已经运行了sudo apt-get update
。
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
However the following packages replace it:
git-el
E: Package 'git' has no installation candidate
答案 0 :(得分:28)
您必须安装git-core
而不是
sudo apt-get -y install git-core