运行:
ubuntu 14.04 trusty 64bit。
我现在的版本是:
itamar /v/l/a/lists λ git --version
git version 1.9.1
我试过了,sudo apt-get update; sudo apt-get install git
但没有效果。
我试过了:sudo apt-get purge git; sudo apt-get install git
但它仍然安装 1.9.1。
不仅如此,它还以某种方式卸载了 Atom 和 Nylas 以及 git 和其他一些与 git 相关的软件包。我很想知道它为什么会这样做。以下是清除过程的输出。
itamar ~ λ sudo apt-get purge git
[sudo] password for itamar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
atom* git* git-cola* git-core* gitk* nylas*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 543 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 332614 files and directories currently installed.)
Removing atom (1.8.0) ...
dpkg: warning: while removing atom, directory '/usr/share/atom/resources/app/apm' not empty so not removed
Removing nylas (0.4.49) ...
Purging configuration files for nylas (0.4.49) ...
Removing git-cola (1.9.3-1) ...
Purging configuration files for git-cola (1.9.3-1) ...
Removing gitk (1:1.9.1-1ubuntu0.3) ...
Removing git-core (1:1.9.1-1ubuntu0.3) ...
Removing git (1:1.9.1-1ubuntu0.3) ...
Purging configuration files for git (1:1.9.1-1ubuntu0.3) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
答案1
所以,我发现有一个Ubuntu Git 维护者团队启动板中的 ppa。
看起来合法并且有效,我的 git 现在已经可以了2.9
,但我真的不明白为什么它一开始不包含在 ubuntu 中?这是基本的东西。不要告诉我这是因为我运行的是 14.04 而不是 16.04,因为 14.04 仍然是大多数 ubuntu 用户。
有点奇怪。