系统之前装过微信,安装gitk时报错:
Heisenberg海森堡:~$ sudo apt-get -f install gitk
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
deepin.com.wechat:i386 : Depends: deepin-wine:i386 (>= 2.18-19)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
解决办法:
Heisenberg海森堡:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
fonts-horai-umefont fonts-unfonts-core gnome-exe-thumbnailer icoutils libcapi20-3 libcapi20-3:i386 libexif12:i386 libgd3:i386 libgif7:i386 libgphoto2-6:i386 libgphoto2-port12:i386 libgsf-1-114
libgsf-1-common libieee1284-3:i386 libmpg123-0 libmsi0 libodbc1 libosmesa6 libp11-kit-gnome-keyring:i386 libsane:i386 libvpx3:i386 libxpm4:i386 msitools odbcinst odbcinst1debian2 p11-kit-modules:i386
p7zip snapd-login-service ttf-wqy-microhei unixodbc wine-gecko2.21:i386
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
deepin.com.wechat:i386
0 upgraded, 0 newly installed, 1 to remove and 195 not upgraded.
1 not fully installed or removed.
After this operation, 50.3 MB disk space will be freed.
(Reading database ... 269806 files and directories currently installed.)
Removing deepin.com.wechat:i386 (2.6.8.65deepin0) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
成功安装gitk:
Heisenberg海森堡:~$ sudo apt-get -f install gitk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-horai-umefont fonts-unfonts-core gnome-exe-thumbnailer icoutils libcapi20-3 libcapi20-3:i386 libexif12:i386 libgd3:i386 libgif7:i386 libgphoto2-6:i386 libgphoto2-port12:i386 libgsf-1-114
libgsf-1-common libieee1284-3:i386 libmpg123-0 libmsi0 libodbc1 libosmesa6 libp11-kit-gnome-keyring:i386 libsane:i386 libvpx3:i386 libxpm4:i386 msitools odbcinst odbcinst1debian2 p11-kit-modules:i386
p7zip snapd-login-service ttf-wqy-microhei unixodbc wine-gecko2.21:i386
Use 'sudo apt autoremove' to remove them.
Suggested packages:
git-doc
The following NEW packages will be installed:
gitk
0 upgraded, 1 newly installed, 0 to remove and 195 not upgraded.
Need to get 132 kB of archives.
After this operation, 1,378 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 gitk all 1:2.7.4-0ubuntu1.10 [132 kB]
Fetched 132 kB in 2s (60.3 kB/s)
Selecting previously unselected package gitk.
(Reading database ... 269797 files and directories currently installed.)
Preparing to unpack .../gitk_1%3a2.7.4-0ubuntu1.10_all.deb ...
Unpacking gitk (1:2.7.4-0ubuntu1.10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up gitk (1:2.7.4-0ubuntu1.10) ...