ubuntu-drivers command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ubuntu-drivers: command not found
or when using sudo you get the following error message
sudo: ubuntu-drivers: command not found
Solutions to ubuntu-drivers: command not found
How To Fix ubuntu-drivers: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ubuntu-drivers is provided by ubuntu-drivers-common package.
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.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ubuntu-drivers-common
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ubuntu-drivers-common.
sudo apt -y install ubuntu-drivers-common
Or if you have aptitude installed you can use the following command.
sudo aptitude install ubuntu-drivers-common
Summary
In this tutorial we learn how to fix ubuntu-drivers command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.