pkcs11_setup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pkcs11_setup: command not found
or when using sudo you get the following error message
sudo: pkcs11_setup: command not found
Solutions to pkcs11_setup: command not found
How To Fix pkcs11_setup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pkcs11_setup is provided by libpam-pkcs11 package.
libpam-pkcs11 is:
A Pluggable Authentication Module for PKCS#11 based smart cards. Useful for enabling smart card based user login to a system.
More advanced than libpam-p11. Additional features include full verification of the card data using certificate chains and certificate revocation lists. Advanced username mapping including LDAP, Active Directory and Kerberos.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libpam-pkcs11
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libpam-pkcs11.
sudo apt -y install libpam-pkcs11
Or if you have aptitude installed you can use the following command.
sudo aptitude install libpam-pkcs11
Summary
In this tutorial we learn how to fix pkcs11_setup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.