1

[Preface: I have seen similar questions, but that did not help me and so this new question. To explain in more detail, I followed the steps in How do I resolve unmet dependencies after adding a PPA?, without rectifying the problem]

I am trying to install ccmake.

However, I get the following error:

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.

I tried sudo apt-get -f install, but it did not help.

I am unable to find broken packages either.

Manas Paldhe
  • 119
  • 1
  • 6
  • Yes, I followed that. – Manas Paldhe Mar 11 '14 at 14:51
  • It did not sort out my problem and hence I posted another question. :) – Manas Paldhe Mar 11 '14 at 14:52
  • did u try sudo dpkg --configure -a – Stormvirux Mar 11 '14 at 14:57
  • Yes. Still the same error occurs. $ sudo dpkg --configure -a $ sudo apt-get install cmake-curses-gui ** something** 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. $

    – Manas Paldhe Mar 11 '14 at 15:08
  • What is the output of sudo apt-get check, apt-cache policy cmake-curses-gui cmake and cat /etc/apt/sources.list{,.d/*.list} – Braiam Mar 12 '14 at 00:34
  • I actually solved the problem. Since it is marked as duplicate, I cannot answer the question.

    I remove cmake and cmake-data, reinstalled them and then installed ccmkake. Worked perfect! I don't know why.

    – Manas Paldhe Mar 12 '14 at 01:32

1 Answers1

1

cmake-curses-gui depends on cmake (= 2.8.7-0ubuntu4) for a precise installation.

If you're unable to install this particular version it means that you installed a different version on your system.

Try first to uninstall cmake:

sudo apt-get remove cmake

And install again cmake-curses-gui:

sudo apt-get install cmake-curses-gui

If it doesn't work check if you're not pulling a different version of cmake from a ppa.