YUM Updating Failed at noarch package on CentOS

cwuser

Active Member
Jun 29, 2007
26
0
51
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

[email protected] [~]# 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!
[email protected] [~]#

<<<< End

Thanks
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
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:

cwuser

Active Member
Jun 29, 2007
26
0
51
Here are the outputs, thank:


Code:
[email protected] [~]# lsattr /etc/services
----i--A----- /etc/services
[email protected] [~]# ls -l /etc/services
-rw-r--r-- 1 root 362031 Feb 23  2006 /etc/services
[email protected] [~]# 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 a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.