How to Install and Use VeraCrypt on Ubuntu 22.04

VeraCrypt is a free, open-source disk encryption tool introduced by IDRIX that is compatible with Mac OS, Windows-based Operating systems, and Linux, including Ubuntu 22.04. It creates and mounts a virtual drive in the form of a file. The encryption done by VeraCrypt is transparent, automatic, real-time, and based on multiple algorithms.

VeraCrypt installation and usage on Ubuntu 22.04 will be covered in detail in this article.

Veracrypt installation on Ubuntu 22.04

To install Veracrypt on Ubuntu 22.04, carefully follow the below-given steps.

Step 1: Update Ubuntu packages

Top 10 Linux Distros

First, press “CTRL+ALT+T” to open up the terminal and update the Ubuntu APT packages:

$ sudo apt update

Step 2: Add unit193 repository

In the next step, add the “unit193” repository that contains VeraCrypt:

$ sudo add-apt-repository ppa:unit193/encryption

Step 3: Update system packages

After adding the specified repository, again update the system packages:

$ sudo apt update

Step 4: Install VeraCrypt

Finally, install VeraCrypt using the below-given command:

$ sudo apt install veracrypt -y

The given output indicates that we have successfully installed VeraCrypt. Let’s check out the way to use it.

How to use VeraCrypt on Ubuntu 22.04

In order to use VeraCrypt and create a new Volume, follow the steps mentioned below.

Step 1: Open VeraCrypt

First search “VeraCrypt” in the “Activities” menu and open it:

Step 2: Create new Volume

As you can see, Veracrypt is effectively launched on our Ubuntu 22.04 system. Now create a new Volume by clicking on the “Create Volume” button:

Upon doing so, the “VeraCrypt Volume Creation” wizard will appear on the screen. Select “Create an encrypted file container” and click on the “Next” button:

Step 3: Set Volume Type

Select the Volume type as we have selected “Standard VeraCrypt volume” and click on the “Next” button:

Step 4 Select or Create VeraCrypt file

Click on “Select file” to create and select VeraCrypt volume file:

Add file name as we have used “Veracrypt” and click on the “Save” button:

Add the path of the newly created file in the “Location” menu and click on the “Next” button:

Step 5: Select Encryption Option

Choose the required “Encryption algorithm” and “Hash algorithm” from their related drop-down menus and click on the “Next” button. For instance, we have selected “AES” as the Encryption algorithm and “SHA-512” as the Hash algorithm:

Step 6: Set Volume size

Set the size of the volume and click on the “Next” button:

Add and confirm the new password and save it by clicking on the “Next” button:

Step 7: Select Volume Format

Select Volume Format as we have selected “LinuxExt4,” then click on the “Next” button:

After setting the Filesystem format, select “I will mount the volume only on Linux” as the “Cross-platform” option and move to the next step by pressing “Next”:

Read the highlighted “IMPORTANT” note and click on the “Format” button to complete the process of Volume creation:

As you can see, we have successfully created a new volume using VeraCrypt. Click on the “OK” button to move ahead:

Close the “VeraCrypt Volume Creation” wizard by pressing the “Exit” button:

Step 8: Add Volume in VeraCrypt

Add the newly created volume in VeraCrypt by exploring it using “Select file”. It will browse you to the “Home” directory:

Select the “Veracrypt” file from the “Home” directory and click on the “Open” button:

After adding the file, press the “Mount” button to add a new Volume:

Add the password you have created during the volume creation process:

As you can see, a new volume is successfully added in VeraCrypt:

We are done with VeraCrypt installation and use on Ubuntu 22.04. Let’s move to uninstall it.

How to uninstall VeraCrypt from Ubuntu 22.04

On Ubuntu 22.04, to uninstall VeraCrypt, use the below-given command on the terminal:

$ sudo apt autoremove veracrypt -y

We have effectively elaborated all the essential steps to install, use, and uninstall VeraCrypt on Ubuntu 22.04.

Conclusion

On Ubuntu 22.04, to install VeraCrypt, first, it is required to add a “unit193” third-party repository because it is not available directly from the APT repository. After adding the repository, update the system and execute the “$ sudo apt install veracrypt -y” command on the terminal. In this tutorial, we have effectively elaborated all the required steps to install, use, and uninstall VeraCrypt on Ubuntu 22.04.