This procedure will take about an hour.
sudo apt remove cmake
sudo apt install libssl-dev
cd ~/ tar -zxvf cmake-3.19.2.tar.gz # directory depends on the archive version cd cmake-3.19.2 ./bootstrap make -j 4 sudo make install sudo ldconfig