【发布时间】:2014-08-01 20:55:50
【问题描述】:
我正在尝试安装更高版本的 git(主要是 1.8.* 或更高版本)。如果我尝试使用apt-get install git 安装它,我最终会安装版本1.7.10.4。
我已经尝试使用以下方法更改存储库:
add-apt-repository ppa:git-core/ppa
apt-get update
apt-get install git
apt-get update 的输出只是给了我以下信息,因此,我最终再次安装了版本 1.7.10.4。
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,如下所示:
sudo apt-get install git/wheezy-backports
sudo apt-get -t wheezy-backports install git
我永远不会比apt-get install git/wheezy-backports 走得更远,因为我最终会收到以下错误:
E: Release 'wheezy-backports' for 'git' was not found
如何在 Debian Wheezy 上安装 git 1.8.* 或更高版本?
【问题讨论】: