Problem:
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:
- The issue was resolved by removing the
shadow.lockfile located at /etc/shadow.lock directory.
Related article:
If you have any further questions:
- Please contact with our Client Services team via the chat service box available in any of our websites or via email to support@itrsgroup.com
- Make sure you provide to us:
- ANY LOG FILE OR DIAGNOSTIC
- ANY SCREENSHOT
- ANY VENDOR/VERSION OF WHAT THEY ARE TRYING TO CONNECT TO
- Any troubleshooting step already verified from the ones described in this article.
Comments
0 comments
Please sign in to leave a comment.