How To Install secureboot-db on Ubuntu 18.04

In this tutorial we learn how to install secureboot-db on Ubuntu 18.04. secureboot-db is Secure Boot updates for DB and DBX

Introduction

In this tutorial we learn how to install secureboot-db on Ubuntu 18.04.

What is secureboot-db

secureboot-db is:

Systems with Secure Boot enabled have portions of the system signed by entries in the Secure Boot DB. This package provides a mechanism for delivering updates to DB and the corresponding blacklist database, DBX.

There are three methods to install secureboot-db on Ubuntu 18.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 secureboot-db Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install secureboot-db

Install secureboot-db Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install secureboot-db

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

sudo aptitude -y install secureboot-db

How To Uninstall secureboot-db on Ubuntu 18.04

To uninstall only the secureboot-db package we can use the following command:

sudo apt-get remove secureboot-db

Uninstall secureboot-db And Its Dependencies

To uninstall secureboot-db and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove secureboot-db

Remove secureboot-db Configurations and Data

To remove secureboot-db configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge secureboot-db

Remove secureboot-db configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge secureboot-db

References

Summary

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