13

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

1 回答 1

29

您必须git-core安装

sudo apt-get -y install git-core
于 2013-04-23T08:20:48.220 回答