我正在尝试将最新版本的 Git 安装到我的 Debian Buster 机器上,但遇到了麻烦。Git 稳定版的最新版本是 2.20。我发现测试分支有正确的版本,但我在向后移植方面没有取得任何成功。我已经添加
deb http://deb.debian.org/debian/ buster-backports main contrib
deb-src http://deb.debian.org/debian/ buster-backports main contrib
Run Code Online (Sandbox Code Playgroud)
到/etc/apt/sources.list
并完成sudo apt-get update
,但每次我运行时sudo apt-get -t buster-backports install git
我都会再次得到 2.20 。我也尝试过使用 apt-get 删除 git 然后安装它,但没有成功。有什么建议吗?
谢谢!