Hey folks,
I'm trying to either upgrade an nvidia-kernel-2.4.24-1-686 Debian
package or get rid of it.
The existing package is 1.0.4496-2 and I built it against the
kernel-headers-2.4.24-1-686 headers using the nvidia-kernel-source
scripts (debian/rules binary_modules).
Debian is now distributing nvidia-kernel-2.4.24-1-686_1.0.5336+1
(presumably in non-free) and I'm trying to upgrade.
I can't upgrade, remove or reinstall this pacakge (see full errors below).
The major problem seems to be in the post-removal script:
cat: alsa: No such file or directory
The closest Google match I can find is
http://www.mail-archive.com/[EMAIL PROTECTED]/msg81130.html
and I've made sure /etc/modutils/alsa exists on my system.
I know I can tell dpkg to force the removal of the package even though a
reinstall is recommended (although... maybe it will try running the
post-remove again!), but I want to know if there's a cleaner way out of
this.
I've also tried strace-ing the dpkg processes to find out which
particular 'alsa' file it is seeking, all strace lines looking for
'alsa' are at the end of the mail -- I don't really know how to read
strace output :(
--- Error messages ---
Error when attempting upgrade:
# dpkg -i nvidia-kernel-2.4.24-1-686_1.0.5336+1_i386.deb
(Reading database ... 106541 files and directories currently installed.)
Preparing to replace nvidia-kernel-2.4.24-1-686 1.0.4496-2 (using
nvidia-kernel-2.4.24-1-686_1.0.5336+1_i386.deb) ...
Unpacking replacement nvidia-kernel-2.4.24-1-686 ...
cat: alsa: No such file or directory
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
cat: alsa: No such file or directory
dpkg: error processing nvidia-kernel-2.4.24-1-686_1.0.5336+1_i386.deb (--install):
subprocess new post-removal script returned error exit status 1
cat: alsa: No such file or directory
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
nvidia-kernel-2.4.24-1-686_1.0.5336+1_i386.deb
Error when removing existing package:
# dpkg --purge remove nvidia-kernel-2.4.24-1-686
dpkg - warning: ignoring request to remove remove which isn't installed.
dpkg: error processing nvidia-kernel-2.4.24-1-686 (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
nvidia-kernel-2.4.24-1-686
Error when reinstalling original .deb file:
# dpkg -i nvidia-kernel-2.4.24-1-686_1.0.4496-2_i386.deb
Selecting previously deselected package nvidia-kernel-2.4.24-1-686.
(Reading database ... 106541 files and directories currently installed.)
Preparing to replace nvidia-kernel-2.4.24-1-686 1.0.4496-2 (using
nvidia-kernel-2.4.24-1-686_1.0.4496-2_i386.deb) ...
Unpacking replacement nvidia-kernel-2.4.24-1-686 ...
cat: alsa: No such file or directory
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
cat: alsa: No such file or directory
dpkg: error processing nvidia-kernel-2.4.24-1-686_1.0.4496-2_i386.deb (--install):
subprocess new post-removal script returned error exit status 1
cat: alsa: No such file or directory
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
--- strace mentions of alsa ---
open("/var/lib/dpkg/info/gstreamer-alsa.list", O_RDONLY|O_LARGEFILE) = 7
open("/var/lib/dpkg/info/vlc-plugin-alsa.list", O_RDONLY|O_LARGEFILE) = 7
open("/var/lib/dpkg/info/gnome-alsamixer.list", O_RDONLY|O_LARGEFILE) = 7
open("/var/lib/dpkg/info/alsa-utils.list", O_RDONLY|O_LARGEFILE) = 7
read(7, "/.\n/usr\n/usr/sbin\n/usr/sbin/alsa"..., 826) = 826
open("/var/lib/dpkg/info/alsa-source.list", O_RDONLY|O_LARGEFILE) = 7
read(7, "/.\n/usr\n/usr/src\n/usr/src/alsa-d"..., 340) = 340
open("/var/lib/dpkg/info/alsa-base.list", O_RDONLY|O_LARGEFILE) = 7
waitpid(577, cat: alsa: No such file or directory
waitpid(667, cat: alsa: No such file or directory
waitpid(747, cat: alsa: No such file or directory
write(7, " | libesd-alsa0 (>= 0.2.29-1), l"..., 8192) = 8192
write(7, "put\nConflicts: alsaplayer-oss (<"..., 8192) = 8192
write(7, "| libesd-alsa0 (>= 0.2.22-4), li"..., 8192) = 8192
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html