Bug 124735 - up2date fails on dev-3.3.12-1.i386.rpm with mknod error
up2date fails on dev-3.3.12-1.i386.rpm with mknod error
Status: CLOSED WORKSFORME
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rpm (Show other bugs)
3.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-05-28 18:09 EDT by Chris Schamper
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-07-16 13:16:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
rpm -Uvv output for dev (29.46 KB, application/x-bzip2)
2004-06-01 09:12 EDT, Chris Schamper
no flags Details

  None (edit)
Description Chris Schamper 2004-05-28 18:09:17 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922

Description of problem:
May 28
coreutils-4.5.3-26
dev-3.3.8-1
dev-3.3.12-1


Virgin WS 3 install is unable to up2date. Up2date crashes on the dev
package with the following error:

-------------------
> up2date dev
 
Fetching package list for channel: rhel-i386-ws-3...
########################################
 
Fetching Obsoletes list for channel: rhel-i386-ws-3...
 
Fetching rpm headers...
########################################
 
Name                                    Version        Rel
----------------------------------------------------------
dev                                     3.3.12         1             
     i386                                                            
                    
 
 
Testing package set / solving RPM inter-dependencies...
########################################
dev-3.3.12-1.i386.rpm:      ########################## Done.
Preparing              ########################################### [100%]
 
Installing...
   1:dev                   
########################################### [100%]
There was a fatal RPM install error. The message was:
There was a rpm unpack error installing the package: dev-3.3.12-1

-------------------

Downloading the RPM does not help:

> md5sum dev-3.3.12-1.i386.rpm
bef3001b9f47f67e4cc4c48304d92df7  dev-3.3.12-1.i386.rpm

> rpm -Uvh dev-3.3.12-1.i386.rpm
Preparing...               
########################################### [100%]
   1:dev                   
########################################### [100%]
error: unpacking of archive failed on file
/dev/snd/controlC0;40b90782: cpio: mknod failed - No such file or
directory
-------------------

> ls -lh /bin/cpio
-rwxr-xr-x    1 root     root          51K Feb 14  2003 /bin/cpio

-------------------

> md5sum /bin/cpio
2d4ac6bff3509ac95a9500320a7766cf  /bin/cpio

-------------------

Suggestions?


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Install WS 3
2.su - (enter password)
3.up2date dev
    

Actual Results:  Unable to upgrade dev

Expected Results:  Able to upgrade dev

Additional info:
Comment 1 Tim Waugh 2004-05-28 18:51:57 EDT
The message:

/dev/snd/controlC0;40b90782: cpio: mknod failed - No such file or
directory

looks like the mknod() system call failed, not the mknod(1) command. 
Reassigning to cpio.
Comment 2 Jeff Johnson 2004-05-29 10:12:12 EDT
Hmmm, /dev/snd/* missing here too.

Reinstalling the dev package with --force appears to "fix".
Presumably mknod(2) has some check on permitted major/minor
and fails if not permitted, so the upgrade depends on what
kernel is running. That is entirely a guess ...

Reinstall the dev package with --force. If that doesn't fix,
please reopen this bug.
Comment 3 Chris Schamper 2004-06-01 08:42:40 EDT
># rpm -Uvh --force dev-3.3.12-1.i386.rpm
Preparing...               
########################################### [100%]
   1:dev                   
########################################### [100%]
error: unpacking of archive failed on file
/dev/snd/controlC0;40bdc981: cpio: mknod failed - No such file or
directory
Comment 4 Jeff Johnson 2004-06-01 08:52:24 EDT
Can you provide rpm -Uvv output please?
Comment 5 Chris Schamper 2004-06-01 09:12:37 EDT
Created attachment 100734 [details]
rpm -Uvv output for dev

This is the bzip2'd product of:
rpm -Uvv dev-3.3.12-1.i386.rpm
Comment 6 Chris Schamper 2004-06-01 09:15:42 EDT
Also seems this fellow also has / had the same issue
http://www.redhat.com/archives/redhat-list/2004-May/msg00586.html

There is more complaining in that post than detail, but it is a second
sighting none the less.

Thank you for the quick replies!
Comment 7 air_ogi 2004-06-03 18:03:41 EDT
I had the same problem on my Dell installed RHEL 3WS.
Dell installs ALSA, which links /dev/snd to /proc/asound/dev

Of course, doing mknod in /proc does not work.
I moved /dev/snd to /dev/snd.alsa, installed dev rpm and moved
snd.alsa back.

I am not sure if this is the same bug though.
Comment 8 Jeff Johnson 2004-06-04 09:34:12 EDT
Hmmm, if /dev/snd is a symlink, that would explain.

What does ls -l /dev/snd say? If not a directory, then
remove (or rename) and try rpm -Uvv dev-*.rpm again.
Comment 9 Chris Schamper 2004-07-16 13:15:29 EDT
The problem was exactly that there was a symlink. The method from
comment #7 fixes the bug.

Note You need to log in before you can comment on or make changes to this bug.