devicename-detect command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
devicename-detect: command not found
or when using sudo you get the following error message
sudo: devicename-detect: command not found
Solutions to devicename-detect: command not found
How To Fix devicename-detect: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu devicename-detect is provided by devicetype-detect package.
devicetype-detect is:
devicetype-detect attempts to determine device class of the running system based on the display size, display resolution, and presence or absence of a battery.
devicename-detect attempts to determine the name of the device, to the best knowledge of the device itself, for use as a sensible default model name.
To fix this problem, we can install more using the command below.
sudo apt-get -y install devicetype-detect
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install devicetype-detect.
sudo apt -y install devicetype-detect
Or if you have aptitude installed you can use the following command.
sudo aptitude install devicetype-detect
Summary
In this tutorial we learn how to fix devicename-detect command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.