Why reinstallation/upgrade of packages getting failed with error "unpacking of archive failed on file XXX: cpio: utime failed"
Issue
-
Getting below error while reinstalling or upgrading package through
yum/dnf.Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : pam-1.3.1-37.el8_10.x86_64 1/2 Error unpacking rpm package pam-1.3.1-37.el8_10.x86_64 Verifying : pam-1.3.1-37.el8_10.x86_64 1/2 Verifying : pam-1.3.1-36.el8_10.x86_64 2/2 Installed products updated. Failed: pam-1.3.1-36.el8_10.x86_64 pam-1.3.1-37.el8_10.x86_64 Error: Transaction failed -
Getting below error while reinstalling package through
rpm.[root@localhost ~]# rpm --reinstall sudo-1.9.5p2-1.el8_9.x86_64.rpm error: unpacking of archive failed on file /etc/pam.d/sudo: cpio: utime failed - No such file or directory error: sudo-1.9.5p2-1.el8_9.x86_64: install failed error: sudo-1.9.5p2-1.el8_9.x86_64: erase skipped
Environment
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.