Apt-get 在 Ubuntu 12.04 上找不到包`git`
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16164261/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 16:01:08 来源:igfitidea点击:
Apt-get does not find package `git` on Ubuntu 12.04
提问by Shahzeb Khan
I am trying to install git on ubuntu 12.04. But when enter the command
我正在尝试在 ubuntu 12.04 上安装 git。但是当输入命令时
sudo apt-get install git
I get the following message. I have run sudo apt-get update
already.
我收到以下消息。我已经跑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
回答by Konstantin Rudy
You have to install git-core
instead
您必须安装git-core
,而不是
sudo apt-get -y install git-core