How To Install libcryptsetup12 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libcryptsetup12
on Ubuntu 20.04.
What is libcryptsetup12
libcryptsetup12 is:
Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.
This package provides the libcryptsetup shared library. Task: minimal, ubuntu-core
Package: libcryptsetup12 Architecture: amd64 Version: 2:2.2.2-3ubuntu2.2 Multi-Arch: same Priority: important Section: libs Source: cryptsetup Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Cryptsetup Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 530 Depends: libargon2-1 (>= 0~20171227), libblkid1 (>= 2.24.2), libc6 (>= 2.25), libdevmapper1.02.1 (>= 2:1.02.97), libjson-c4 (>= 0.13.1), libssl1.1 (>= 1.1.0), libuuid1 (>= 2.16) Filename: pool/main/c/cryptsetup/libcryptsetup12_2.2.2-3ubuntu2.2_amd64.deb Size: 182316 MD5sum: 7217b75da6e2d3986513359b2beb21c8 SHA1: 67354d87c58327b324a608b84efa6ba0d8e3d644 SHA256: a09f58314cb983b56a75cc021348fa4983376884e8aea79902862ab053fadf91 SHA512: 7113df25bfbdc19d1d0a7a38779cf6c7fe206c4f5038b0a6de1f0c2b834712180679e2f4e32dd709eaeae21e7a84a079b6d71dcaca4ee5ce6a99b17be023f2cc Homepage: https://gitlab.com/cryptsetup/cryptsetup Description-en: disk encryption support - shared library Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.
This package provides the libcryptsetup shared library. Task: minimal, ubuntu-core
Package: libcryptsetup12 Architecture: amd64 Version: 2:2.2.2-3ubuntu2 Multi-Arch: same Priority: important Section: libs Source: cryptsetup Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Cryptsetup Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 530 Depends: libargon2-1 (>= 0~20171227), libblkid1 (>= 2.24.2), libc6 (>= 2.25), libdevmapper1.02.1 (>= 2:1.02.97), libjson-c4 (>= 0.13.1), libssl1.1 (>= 1.1.0), libuuid1 (>= 2.16) Filename: pool/main/c/cryptsetup/libcryptsetup12_2.2.2-3ubuntu2_amd64.deb Size: 182008 MD5sum: c808f0f9a806d21f164086b946fb4668 SHA1: bfe6e8aef679bfab3babcfcb1739716b76ba1b77 SHA256: 2337d2c389d48f6e7043df11c77127e7d8cdb353179d370603fe81b015702521 Homepage: https://gitlab.com/cryptsetup/cryptsetup Description-en: disk encryption support - shared library Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.
This package provides the libcryptsetup shared library. Task: minimal, ubuntu-core
There are three methods to install libcryptsetup12
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libcryptsetup12 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libcryptsetup12
using apt-get
by running the following command:
sudo apt-get -y install libcryptsetup12
Install libcryptsetup12 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcryptsetup12
using apt
by running the following command:
sudo apt -y install libcryptsetup12
Install libcryptsetup12 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libcryptsetup12
using aptitude
by running the following command:
sudo aptitude -y install libcryptsetup12
How To Uninstall libcryptsetup12 on Ubuntu 20.04
To uninstall only the libcryptsetup12
package we can use the following command:
sudo apt-get remove libcryptsetup12
Uninstall libcryptsetup12 And Its Dependencies
To uninstall libcryptsetup12
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libcryptsetup12
Remove libcryptsetup12 Configurations and Data
To remove libcryptsetup12
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libcryptsetup12
Remove libcryptsetup12 configuration, data, and all of its dependencies
We can use the following command to remove libcryptsetup12
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcryptsetup12
References
Summary
In this tutorial we learn how to install libcryptsetup12
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.