无法在Ubuntu上更新Git [英] Unable to update Git on Ubuntu

查看:203
本文介绍了无法在Ubuntu上更新Git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Ubuntu机器上设置Git(我使用的是运行Ubuntu 12.04的三星Chromebook)。

I am trying to set up Git on an Ubuntu Machine (I'm using a Samsung Chromebook running Ubuntu 12.04).

当我输入sudo apt-get install git并成功安装Git 1.79

When I entered "sudo apt-get install git" and it successfully installed Git 1.79

user@ChrUbuntu:~$ git --version
git version 1.7.9.5

我无法弄清楚我在这里做错了什么。任何建议?

I can't figure out what I am doing wrong here. Any suggestions?

推荐答案

对于Ubuntu的新安装,我会先尝试获取最新的更新

For new installations of Ubuntu I would first try this to get the latest updates

sudo apt-get dist-upgrade

欲了解更多信息,请参阅 https://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade

For more info on this see https://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade

这应该可以解决它,但如果没有,请从这些人中添加存储库 https ://launchpad.net/~git-core/+archive/ppa

That should solve it but if not, add the repository from these guys https://launchpad.net/~git-core/+archive/ppa

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

这样您就不必构建它等等。

This way you don't have to build it, etc.

这篇关于无法在Ubuntu上更新Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆