Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    16

    Default YUM Updating Failed at noarch package on CentOS

    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. #2
    Member
    Join Date
    Aug 2010
    Location
    India
    Posts
    238
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: YUM Updating Failed at noarch package on CentOS

    Hello,

    Please provide the output of the following commands here..

    lsattr /etc/services

    ls -l /etc/services

    yum repolist all

    Thank you,
    Nibin.
    Last edited by nibin; 01-22-2012 at 01:03 AM.

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    16

    Default Re: YUM Updating Failed at noarch package on CentOS

    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
    Last edited by cPanelMichael; 01-23-2012 at 01:43 AM. Reason: used the code tag for output

  4. #4
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    1,346
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: YUM Updating Failed at noarch package on CentOS

    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.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  5. #5
    Member
    Join Date
    Jun 2007
    Posts
    16

    Default Re: YUM Updating Failed at noarch package on CentOS

    Thank you Michael, it is resolved now by your advice.

Similar Threads & Tags
Similar threads

  1. Safe to install rpm/yum php package? (CentOS 5.6, cPanel 11.30.4)
    By lowboy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-28-2011, 05:46 AM
  2. CentOS 5.5 > 5.6 via yum
    By radeonpower in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-16-2011, 07:50 AM
  3. Centos - Yum Update -Y
    By offline in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-16-2008, 01:03 PM
  4. CentOS and YUM problems
    By Mark36ph in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-01-2008, 10:57 AM
  5. CentOS & Yum
    By jdarow in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-24-2006, 09:40 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube