我正在尝试安装更高版本的 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
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
我还尝试使用向后移植来安装 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.* 或更高版本?
我绝对会推荐使用向后移植版本。要使用向后移植存储库,请记住您必须将以下行添加到 /etc/apt/sources.list 中:
deb http://http.debian.net/debian wheezy-backports main
然后您可以使用 apt-get 重试。您可以在以下位置找到完整的说明:http://backports.debian.org/Instructions/#index2h2 http://backports.debian.org/Instructions/#index2h2
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)