如何在Debian Wheezy上安装git 1.8或更高版本 [英] How to install git 1.8 or above on Debian Wheezy

查看:204
本文介绍了如何在Debian Wheezy上安装git 1.8或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装更高版本的git(主要是1.8。*或更高版本)。如果我尝试使用 apt-get install git 安装它,我最终安装版本 1.7.10.4

I'm trying trying to install a later version of git (primarily 1.8.* or above). if I try and install it using apt-get install git I end up installing version 1.7.10.4.

我已经尝试使用以下方法更改存储库:

I have already tried changing the repository using the method below:

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

apt-get update 的输出只给我以下内容,因此,我最终安装版本 1.7。 10.4 再次。

The output of apt-get update just gives the me the following and because of that, I end up installing version 1.7.10.4 again.

W: Failed to fetch http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/wheezy/main/source/Sources  404  Not Found
W: Failed to fetch http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/wheezy/main/binary-amd64/Packages  404  Not Found

我还试图使用backport安装git,如下所示:

I have also tried to install git using a backport, like the following:

sudo apt-get install git/wheezy-backports
sudo apt-get -t wheezy-backports install git

我从来没有超过 apt-get install git / wheezy-backports ,因为我最终得到以下错误:

I never end up getting further than apt-get install git/wheezy-backports because then I end up getting the following error:

E: Release 'wheezy-backports' for 'git' was not found

如何在Debian Wheezy上安装git 1.8。*或更高版本?

推荐答案

我一定会推荐使用backports版本。要使用backports存储库,请记住,您必须将以下行添加到/etc/apt/sources.list中:

I would definitely recommend using the backports version. To use the backports repository, keep in mind that you must add the following line to your /etc/apt/sources.list:

deb http://http.debian.net/debian wheezy-backports main

然后你可以用apt-get重试。有关 http://backports.debian.org/Instructions/#index2h2 的完整说明

And then you can retry with apt-get. You will find full instructions at http://backports.debian.org/Instructions/#index2h2

这篇关于如何在Debian Wheezy上安装git 1.8或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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