Problem/Error - Upgrade coreutils centos-5-x86_64

Support for security such as Firewalls and securing linux
maybe
Posts: 14
Joined: 2011/04/29 11:23:06

Problem/Error - Upgrade coreutils centos-5-x86_64

Post by maybe » 2011/04/29 11:41:32

I'm trying to upgrade coreutils but isn't working.. Someone can help me?

I'm running a VPS with centos-5-x86_64

[code]-bash-3.2# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.denit.net
* extras: ftp.nluug.nl
* rpmforge: ftp-stud.fht-esslingen.de
* updates: mirror.denit.net
base | 2.1 kB 00:00
extras | 2.1 kB 00:00
rpmforge | 1.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 coreutils.x86_64 0:5.97-23.el5_6.4 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
coreutils x86_64 5.97-23.el5_6.4 updates 3.5 M

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

Total download size: 3.5 M
Is this ok [y/N]: y
Downloading Packages:
coreutils-5.97-23.el5_6.4.x86_64.rpm | 3.5 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : coreutils 1/2
Error unpacking rpm package coreutils-5.97-23.el5_6.4.x86_64
error: unpacking of archive failed on file /bin/ls: cpio: rename

Failed:
coreutils.x86_64 0:5.97-23.el5_6.4

Complete![/code]

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by lystor » 2011/04/29 12:49:33

Show free disk space and memory:
[code]$ df
$ free[/code]

maybe
Posts: 14
Joined: 2011/04/29 11:23:06

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by maybe » 2011/04/29 13:00:03

[code]Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vzfs 62914560 7586880 55327680 13% /
none 327680 4 327676 1% /dev
-bash-3.2# free
total used free shared buffers cached
Mem: 655360 368564 286796 0 0 0
-/+ buffers/cache: 368564 286796
Swap: 0 0 0
[/code]

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by lystor » 2011/04/29 13:14:01

Try to download and install [url=http://pkgs.org/centos-5-rhel-5/centos-rhel-updates-x86_64/coreutils-5.97-23.el5_6.4.x86_64.rpm.html]coreutils-5.97-23.el5_6.4.x86_64.rpm[/url] manually:
[code]# wget http://mirror.centos.org/centos/5/updates/x86_64/RPMS/coreutils-5.97-23.el5_6.4.x86_64.rpm
# rpm -Uvh coreutils-5.97-23.el5_6.4.x86_64.rpm[/code]

maybe
Posts: 14
Joined: 2011/04/29 11:23:06

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by maybe » 2011/04/29 13:41:28

[code]-bash-3.2# rpm -Uvh coreutils-5.97-23.el5_6.4.x86_64.rpm
Preparing... ########################################### [100%]
1:coreutils ########################################### [100%]
error: unpacking of archive failed on file /bin/ls: cpio: rename failed - Operation not permitted
[/code]

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Problem/Error - Upgrade coreutils centos-5-x86_64

Post by gerald_clark » 2011/04/29 14:10:15

Your VPS has very little memory.
Shutdown all services such as http and mysqld, and try installing the RPM again.

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by lystor » 2011/04/29 15:49:00

[quote]
gerald_clark wrote:
Your VPS has very little memory.[/quote]
286Mb free (post #3). I think this is enough to update one package.

Please show /bin/ls attributes:
[code]$ lsattr /bin/ls[/code]

maybe
Posts: 14
Joined: 2011/04/29 11:23:06

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by maybe » 2011/04/29 18:00:27

[code]-bash-3.2# lsattr /bin/ls
----ia------- /bin/ls[/code]

I also disabled httpd and mysql as gerald_clark said but didn't worked...

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by pschaff » 2011/04/29 18:20:15

Good question [b]lystor[/b]! The file has immutable and append attributes. See "man chattr", but one must wonder how it got that way and what other issues you may encounter.

Might want to try[code]chattr -ia /bin/ls
lsattr /bin | grep "\-ia-"
rpm -V coreutils[/code]

maybe
Posts: 14
Joined: 2011/04/29 11:23:06

Re: Problem/Error - Upgrade coreutils centos-5-x86_64

Post by maybe » 2011/04/29 18:39:55

[code]-bash-3.2# chattr -ia /bin/ls
-bash-3.2# lsattr /bin | grep "\-ia-"
----ia------- /bin/ps
-bash-3.2# rpm -V coreutils
..5....T /bin/basename
..5....T /bin/cat
..5....T /bin/chgrp
..5....T /bin/chmod
..5....T /bin/chown
..5....T /bin/cp
..5....T /bin/cut
..5....T /bin/date
S.5....T /bin/dd
..5....T /bin/df
..5....T /bin/echo
..5....T /bin/env
..5....T /bin/false
..5....T /bin/link
..5....T /bin/ln
S.5..UG. /bin/ls
S.5..UG. /usr/bin/dir
S.5..UG. /usr/bin/md5sum
-bash-3.2# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.denit.net
* extras: ftp.nluug.nl
* rpmforge: ftp-stud.fht-esslingen.de
* updates: mirror.denit.net
base | 2.1 kB 00:00
extras | 2.1 kB 00:00
rpmforge | 1.1 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 400 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package coreutils.x86_64 0:5.97-23.el5_6.4 set to be updated
---> Package nss.x86_64 0:3.12.8-4.el5_6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
coreutils x86_64 5.97-23.el5_6.4 updates 3.5 M
nss x86_64 3.12.8-4.el5_6 updates 1.1 M

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

Total download size: 4.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): nss-3.12.8-4.el5_6.x86_64.rpm | 1.1 MB 00:00
(2/2): coreutils-5.97-23.el5_6.4.x86_64.rpm | 3.5 MB 00:00
--------------------------------------------------------------------------------
Total 6.1 MB/s | 4.6 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : nss 1/4
Updating : coreutils 2/4
Error unpacking rpm package coreutils-5.97-23.el5_6.4.x86_64
error: unpacking of archive failed on file /usr/bin/dir: cpio: rename
Cleanup : nss 3/4

Updated:
nss.x86_64 0:3.12.8-4.el5_6

Failed:
coreutils.x86_64 0:5.97-23.el5_6.4 [/code]

Post Reply