yum fails to reinstall/update the pam package with `error: failed to open dir run of /var/run/: Not a directory`
Issue
-
yum transactions fail to extract pam
# yum -y reinstall pam Dependencies resolved. ====================================================================================================================== Package Architecture Version Repository Size ====================================================================================================================== Reinstalling: pam x86_64 1.5.1-19.el9 rhel-9-for-x86_64-baseos-rpms 631 k Transaction Summary ====================================================================================================================== Total download size: 631 k Installed size: 1.8 M Downloading Packages: pam-1.5.1-19.el9.x86_64.rpm 913 kB/s | 631 kB 00:00 ---------------------------------------------------------------------------------------------------------------------- Total 911 kB/s | 631 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Reinstalling : pam-1.5.1-19.el9.x86_64 1/2 error: failed to open dir run of /var/run/: Not a directory Error unpacking rpm package pam-1.5.1-19.el9.x86_64 Verifying : pam-1.5.1-19.el9.x86_64 1/2 Verifying : pam-1.5.1-19.el9.x86_64 2/2 Installed products updated. Failed: pam-1.5.1-19.el9.x86_64 pam-1.5.1-19.el9.x86_64 Error: Transaction failed
Environment
- Red Hat Enterprise Linux 8.8 EUS
- Red Hat Enterprise Linux 8.9
- Red Hat Enterprise Linux 9.2 EUS
- Red Hat Enterprise Linux 9.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.