pmt-ehd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pmt-ehd: command not found
or when using sudo you get the following error message
sudo: pmt-ehd: command not found
Solutions to pmt-ehd: command not found
How To Fix pmt-ehd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pmt-ehd is provided by libpam-mount-bin package.
libpam-mount-bin is:
This module is aimed at environments with central file servers that a user wishes to mount on login and unmount on logout, such as (semi-)diskless stations where many users can login.
The module also supports mounting local filesystems of any kind the normal mount utility supports, with extra code to make sure certain volumes are set up properly because often they need more than just a mount call, such as encrypted volumes. This includes SMB/CIFS, FUSE, dm-crypt and LUKS.
This package contains helper binaries
To fix this problem, we can install more using the command below.
sudo apt-get -y install libpam-mount-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libpam-mount-bin.
sudo apt -y install libpam-mount-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install libpam-mount-bin
Summary
In this tutorial we learn how to fix pmt-ehd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.