driverctl command not found

In this troubleshooting guide we learn how to fix driverctl command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

driverctl: command not found

or when using sudo you get the following error message

sudo: driverctl: command not found

Solutions to driverctl: command not found

How To Fix driverctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu driverctl is provided by driverctl package.

driverctl is:

Driverctl is a tool for manipulating and inspecting the system device driver choices.

Devices are normally assigned to their sole designated kernel driver by default. However in some situations it may be desirable to override that default, for example to try an older driver to work around a regression in a driver or to try an experimental alternative driver. Another common use-case is pass-through drivers and driver stubs to allow userspace to drive the device, such as in case of virtualization.

driverctl integrates with udev to support overriding driver selection for both cold- and hotplugged devices from the moment of discovery, but can also change already assigned drivers, assuming they are not in use by the system. The driver overrides created by driverctl are persistent across system reboots by default.

To fix this problem, we can install more using the command below.

sudo apt-get -y install driverctl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install driverctl.

sudo apt -y install driverctl

Or if you have aptitude installed you can use the following command.

sudo aptitude install driverctl

Summary

In this tutorial we learn how to fix driverctl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.