[前言:我见过类似的问题,但这对我没有帮助,所以这是个新问题。为了更详细地解释,我按照添加 PPA 后如何解决未满足的依赖关系?,没有纠正问题]
我正在尝试安装ccmake
。
但是,我收到以下错误:
sudo apt-get install cmake-curses-gui
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
cmake-curses-gui : Depends: cmake (= 2.8.7-0ubuntu4)
E: Unable to correct problems, you have held broken packages.
我试过了sudo apt-get -f install
,但是没有帮助。
我也找不到破损的包裹。
答案1
cmake-curses-gui 依赖 cmake (= 2.8.7-0ubuntu4) 进行精确安装。
如果您无法安装此特定版本,则意味着您在系统上安装了不同的版本。
首先尝试卸载 cmake:
sudo apt-get remove cmake
并再次安装 cmake-curses-gui:
sudo apt-get install cmake-curses-gui
如果它不起作用,请检查您是否没有从 ppa 中提取不同版本的 cmake。