Apt-get在Ubuntu 12.04上找不到包`git`

时间:2013-04-23 08:13:31

标签: git github ubuntu-12.04

我正在尝试在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

1 个答案:

答案 0 :(得分:28)

您必须安装git-core而不是

sudo apt-get -y install git-core