How To Install libnss3 on Ubuntu 20.04

In this tutorial we learn how to install libnss3 on Ubuntu 20.04. libnss3 is Network Security Service libraries Network Security Service libraries

Introduction

In this tutorial we learn how to install libnss3 on Ubuntu 20.04.

What is libnss3

libnss3 is:

This is a set of libraries designed to support cross-platform development of security-enabled client and server applications. It can support SSLv2 and v4, TLS, PKCS #5, #7, #11, #12, S/MIME, X.509 v3 certificates and other security standards. Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: libnss3 Architecture: amd64 Version: 2:3.49.1-1ubuntu1 Multi-Arch: same Priority: optional Section: libs Source: nss Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Maintainers of Mozilla-related packages [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 3841 Depends: libc6 (>= 2.14), libnspr4 (>= 2:4.12), libsqlite3-0 (>= 3.5.9) Conflicts: libnss3-1d (« 2:3.13.4-2) Filename: pool/main/n/nss/libnss3_3.49.1-1ubuntu1_amd64.deb Size: 1171304 MD5sum: 29166bd5d844c4df5ee1c31b69670053 SHA1: 4d09567d4900f67e927d3d1745af25b80466141c SHA256: 89fad9375ae2cfb9be764e04f887c9918b21521ee962de60b8e474deb5430a9f Homepage: http://www.mozilla.org/projects/security/pki/nss/ Description-en: Network Security Service libraries This is a set of libraries designed to support cross-platform development of security-enabled client and server applications. It can support SSLv2 and v4, TLS, PKCS #5, #7, #11, #12, S/MIME, X.509 v3 certificates and other security standards. Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install libnss3 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 libnss3 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libnss3 using apt-get by running the following command:

sudo apt-get -y install libnss3

Install libnss3 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnss3 using apt by running the following command:

sudo apt -y install libnss3

Install libnss3 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 libnss3 using aptitude by running the following command:

sudo aptitude -y install libnss3

How To Uninstall libnss3 on Ubuntu 20.04

To uninstall only the libnss3 package we can use the following command:

sudo apt-get remove libnss3

Uninstall libnss3 And Its Dependencies

To uninstall libnss3 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libnss3

Remove libnss3 Configurations and Data

To remove libnss3 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libnss3

Remove libnss3 configuration, data, and all of its dependencies

We can use the following command to remove libnss3 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnss3

References

Summary

In this tutorial we learn how to install libnss3 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.