whereami command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
whereami: command not found
or when using sudo you get the following error message
sudo: whereami: command not found
Solutions to whereami: command not found
How To Fix whereami: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu whereami is provided by whereami package.
whereami is:
whereami is a set of useful scripts and a coordinating system for automatically re-locating your computer within the current (network) environment.
Typically, you would use whereami to automatically detect and re-configure your laptop when you move between a variety of diverse networks and/or docking environments.
Although whereami will work best if all of your networks assign addresses through dhcp, this is not a pre-requisite and the system allows any technique to be used to ascertain the new location with as little ongoing user intervention as possible.
Having ascertained the correct location, whereami will run appropriate (user-configured) scripts to adjust the laptop operation to suit the current environment.
See the man pages for more information. You may also get useful assistance from the debian-laptop mailing list, which is frequented by several of the users and contributors.
To fix this problem, we can install more using the command below.
sudo apt-get -y install whereami
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install whereami.
sudo apt -y install whereami
Or if you have aptitude installed you can use the following command.
sudo aptitude install whereami
Summary
In this tutorial we learn how to fix whereami command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.