我正在尝试在 Kubuntu 13.10 中安装 grub-customizer。经过一番折腾,遵循了各种在线建议,我终于需要安装 libgtkmm-2.4-dev(我对此一无所知)。以下是我尝试时得到的结果:
The following packages have unmet dependencies:
libgtkmm-2.4-dev :
Depends: libgtk2.0-dev (>= 2.24.0) but it is not going to be installed
Depends: libglibmm-2.4-dev (>= 2.27.93) but it is not going to be installed
Depends: libpangomm-1.4-dev (>= 2.27.1) but it is not going to be installed
Depends: libatkmm-1.6-dev (>= 2.22.2) but it is not going to be installed
现在我已经无法再前进了。
答案1
来自apt-get
的手册页:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place.
This option, when used with install/remove, can omit any packages
to permit APT to deduce a likely solution. If packages are
specified, these have to completely correct the problem. The option
is sometimes necessary when running APT for the first time; APT
itself does not allow broken package dependencies to exist on a
system. It is possible that a system's dependency structure can be
so corrupt as to require manual intervention (which usually means
using dselect(1) or dpkg --remove to eliminate some of the
offending packages). Use of this option together with -m may
produce an error in some situations. Configuration Item:
APT::Get::Fix-Broken.
sudo apt-get install -f
那就尝试一下sudo apt-get install libgtkmm-2.4-dev
。