Httpd yum update fails with "error: unpacking of archive failed "

Solution Verified - Updated -

Issue

  • yum update fails with one of the following errors:

        Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
        Error unpacking rpm package httpd-2.4.6-97.el7_9.x86_64
        error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename
        Uploading Package Profile
        Loaded plugins: langpacks, product-id, subscription-manager
        httpd-2.4.6-67.el7_4.6.x86_64 was supposed to be removed but is not!
    
        Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
        Error unpacking rpm package httpd-2.4.6-97.el7_9.x86_64
        error: unpacking of archive failed on file /etc/httpd/modules: cpio: rename
        Uploading Package Profile
        Loaded plugins: langpacks, product-id, subscription-manager
        httpd-2.4.6-67.el7_4.6.x86_64 was supposed to be removed but is not!
    
        Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
        Error unpacking rpm package httpd-2.4.6-97.el7_9.x86_64
        error: unpacking of archive failed on file /etc/httpd/run: cpio: rename
        Uploading Package Profile
        Loaded plugins: langpacks, product-id, subscription-manager
        httpd-2.4.6-67.el7_4.6.x86_64 was supposed to be removed but is not!
    

Environment

  • Red Hat Enterprise Linux
    • 7.x

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