laptop-detect command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
laptop-detect: command not found
or when using sudo you get the following error message
sudo: laptop-detect: command not found
Solutions to laptop-detect: command not found
How To Fix laptop-detect: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu laptop-detect is provided by laptop-detect package.
laptop-detect is:
This package provides a simple shell script which attempts to determine whether it is being run on a laptop (or similar portable machine). It is mainly useful for installers.
To fix this problem, we can install more using the command below.
sudo apt-get -y install laptop-detect
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install laptop-detect.
sudo apt -y install laptop-detect
Or if you have aptitude installed you can use the following command.
sudo aptitude install laptop-detect
Summary
In this tutorial we learn how to fix laptop-detect command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.