尝试在 Ubuntu Lucid 10.04 LTS 中安装 git
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11170623/
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
Trying to install git in Ubuntu Lucid 10.04 LTS
提问by ziiweb
I have installed Git using
我已经使用安装了 Git
sudo apt-get install git-core
after that when I try and run git
I get
之后,当我尝试跑步时,git
我得到了
-bash: git: command not found.
-bash: git: 命令未找到。
I'm using Ubuntu 10.04 LTS.
我正在使用 Ubuntu 10.04 LTS。
回答by Kostanos
Just found in other source:
刚刚在其他来源找到:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
This will install the latest stable git version. The Ubuntu's repository has the oldest one.
这将安装最新的稳定 git 版本。Ubuntu 的存储库拥有最古老的存储库。
回答by Peter van der Does
I wouldn't install the package from Ubuntu itself, the git version will be 1.7.0.4
我不会从 Ubuntu 本身安装软件包,git 版本将是 1.7.0.4
I recommend using my PPA as you will get the latest version, as I write this it would 1.7.11.1
我建议使用我的 PPA,因为您将获得最新版本,因为我写这篇文章是 1.7.11.1
To add my Ubuntu git repository to your system
将我的 Ubuntu git 存储库添加到您的系统
sudo add-apt-repository ppa:pdoes/ppa
sudo add-apt-repository ppa:pdoes/ppa
And then you can do sudo apt-get install git-core
然后你可以做 sudo apt-get install git-core
For more info see my site : Git Packages for Ubuntu
有关更多信息,请参阅我的网站:Ubuntu 的 Git 软件包
回答by mfq
I was getting error of the
我收到了错误
sudo apt-get install git-core: command not found
After adding repository
添加存储库后
sudo add-apt-repository ppa:pdoes/ppa
then run this command which was still giving me same result.
然后运行这个命令,它仍然给我相同的结果。
sudo apt-get install git-core
sudo apt-get install git-core
But this command done all of things for me
但是这个命令为我做了所有的事情
sudo apt-get install git-all
回答by sea26.2
Reference to #3 above. Command does not work.
参考上面的#3。命令不起作用。
回答by Ashish Saini
sudo apt-get update
sudo apt-get install git