Yum/RPM Update Fails with Error unpacking of archive failed on file <File_path> cpio rename
(Doc ID 2491249.1)
Last updated on FEBRUARY 24, 2023
Applies to:
Linux OS - Version Oracle Linux 6.0 and laterLinux x86-64
Symptoms
Yum update fails for some RPM with below error:
Error unpacking rpm package <RPM>
error: unpacking of archive failed on file <FILE NAME>: cpio: rename
<RPM> was supposed to be removed but is not!
E.g.,
# yum update chkconfig*
Loaded plugins: langpacks, rhnplugin
This system is receiving updates from Spacewalk server.
Resolving Dependencies
--> Running transaction check
---> Package chkconfig.x86_64 0:1.3.61-5.el7_2.1 will be updated
---> Package chkconfig.x86_64 0:1.7.4-1.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Updating:
chkconfig x86_64 1.7.4-1.el7 mc-ol7-base-x86_64 181 k
Transaction Summary
=============================================================================================================================
Upgrade 1 Package
Total download size: 181 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
chkconfig-1.7.4-1.el7.x86_64.rpm | 181 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : chkconfig-1.7.4-1.el7.x86_64 1/2
Error unpacking rpm package chkconfig-1.7.4-1.el7.x86_64
error: unpacking of archive failed on file /etc/rc2.d: cpio: rename
chkconfig-1.3.61-5.el7_2.1.x86_64 was supposed to be removed but is not!
Verifying : chkconfig-1.3.61-5.el7_2.1.x86_64 1/2
Verifying : chkconfig-1.7.4-1.el7.x86_64 2/2
Failed:
chkconfig.x86_64 0:1.3.61-5.el7_2.1 chkconfig.x86_64 0:1.7.4-1.el7
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |