Can`t install "cmake"

sudo apt-get install cmake

It sais:

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

E: Package ‘cmake’ has no installation candidate

I have many trys:
sudo apt-get upgrade -y

sudo apt-get upgrade

sudo apt-get install cmake

But it`s faild again.

Bump, I have the exact same problem.

I have finished it.

  1. Downloading cmake3.14 from ‘https://cmake.org/download/
  2. tar zxcf cmake-3.14.0.tar.gz
  3. cd cmake-3.14.0
  4. sudo ./bootstrap //20 mimutes
  5. sudo make
  6. sudo make install
  7. cmake --version //return the version of cmake
7 Likes

Correction in step 2) tar -zxvf cmake-3.14.0.tar.gz

3 Likes

It must’ve recently started working.

sudo apt-get install cmake

worked for me.

It works for cmake 3.20.0 as well on Jetson AGX Xavier

On, 27/07/2021. sudo apt -get install cmake , works.