Running the install package to upgrade CentOs in virtualmin gives the following unpacking error so it won't install.
Now updating filesystem .. Installing package(s) with command yum -y install filesystem .. Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: ftp.plusline.de * centosplus: ftp.plusline.de * extras: ftp.plusline.de * updates: ftp.plusline.de Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package filesystem.x86_64 0:2.4.0-3.el5.centos set to be updated --> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository SizeUpdating: filesystem x86_64 2.4.0-3.el5.centos base 1.0 M
Transaction SummaryInstall 0 Package(s) Upgrade 1 Package(s)
Total download size: 1.0 M Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : filesystem 1/2Error unpacking rpm package filesystem-2.4.0-3.el5.centos.x86_64
error: unpacking of archive failed on file /var/mail: cpio: rename
Failed: filesystem.x86_64 0:2.4.0-3.el5.centos
Complete! .. install failed!
No packages were installed. Check the messages above for the cause of the error.
Any help greatly appreciated.
Many thanks
Pete...
Comments
Submitted by andreychek on Thu, 08/16/2012 - 10:37 Comment #1
Howdy -- what output do you receive if you run these two commands:
df -h
ls -ld /var/mail
Submitted by pete007 on Thu, 08/16/2012 - 10:51 Comment #2
Hi Andrey
Plenty of disc space 620GB Free
does that shed any more light on the problem..?
Many thanks for your help.
Pete...
Submitted by andreychek on Thu, 08/16/2012 - 10:56 Comment #3
Hmm, I don't see anything unusual there.
What if you log in over SSH as root, and run this command:
yum update
Are you able to perform the update from the command line?
Submitted by pete007 on Thu, 08/16/2012 - 11:02 Comment #4
This is from the webmin command shell...
Dependencies Resolved
================================================================================
Package Arch Version Repository SizeUpdating: filesystem x86_64 2.4.0-3.el5.centos base 1.0 M
Transaction SummaryInstall 0 Package(s) Upgrade 1 Package(s)
Total download size: 1.0 M Is this ok [y/N]: Exiting on user Command Complete!
Submitted by andreychek on Thu, 08/16/2012 - 11:06 Comment #5
You'll need to enter a "y" at the prompt there, which you can't do from the command shell... are you by chance able to use something like Putty to access the command line over SSH?
Submitted by pete007 on Thu, 08/16/2012 - 11:12 Comment #6
SSH via Putty same error message...
Transaction Test Succeeded Running Transaction Updating : filesystem 1/2 Error unpacking rpm package filesystem-2.4.0-3.el5.centos.x86_64 error: unpacking of archive failed on file /var/mail: cpio: rename
Failed: filesystem.x86_64 0:2.4.0-3.el5.centos
Complete! [root@ethoshub ~]#
Submitted by pete007 on Thu, 08/16/2012 - 14:31 Comment #7
If it helps shed any more light on the problem I now seem to have a series of spurious simbolic links in the /var directory that have appeared directly below the mail folder - see attached screenshot...
Many thanks
Pete...
Submitted by andreychek on Thu, 08/16/2012 - 17:11 Comment #8
Hmm, that's all fairly unusual...
What output do you receive if you run this command:
dmesg | tail -30
That will show if there any any kernel errors that have been reported.
Submitted by pete007 on Wed, 08/22/2012 - 18:36 Comment #10
Any ideas how this problem can be resolved..?
Very many thanks
Pete...
Submitted by JamieCameron on Wed, 08/22/2012 - 19:11 Comment #11
Does the
/var/mail
directory contain anything on your system? If not, can you delete and re-create it with :rmdir /var/mail
mkdir /var/mail
Submitted by pete007 on Fri, 08/24/2012 - 09:05 Comment #12
Hi Jamie
Yes, it's got all my mail in it! :)
But following along your same train of thought I renamed it mail_temp and created a new mail directory.
I tried again and got the same error.
I then deleted the new mail directory I'd just created and ran it again and it worked fine!!! :)
Running Transaction Updating : filesystem 1/2 Cleanup : filesystem 2/2
Updated:
Complete! .. install complete.
Successfully installed 1 packages.
So I then renamed mail_temp back to mail and hopefully everything will still be working normally.
Very strange but at least we have one solution now.
All the very best
Pete...
Submitted by andreychek on Fri, 08/24/2012 - 09:44 Comment #13
Hmm, it shouldn't actually be using /var/mail for email -- in theory that would be going to the Maildir directories within /home.
I agree with you though, that's all very odd!
What output do you receive if you run these two commands:
echo foo > /var/mail/bar
cat /var/mail/bar
That's just a quick test to verify that the filesystem is working, that second command should display the text "foo".
Submitted by pete007 on Fri, 08/24/2012 - 11:32 Comment #14
Yes, that seems to work...
But /var/mail is now listed as a symbolic link to /var/spool/ whereas before it was listed as a folder.
Very strange... At least we solved the original problem and this one is probably left well alone now! :)
Many thanks for your help...
Pete...
Submitted by JamieCameron on Fri, 08/24/2012 - 11:58 Comment #15
Ok, that explains it - usually /var/mail is a link to /var/spool/mail , but on your system it was a directory. That's why the
filesystem
package update failed.Submitted by pete007 on Fri, 08/24/2012 - 13:18 Comment #16
Okay, great... glad we got to the bottom of that one.
Many thanks again for your help.
All the best
Pete...