How To Install ubuntu-keyring on Ubuntu 20.04

In this tutorial we learn how to install ubuntu-keyring on Ubuntu 20.04. ubuntu-keyring is GnuPG keys of the Ubuntu archive GnuPG keys of the Ubuntu archive

Introduction

In this tutorial we learn how to install ubuntu-keyring on Ubuntu 20.04.

What is ubuntu-keyring

ubuntu-keyring is:

The Ubuntu project digitally signs its Release files. This package contains the archive keys used for that. Task: minimal Build-Essential: yes

Package: ubuntu-keyring Architecture: all Version: 2020.02.11.2 Multi-Arch: foreign Priority: important Section: misc Origin: Ubuntu Maintainer: Dimitri John Ledkov [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 46 Breaks: ubuntu-cloudimage-keyring (« 2018.02.05) Replaces: ubuntu-cloudimage-keyring (« 2018.02.05) Filename: pool/main/u/ubuntu-keyring/ubuntu-keyring_2020.02.11.2_all.deb Size: 22244 MD5sum: bcc07af79b63788dba9e4c2ecfcefa11 SHA1: 16f9953db861213ee9ec7423c15002128794d1fb SHA256: 7564f3f76fbc9f165ecc30e2cf2695d38b284e234bffa0c6441ff37f8a7aebd7 Description-en: GnuPG keys of the Ubuntu archive The Ubuntu project digitally signs its Release files. This package contains the archive keys used for that. Task: minimal Build-Essential: yes

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

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

sudo apt-get update

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

sudo apt-get -y install ubuntu-keyring

Install ubuntu-keyring Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ubuntu-keyring

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

sudo aptitude -y install ubuntu-keyring

How To Uninstall ubuntu-keyring on Ubuntu 20.04

To uninstall only the ubuntu-keyring package we can use the following command:

sudo apt-get remove ubuntu-keyring

Uninstall ubuntu-keyring And Its Dependencies

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

sudo apt-get -y autoremove ubuntu-keyring

Remove ubuntu-keyring Configurations and Data

To remove ubuntu-keyring configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge ubuntu-keyring

Remove ubuntu-keyring configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ubuntu-keyring

References

Summary

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