I ran into the below issue while trying to install
mkpasswd in Ubuntu.
sudo apt install mkpasswd
Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package mkpasswd
Turns out that mkpasswd is a utility part of the whois package. So, in order to get mkpasswd you have to:
sudo apt install whois
To confirm mkpasswd is installed you can run:
You should get the following: