How To Install ubuntu-drivers-common on Ubuntu 22.04
Introduction
In this tutorial we learn how to install ubuntu-drivers-common on Ubuntu 22.04.
What is ubuntu-drivers-common
ubuntu-drivers-common is:
This package aggregates and abstracts Ubuntu specific logic and knowledge about third-party driver packages. It provides:
a Python API for detecting driver packages for a particular piece of hardware or the whole system.
an “ubuntu-drivers” command line tool to list or install driver packages (mostly for integration in installers).
some NVidia specific support code to find the most appropriate driver version, as well as setting up the alternatives symlinks that the proprietary NVidia and FGLRX packages use.
There are three methods to install ubuntu-drivers-common on Ubuntu 22.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-drivers-common 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-drivers-common using apt-get by running the following command:
sudo apt-get -y install ubuntu-drivers-common
Install ubuntu-drivers-common Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ubuntu-drivers-common using apt by running the following command:
sudo apt -y install ubuntu-drivers-common
Install ubuntu-drivers-common 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-drivers-common using aptitude by running the following command:
sudo aptitude -y install ubuntu-drivers-common
How To Uninstall ubuntu-drivers-common on Ubuntu 22.04
To uninstall only the ubuntu-drivers-common package we can use the following command:
sudo apt-get remove ubuntu-drivers-common
Uninstall ubuntu-drivers-common And Its Dependencies
To uninstall ubuntu-drivers-common and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove ubuntu-drivers-common
Remove ubuntu-drivers-common Configurations and Data
To remove ubuntu-drivers-common configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge ubuntu-drivers-common
Remove ubuntu-drivers-common configuration, data, and all of its dependencies
We can use the following command to remove ubuntu-drivers-common configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ubuntu-drivers-common
References
Summary
In this tutorial we learn how to install ubuntu-drivers-common package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.