Translated message

A translation of this page exists in English.

yum/dnf/rpm の更新が error: unpacking of archive failed on file /abc/xyz: cpio: rename で失敗する

Solution In Progress - Updated -

Issue

  • Red Hat Enterprise Linux 6glibc パッケージを更新しようとすると、以下のような cpio: rename エラーが発生して失敗します。

    [root ~]# yum update glibc
    ...
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating   : glibc-2.12-1.149.el6_6.5.x86_64                                  1/8
    Error unpacking rpm package glibc-2.12-1.149.el6_6.5.x86_64
    error: unpacking of archive failed on file /lib64/ld-2.12.so: cpio: rename
      Updating   : glibc-common-2.12-1.149.el6_6.5.x86_64                           2/8
    Error unpacking rpm package glibc-common-2.12-1.149.el6_6.5.x86_64
    error: unpacking of archive failed on file /usr/bin/catchsegv: cpio: rename
      Updating   : glibc-devel-2.12-1.149.el6_6.5.x86_64                            3/8
    Error unpacking rpm package glibc-devel-2.12-1.149.el6_6.5.x86_64
    error: unpacking of archive failed on file /usr/lib64/Mcrt1.o: cpio: rename
      Updating   : glibc-2.12-1.149.el6_6.5.i686                                    4/8
    Error unpacking rpm package glibc-2.12-1.149.el6_6.5.i686
    error: unpacking of archive failed on file /lib/i686/nosegneg/libc-2.12.so: cpio: rename
    glibc-2.12-1.132.el6.x86_64 was supposed to be removed but is not!
    
      Verifying  : glibc-2.12-1.132.el6.x86_64                                      1/8
    glibc-devel-2.12-1.132.el6.x86_64 was supposed to be removed but is not!
      Verifying  : glibc-devel-2.12-1.132.el6.x86_64                                2/8
    glibc-common-2.12-1.132.el6.x86_64 was supposed to be removed but is not!
      Verifying  : glibc-common-2.12-1.132.el6.x86_64                               3/8
    glibc-2.12-1.132.el6.i686 was supposed to be removed but is not!
      Verifying  : glibc-2.12-1.132.el6.i686                                        4/8
      Verifying  : glibc-devel-2.12-1.149.el6_6.5.x86_64                            5/8
      Verifying  : glibc-common-2.12-1.149.el6_6.5.x86_64                           6/8
      Verifying  : glibc-2.12-1.149.el6_6.5.i686                                    7/8
      Verifying  : glibc-2.12-1.149.el6_6.5.x86_64                                  8/8
    
    Failed:
      glibc.i686 0:2.12-1.132.el6           glibc.x86_64 0:2.12-1.132.el6
      glibc.i686 0:2.12-1.149.el6_6.5       glibc.x86_64 0:2.12-1.149.el6_6.5
      glibc-common.x86_64 0:2.12-1.132.el6  glibc-common.x86_64 0:2.12-1.149.el6_6.5
      glibc-devel.x86_64 0:2.12-1.132.el6   glibc-devel.x86_64 0:2.12-1.149.el6_6.5
    
  • Red Hat Enterprise Linux 8setup パッケージを更新しようとすると、以下のような cpio: rename failed エラーで失敗します。

    [root ~]# dnf update setup
    ... output omitted ...
    Error unpacking rpm package setup-2.12.2-7.el8.noarch
      Upgrading        : dnf-data-4.7.0-11.el8.noarch
    error: unpacking of archive failed on file /etc/shadow.rpmnew: cpio: rename failed - Permission denied
    error: setup-2.12.2-7.el8.noarch: install failed
    ... output omitted ...
    Failed:
      setup-2.12.2-6.el8.noarch              setup-2.12.2-7.el8.noarch             Error: Transaction failed
    [root ~]# 
    

Environment

  • Red Hat Enterprise Linux 6/7/8
  • yumdnfrpm ソフトウェア

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