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. I needed a good medium roast Catuai coffee for this one first! 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 (search for it!) and also if you like to code with coffee visit my shop to grab inspirational coffee mugs and T-Shirts. Thanks!

Leave a comment

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