You’ll need to get your system back into a usable state. This was caused by filesystem corruption as your RPM database (/var/lib/rpm/Packages
) is corrupted, GPG keys in /etc/pki
are missing, CentOS/Redhat release file missing thus affecting $releasever macro expansion, and NSS is blown out the water.
getent passwd apache
would query /etc/nsswitch.conf
for the “passwd” field. In a normal system it looks like passwd: sss files systemd apnscpvwh
. It in turn looks at /etc/passwd
for the user apache.
This field isn’t missing unless /etc/passwd is corrupted. If /etc/passwd is corrupted, then your hard drive is on its way to binary heaven.