wakeonlan command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
wakeonlan: command not found
or when using sudo you get the following error message
sudo: wakeonlan: command not found
Solutions to wakeonlan: command not found
How To Fix wakeonlan: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu wakeonlan is provided by wakeonlan package.
wakeonlan is:
With this package you can remotely wake up and power on machines which have motherboards or network cards that support ‘Wake-on-Lan’ packets.
The tool allows you to wake up a single machine, or a group of machines.
You need the MAC addresses of machines to construct the WOL packets, but, in contrast to ’etherwake’, you do not need root privileges to use the program itself as UDP packets are used.
To fix this problem, we can install more using the command below.
sudo apt-get -y install wakeonlan
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install wakeonlan.
sudo apt -y install wakeonlan
Or if you have aptitude installed you can use the following command.
sudo aptitude install wakeonlan
Summary
In this tutorial we learn how to fix wakeonlan command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.