How To Install VeraCrypt on Ubuntu

To protect any kind of information or any personal data, encryption is one of the popular technique. The prime principle of encryption is to distort the data  which can only be restored to its original form using the decryption key designed for that respective data. VeraCrypt is an encryption tool that is free to use, which you can install on Ubuntu for data encryption.

2 Ways to Install VeraCrypt on Ubuntu

VeraCrypt comes with portable containers due to which you can access the encrypted files on different systems by moving them. Further, you can use randomly generated keyfiles or custom keyfiles to protect your encrypted containers with additional passwords or passphrases. There are two ways to install VeraCrypt on Ubuntu which this guide will discuss along with some steps to encrypt a volume using VeraCrypt.

1: Through VeraCrypt Deb File

The first method to install VeraCrypt encryption software on Ubuntu is by through Veracrypt deb file, you get it from VeraCrypt downloads page. Here, one thing you need to keep it mind is that it comes with both command line and GUI version, so click on the desired version file to begin the download:

Downloading VeraCrypt deb file on Ubuntu from its Official website

Alternatively, you can run and execute the below command to get the deb file for VeraCrypt GUI version on Ubuntu:

wget https://launchpadlibrarian.net/746233240/veracrypt-1.26.14-Ubuntu-24.04-amd64.deb

 

Downloading VeraCrypt deb file on Ubuntu from its terminal

Now use the apt package installer to proceed with VeraCrypt installation on Ubuntu:

sudo apt install ./veracrypt-1.26.14-Ubuntu-24.04-amd64.deb

 

Installing VerCrypt on Ubuntu using apt package manager

You can launch VeraCrypt from apps menu or via terminal by using the following command once the installation is completed:

veracrypt

 

Launching VeraCrypt on Ubuntu from terminal

2: Through PPA Repository

The second and the last method for installing VeraCrypt GUI on Ubuntu is using the VeraCrypt personal package archive repository. To add VeraCrypt PPA use the below command:

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

 

Adding VeraCrypt PPA repository on Ubuntu

Next, update the apt packages list after adding the VeraCrypt PPA by running the below command:

sudo apt update

 

Updating apt packages list after adding VeraCrypt PPA on Ubuntu

Now execute the below command for installing VeraCrypt on Ubuntu using PPA via apt app installer:

sudo apt install veracrypt

 

Installing VerCrypt on Ubuntu using its PPA via apt package manager

To verify the successful installation of VeraCrypt you can list all the apps installed on Ubuntu using the apt package manager:

sudo apt list --installed

 

Verifying VeraCrypt installation by listing apt installed apps on ubuntu

How To Encrypt Volume Using VeraCrypt on Ubuntu?

One of the primary functions of VeraCrypt is disk encryption thus protecting the user’s sensitive data. Using VeraCrypt you can either create a new encrypted volume within the system or you can encrypt any external storage medium. Encryption via VeraCrypt is quite an easy process for which you need to follow the below steps:

Step 1: Selecting the Volume for Encryption

The first thing you need to do is to click on Create Volume after launching VeraCrpyt on Ubuntu, here you will get to see two options one if for the users who want to create an encrypted file that is the part of the system and the other option is for creating encrypted external storage system:

Selecting the volume specification for encryption in VeraCrypt on Ubuntu

Now select the type of volume you need for encryption here, there are two options one is the standard type for normal VeraCrypt volume. The other is the hidden VeraCrypt volume option which is feasible if you want to keep your password hidden:

Selecting the volume type for encryption in VeraCrypt on Ubuntu

Step 2: Select the Location for Encrypted Volume in VeraCrypt

The next step is to select the directory for the volume that you want to encrypt or in other case select the path for the external drive. For that first, click on Select File:

Selecting the file for encryption or selecting the storage location to be encrypted via VeraCrypt on Ubuntu

Now navigate to the desired directory and then name the data, here I have named it My data, once done click on the Save option to proceed:

Selecting the directory to be encrypted via VeraCrypt on Ubuntu

Once the file is selected, you will see its path in the location bar and then click on Next to proceed:

Path for the directory to be encrypted added in VeraCrypt on Ubuntu

Step 3: Choose Encryption Algorithm

This is the primary step for encryption as here you have to select the desired encryption algorithm, once selected you can also test by providing some data by clicking on Test option:

Select the desired encryption algorithm in VeraCryt on Ubuntu

Now select the Hash Algorithm and proceed to Next step:

Selecting the Hash Algorithm for encryption in VeraCrypt on Ubuntu

Step 4: Set the Volume Size for Encryption

Next, you need to allocate the storage space for encrypted data, where you can also select the desired memory units. For demonstration, I have selected the MB and set the storage to 50 MB:

Selecting the storage space for the directory to be encrypted in VeraCrypt on Ubuntu

Step 5: Set the Password For Encrypted Drive

To access the encrypted volume, you have to set the password for it and afterwards select the protection layer which makes it difficult for unauthorized users to access the encrypted data. Here, I have selected the personal identification module (PIM). It is a hardware based security that make it less susceptible to software-based attacks that might target key files stored on your computer:

Setting the password for encrypted volume in VeraCrypt on Ubuntu

By default, if you set the volume pin to zero it is set to 458 that is used in PIM iteration calculations for generating the header key:

Selecting the size for Personal iteration multiplier for header key derivation in VeraCrypt on Ubuntu

Step 6: Choose the Volume Format for Encryption in VeraCrypt

The next thing you need to do is to do is to select the file system format for the encrypted storage, here you will find the number of different formats:

Selecting the file format for storage or directory to be encrypted via VeraCrypt on Ubuntu

Now by randomly moving the mouse, keeping the cursor on the VeraCrypt generate the header and master key. Once the process of generating the random combination is completed, click on the Format option:

Generating the header and master key by randomly moving the mouse on VeraCrypt on Ubuntu

Step 7: Mount the Encrypted drive in VeraCrypt

The last thing you need to do is to mount the encrypted folder to access it as a regular folder on Ubuntu. First add the path for the folder and for that click on the Select File:

Selecting the file or directory path of encrypted storage in VeraCrypt on Ubuntu to mount

Now navigate to the folder directory, select it and the click on Open:

Selecting the file or directory path of encrypted storage in VeraCrypt on Ubuntu to mount

Once the path is added now click on the Mount, afterwards enter the password for the drive and enter the system password for authentication:

Mounting the encrypted drive on VeraCrypt in Ubutnu

Here, in the below image you can see that the encrypted drive is mounted:

Successfully mounted encrypted drive on VeraCrypt in Ubuntu

Conclusion

This guide explained two ways to install VeraCrypt on Ubuntu, one was using its deb file, the other was using the VeraCrypt personal package repository. Further, the process of creating an encrypted volume on Ubuntu via VeraCrypt is also explained briefly. The easy way to get VeraCrypt on Ubuntu is installing it via its deb file

Index
Scroll to Top