×
Back to ITRS Internal Only FAQ
Internal documentation only
This page has been marked as draft.
Infrastructure Agent Upgrade from 2.5 to 2.6
Problem Copied
A user encountered an error while attempting to upgrade the infrastructure-agent package from version 2.5 to 2.6. The error output is as follows:
chsh: Shell not changed.
Changing shell for infra-agent.
passwd: Libuser error at line: 124 - Invalid contents of lock `/etc/shadow.lock'.
Locking password for user infra-agent.
passwd: Error (password not set?)
error: %prein(infrastructure-agent-2.6.03251-1.el8.x86_64) scriptlet failed, exit status 255
Error in PREIN scriptlet in rpm package infrastructure-agent
Verifying : infrastructure-agent-2.6.03251-1.el8.x86_64 1/2
Verifying : infrastructure-agent-2.5.01984-1.el8.x86_64 2/2
Installed products updated.
Failed:
infrastructure-agent-2.5.01984-1.el8.x86_64 infrastructure-agent-2.6.03251-1.el8.x86_64
Error: Transaction failed
- Root cause: The infrastructure-agent package installation fails due to a stale shadow.lock file. This lock prevents simultaneous modifications to the password file (
/etc/shadow) during the upgrade process.
Solution Copied
- The issue was resolved by removing the
shadow.lockfile located at /etc/shadow.lock directory.
Related article Copied
["Geneos"]
["FAQ"]