Hola,

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:

which mkpasswd

You should get the following:

/usr/bin/mkpasswd

If you like to learn more about Ubuntu I recommend getting this book Ubuntu Unleashed and also if you like to code with coffee visit my sister website cocotu.com

Leave a comment

Your email address will not be published. Required fields are marked *