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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.