我正在尝试在 Quantal(64 位)上安装 cunit(C 单元测试框架)包。cunit 似乎包含在多个包中,但据悉apt-get
这些包已损坏。
尝试 1:
$ sudo apt-get -f install libcunit1-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcunit1-ncurses' for regex 'libcunit1-*'
Note, selecting 'libcunit1-dev' for regex 'libcunit1-*'
Note, selecting 'libcunit1-doc' for regex 'libcunit1-*'
Note, selecting 'libcunit1' for regex 'libcunit1-*'
Note, selecting 'libcunit1-ncurses-dev' for regex 'libcunit1-*'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
libcunit1-ncurses : Conflicts: libcunit1 but 2.1-0.dfsg-10 is to be installed
libcunit1-ncurses-dev : Conflicts: libcunit1-dev but 2.1-0.dfsg-10 is to be installed
E: Unable to correct problems, you have held broken packages.
尝试2:
$ sudo apt-get -f install 2.1-0.dfsg-10
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 2.1-0.dfsg-10
E: Couldn't find any package by regex '2.1-0.dfsg-10'
有任何想法吗?
答案1
尝试 synaptic(可以从软件中心轻松安装)来检查是否可以安装/是否有必要的软件包。