The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

YUM Updating Failed at noarch package on CentOS

Discussion in 'General Discussion' started by cwuser, Jan 21, 2012.

  1. cwuser

    cwuser Active Member

    Joined:
    Jun 29, 2007
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    YUM Updates lately ends up with failed error at noarch rmp package. Please help me how to fix it.

    This is from ssh output

    >>>> Start

    root@v12ca [~]# yum update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirror.san.fastserv.com
    * extras: mirror.hmc.edu
    * updates: mirror.hmc.edu
    base | 1.1 kB 00:00
    extras | 2.1 kB 00:00
    updates | 1.9 kB 00:00
    Excluding Packages in global exclude list
    Finished
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package setup.noarch 0:2.5.58-7.el5 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Updating:
    setup noarch 2.5.58-7.el5 base 125 k

    Transaction Summary
    ================================================================================
    Install 0 Package(s)
    Upgrade 1 Package(s)

    Total download size: 125 k
    Is this ok [y/N]: y
    Downloading Packages:
    setup-2.5.58-7.el5.noarch.rpm | 125 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Updating : setup 1/2
    Error unpacking rpm package setup-2.5.58-7.el5.noarch
    warning: /etc/bashrc created as /etc/bashrc.rpmnew
    warning: /etc/csh.cshrc created as /etc/csh.cshrc.rpmnew
    warning: /etc/csh.login created as /etc/csh.login.rpmnew
    warning: /etc/profile created as /etc/profile.rpmnew
    error: unpacking of archive failed on file /etc/services: cpio: rename

    Failed:
    setup.noarch 0:2.5.58-7.el5

    Complete!
    root@v12ca [~]#

    <<<< End

    Thanks
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    387
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hello,

    Please provide the output of the following commands here..

    lsattr /etc/services

    ls -l /etc/services

    yum repolist all

    Thank you,
    Nibin.
     
    #2 NixTree, Jan 22, 2012
    Last edited: Jan 22, 2012
  3. cwuser

    cwuser Active Member

    Joined:
    Jun 29, 2007
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Here are the outputs, thank:


    Code:
    root@v12ca [~]# lsattr /etc/services
    ----i--A----- /etc/services
    root@v12ca [~]# ls -l /etc/services
    -rw-r--r-- 1 root 362031 Feb 23  2006 /etc/services
    root@v12ca [~]# yum repolist all
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror-la.7x24web.net
     * extras: mirror.5ninesolutions.com
     * updates: mirrors.usc.edu
    Excluding Packages in global exclude list
    Finished
    repo id                     repo name                         status
    C5.0-base                   CentOS-5.0 - Base                 disabled
    C5.0-centosplus             CentOS-5.0 - Plus                 disabled
    C5.0-extras                 CentOS-5.0 - Extras               disabled
    C5.0-updates                CentOS-5.0 - Updates              disabled
    C5.1-base                   CentOS-5.1 - Base                 disabled
    C5.1-centosplus             CentOS-5.1 - Plus                 disabled
    C5.1-extras                 CentOS-5.1 - Extras               disabled
    C5.1-updates                CentOS-5.1 - Updates              disabled
    C5.2-base                   CentOS-5.2 - Base                 disabled
    C5.2-centosplus             CentOS-5.2 - Plus                 disabled
    C5.2-extras                 CentOS-5.2 - Extras               disabled
    C5.2-updates                CentOS-5.2 - Updates              disabled
    C5.3-base                   CentOS-5.3 - Base                 disabled
    C5.3-centosplus             CentOS-5.3 - Plus                 disabled
    C5.3-extras                 CentOS-5.3 - Extras               disabled
    C5.3-updates                CentOS-5.3 - Updates              disabled
    C5.4-base                   CentOS-5.4 - Base                 disabled
    C5.4-centosplus             CentOS-5.4 - Plus                 disabled
    C5.4-extras                 CentOS-5.4 - Extras               disabled
    C5.4-updates                CentOS-5.4 - Updates              disabled
    C5.5-base                   CentOS-5.5 - Base                 disabled
    C5.5-centosplus             CentOS-5.5 - Plus                 disabled
    C5.5-extras                 CentOS-5.5 - Extras               disabled
    C5.5-updates                CentOS-5.5 - Updates              disabled
    C5.6-base                   CentOS-5.6 - Base                 disabled
    C5.6-centosplus             CentOS-5.6 - Plus                 disabled
    C5.6-extras                 CentOS-5.6 - Extras               disabled
    C5.6-updates                CentOS-5.6 - Updates              disabled
    base                        CentOS-5 - Base                   enabled: 2,587+118
    c5-media                    CentOS-5 - Media                  disabled
    centosplus                  CentOS-5 - Plus                   disabled
    contrib                     CentOS-5 - Contrib                disabled
    debug                       CentOS-5 - Debuginfo              disabled
    extras                      CentOS-5 - Extras                 enabled:    251+31
    updates                     CentOS-5 - Updates                enabled:    403+73
    repolist: 3,241
     
    #3 cwuser, Jan 22, 2012
    Last edited by a moderator: Jan 23, 2012
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It looks like the error message stems from the "/etc/services" file being immutable. You can run the following command to allow changes to the file:

    Code:
    # chattr -i /etc/services
    If you want to make it immutable again after updating your packages via YUM, you can run:

    Code:
    # chattr +i /etc/services
    Thank you.
     
  5. cwuser

    cwuser Active Member

    Joined:
    Jun 29, 2007
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Thank you Michael, it is resolved now by your advice.
     
Loading...

Share This Page