pwqgen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pwqgen: command not found
or when using sudo you get the following error message
sudo: pwqgen: command not found
Solutions to pwqgen: command not found
How To Fix pwqgen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pwqgen is provided by passwdqc package.
passwdqc is:
passwdqc is a password/passphrase strength checking and policy enforcement toolset, including a PAM module (libpam-passwdqc), command-line programs (pwqcheck and pwqgen), and a library (libpasswdqc).
This package provides pwqcheck and pwqgen, which are standalone password/passphrase strength checking and random passphrase generator programs, respectively, which are usable from scripts.
To fix this problem, we can install more using the command below.
sudo apt-get -y install passwdqc
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install passwdqc.
sudo apt -y install passwdqc
Or if you have aptitude installed you can use the following command.
sudo aptitude install passwdqc
Summary
In this tutorial we learn how to fix pwqgen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.