Warning -- Do not do step 2 if you have Robot Operating System (ROS) installed Check your current version with cmake --version Uninstall it with sudo apt remove cmake Visit https://cmake.org/download/ and download the latest binaries In my case cmake-3.6.2-Linux-x86_64.sh is sufficient copy the binary to /opt/ chmod +x /opt/cmake-3.*your_version*.sh (chmod makes the script executable) sudo bash ..