yum update failed with "unpacking of archive failed on file <dir>: cpio: chown failed "

Solution Verified - Updated -

Issue

  • Update of httpd package using yum fails with following error :-
Error unpacking rpm package httpd-<version>x86_64
warning: /etc/httpd/conf/magic created as /etc/httpd/conf/magic.rpmnew
error: unpacking of archive failed on file /etc/rc.d/init.d/httpd: cpio: rename

        Failed:
          http-<version>

Environment

  • Red Hat Enterprise Linux (RHEL All Versions)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content