These steps were tested with Audacity 2.2.0 alpha July 24th on a clean installation of Ubuntu 17.04 (Zesty Zapus) 64-bit.They should also work on other flavours of Ubuntu 17.04If any other version of Audacity is already installed, I would recommend uninstalling it before starting these steps.

When the instructions say to install a named package (for example "build-essentials"), that can either be done with your preferred package manager (such as Synaptic or the Software Centre), or from the command line in a terminal window using the command given in the code block.

Prerequisites:

By default, the source code repositories are not enabled in Ubuntu 17.04. They must be enabled.

Launch "Software and Updates"

In the "Ubuntu Software" tab, ensure that the 5 checkboxes are enabled (Not the "cdrom" option in the box at the bottom).

In the "Updates" tab, ensures that "Important security updates" and "Recommended updates" are selected

(For a minimal number of installed packages, see Note 1 at end of post.)

Download the Audacity source code:Go to https://github.com/audacity/audacity and click on the green "Clone or download" button, then select "Download Zip".When the download is complete, extract the contents of the zip file to a convenient location. It will create a folder called "audacity-master" that contains the full source code tree,

Configure and Build Audacity:

Open a terminal window in the "audacity-master" folder and enter the following commands: