postinst fails: /proc/asound/cardconfigure/id doesn't exist

Bug #664922 reported by Moritz Naumann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: alsa-utils

The alsa-utils post installation script fails for me.

After adding "set -x" to the 4th line of /var/lib/dpkg/info/alsa-utils.postinst I get:

# dpkg --configure -a
Setting up alsa-utils (1.0.23-2ubuntu3.3) ...
+ S=/etc/modprobe.d/sound
+ [ -f /etc/modprobe.d/sound ]
+ dpkg --compare-versions 1.0.23-2ubuntu3.2 le 1.0.23-2ubuntu3.3
+ cat /proc/asound/cardconfigure/id
+ id=
dpkg: error processing alsa-utils (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 alsa-utils
#

As to be expected:
# stat /proc/asound/cardconfigure/id
stat: cannot stat `/proc/asound/cardconfigure/id': No such file or directory
#

Assuming that $1 would contain the ALSA card ID here seems wrong, since this $1 is cleary the "configure" argument to the postinst script in this context. Instead the thing to do here is, I assume, for each ALSA card, to check whether it is a "Panda" or "SDP4430" and (only) for every one that is, to execute "alsactl init <card ID>". Patch attached.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: alsa-utils 1.0.23-2ubuntu3.3
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Fri Oct 22 05:22:30 2010
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: alsa-utils

Revision history for this message
Moritz Naumann (mnaumann) wrote :
Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 664922] Re: postinst fails: /proc/asound/cardconfigure/id doesn't exist

 duplicate 664645

Revision history for this message
Moritz Naumann (mnaumann) wrote :

Sorry, scratch that first patch, it was buggy, too. This one actually works now. But since this bug is already fixed in #664645 this is just to correct my earlier mistake.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.