Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I run

sudo apt-get install cmake

I get the following response:

Package cmake is not available, but is referred to by another package.
This may mean the package is missing, has been obsoleted, or is only available from another source

E: Package 'cmake' has no installation candidate

How do I install cmake?

share|improve this question

I faced the same problem and after googling a bit, I become able to install cmake. I fixed my problem as follow:

  1. wessi@wessi-pc:~$ sudo apt-get update -y
  2. wessi@wessi-pc:~$ sudo apt-get update
  3. wessi@wessi-pc:~$ sudo apt-get install cmake
share|improve this answer

Have you enable the universe repository? Which version of Ubuntu?

Try this:

It's a PPA with the newest cmake. I confirm to you that cmake exists and can be installed with:

apt-get install cmake
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.