LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-31-2006, 05:55 AM   #1
neiljt
LQ Newbie
 
Registered: Nov 2002
Location: Canewdon, UK
Distribution: CentOS
Posts: 27

Rep: Reputation: 15
Yum: unpacking of archive failed


I think I did a Bad Thing when I typed "yum update", and walked away for a day or two. On returning to the session, I saw there were updates available (as had no doubt been reported just after my update request). In the future, at the "Y/N" prompt I will always type "N" and start again, I promise. On this occasion, however, I recklessly typed "Y". So here I am.

Now when I type "yum update", here's what happens:

Code:
root@blix:~> yum update
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  72 kB    00:03
update    : ################################################## 186/186
Added 186 new packages, deleted 0 old in 1.37 seconds
primary.xml.gz            100% |=========================| 641 kB    00:14
base      : ################################################## 1646/1646
Added 1646 new packages, deleted 0 old in 8.41 seconds
primary.xml.gz            100% |=========================|  157 B    00:00
Added 0 new packages, deleted 0 old in 0.00 seconds
primary.xml.gz            100% |=========================|  40 kB    00:02
extras    : ################################################## 185/185
Added 185 new packages, deleted 0 old in 0.74 seconds
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for samba-common to pack into transaction set.
samba-common-3.0.10-1.4E. 100% |=========================|  36 kB    00:02
---> Package samba-common.i386 0:3.0.10-1.4E.6.2 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 samba-common            i386       3.0.10-1.4E.6.2  update            5.0 M

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       1 Package(s)
Remove       0 Package(s)
Total download size: 5.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): samba-common-3.0.1 100% |=========================| 5.0 MB    02:07
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : samba-common                 ######################### [1/2]
error: unpacking of archive failed on file /lib/libnss_wins.so.2;44cdc11c: cpio: write

Updated: samba-common.i386 0:3.0.10-1.4E.6.2
Complete!
I'm running CentOS 4.3 x86_64, a (full, i.e. all packages) default installation, so no manual customisation of yum.conf, or /etc/yum.repos.d/*.

I've run "yum clean all", but this doesn't clear the problem.

The "good" news is that Samba seems to be running OK for now, but I'm concerned that the samba-common package has not been updated:

Code:
root@blix:~> rpm -q samba-common
samba-common-3.0.10-1.4E.6
Compare this with other samba packages:

Code:
root@blix:~> rpm -q samba-client
samba-client-3.0.10-1.4E.6.2
root@blix:~> rpm -q samba-swat
samba-swat-3.0.10-1.4E.6.2
Since the main purpose of this box is as a file server for Windows clients, I'd like to get this resolved before it bites me!

Can anyone here see what's going on, or offer any hints?

Thanks for any suggestions!
 
Old 08-01-2006, 05:37 AM   #2
neiljt
LQ Newbie
 
Registered: Nov 2002
Location: Canewdon, UK
Distribution: CentOS
Posts: 27

Original Poster
Rep: Reputation: 15
Following up my own post, in case it's of use or interest to anyone:

Since yum didn't want to fetch the latest version of samba-common, I fetched samba-common-3.0.10-1.4E.6.2.x86_64.rpm manually, and updated with rpm -Uvh <what-i-just-said>. Seemed to work OK, but when I checked, I saw:

Code:
root@blix:~> rpm -q samba-common
samba-common-3.0.10-1.4E.6.2
samba-common-3.0.10-1.4E.6.2
which struck me as odd. So I did

Code:
root@blix:~> echo "%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}" >> ~/.rpmmacros
then

Code:
root@blix:~> rpm -q samba-common
samba-common-3.0.10-1.4E.6.2.x86_64
samba-common-3.0.10-1.4E.6.2.i386
which makes more sense, and "yum update" once again behaves normally. "rpm -qa" shows quite a few i368 arch packages exist in parallel with x86_64 versions, so although slightly surprising, I guess this is normal!

Once again, Samba seems to be running OK, so for me this seems resolved. I'd be interested in any comments.
 
  


Reply

Tags
centos4, yum update


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum failed dependencies? jojojo Linux - Newbie 2 06-15-2006 03:02 PM
coreutils update: fedora4 - error: unpacking of archive failed - operation not permit starms Linux - Security 4 06-06-2006 11:39 AM
yum update failed piforever Linux - Security 2 12-26-2005 10:06 PM
yum update failed piforever Fedora 6 12-25-2005 12:48 AM
unpacking of archive failed: cpio: read failed-input/output error rafc Linux - Newbie 0 04-21-2004 10:03 AM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration