In Ubuntu 16.04 you might receive the following error when creating an encrypted volume:

error creating luks device error spawning command-line cryptsetup luksformat

To resolve this issue, you simply need to install cryptsetup with the following command:

sudo apt-get install cryptsetup

You will now be able to create an encrypted volume using the disks utility.