我已更新至 Ubuntu 15.04。gitg 的发布版本是3.15.1
- 在 Ubuntu 14.10 中为 2.7.3。
我真的很想重新安装旧版本,因为新版本操作起来非常不方便。我该如何重新安装旧版本? 中没有提供package force version
。
我卸载了新版本。我从http://packages.ubuntu.com/utopic/amd64/gitg/download,但是当我尝试使用双击安装它时,安装了新版本并给出了错误:
Package operation failed
The installation or removal of a software package failed.
Selecting previously unselected package gitg.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 241499 files and directories currently installed.)
Preparing to unpack .../gitg_0.2.7-3_amd64.deb ...
Unpacking gitg (0.2.7-3) ...
dpkg: dependency problems prevent configuration of gitg:
libgit2-glib-1.0-0:amd64 (0.22.0-0ubuntu1) breaks gitg (<< 3.15.1) and is installed.
Version of gitg to be configured is 0.2.7-3.
dpkg: error processing package gitg (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu5) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.1+15.04.20150202-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.14-0ubuntu1) ...
Processing triggers for libglib2.0-0:i386 (2.44.0-1ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.44.0-1ubuntu3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
gitg
当我随后单击时repair
,版本3.15.1
就安装好了。如果我不单击修复,那么 2.7.3 就安装好了(并且可以运行)。
那么,有没有更好的方法来安装旧版本的 gitg?
答案1
打开终端并运行以下命令:
sudo dpkg -i gitg_0.2.7-3_amd64.deb
sudo apt-get remove libgit2-glib-1.0-0
并设置为保持:
sudo apt-mark hold gitg
整体反转为
sudo apt-mark unhold gitg
sudo apt-get upgrade
该软件包可以从https://packages.debian.org/jessie/amd64/gitg/download。(如果您使用的架构与 不同amd64
,请选择它这里。