Building Audacity 2.4.2 on Debian 10 (with cmake 3.18)

Audacity 2.4.2 requires cmake version 3.15 or later.
At time of writing, the Debian 10 repository version of cmake is 3.13.4-1, which is too old, so the first task is to install a more recent version of cmake.

  1. Uninstall any version of cmake currently installed:
sudo apt purge cmake
  1. Download from
  2. Copy to /usr/local
sudo cp /usr/local
  1. Navigate to /usr/local and set the executable permission for
cd /usr/local
sudo chmod +x
  1. Run the installation script:
sudo sh
  1. Follow the on-screen instructions. Note that:
  2. You must respond “Y” when asked if you accept the license agreement
  3. Respond “n” when prompted:
By default the CMake will be installed in:
Do you want to include the subdirectory cmake-3.18.1-Linux-x86_64?
Saying no will install in: "/usr/local" [Yn]:
  1. Check the cmake version
cmake --version

Once cmake 3.18 is installed, follow the Ubuntu 20.04 instructions to install Audacity: