[PlanetCCRMA] apt-get upgrade just broke my rh9 system

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Sat Jun 21 14:55:02 2003


> Executing RPM (-Uvh)...
> Preparing...                ###########################################
> [100%]
>    1:alsa-driver            ########################################### [ 
> 8%]
>    2:alsa-kernel-2.4.20-18.1########################################### [
> 17%]
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.20-18.1.caps/kernel/sound/snd-usb-audio.o
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.20-18.1.caps/kernel/sound/snd.o
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.20-18.1.caps/kernel/sound/snd-usb-audio.o
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.20-18.1.caps/kernel/sound/snd.o

> That's alsa-kernel-2.4.20-18.1.caps-0.9.4-2.cvs on RH9.
> 
> Planetedge is in my sources list. But that doesn't seem to be the problem.

Do you have planetccrma-core-redhat installed? Do you have the
2.4.20-18.1.caps kernel installed? Here's what I get:

# apt-get install planetccrma-core-redhat
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  alsa-kernel-2.4.20-18.1.caps kernel#2.4.20-18.1.caps
The following NEW packages will be installed:
  alsa-kernel-2.4.20-18.1.caps kernel#2.4.20-18.1.caps
planetccrma-core-redhat
0 packages upgraded, 3 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/15.0MB of archives.
After unpacking 34.9MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Executing RPM (-ivh)...
Preparing...                ###########################################
[100%]
   1:kernel                 ###########################################
[100%]
Executing RPM (-Uvh)...
Preparing...                ###########################################
[100%]
   1:alsa-kernel-2.4.20-18.1###########################################
[ 50%]
   2:planetccrma-core-redhat###########################################
[100%]

Checking again:
 /sbin/depmod -F /boot/System.map-2.4.20-18.1.caps -a 2.4.20-18.1.caps
and no errors reported, this is on an i686 machine. 

Ohhh...

I think I _may_ know what happened!!

You had Planetedge in the sources.list. And maybe you had the
sources.list pointing to the 8.0 version for the kernel (I think at the
very beginning there was no 9 there but I can't remember). And now you
fixed the sources.list according to my instructions and you are pointing
to the 9 version (this is all just a guess). So maybe you are mixing
stuff without knowing and apt is not complaining, but the symbols are
wrong because they point to those compiled with another kernel...

Sigh. You try but you never win :-(

See what build date you have in your kernel, the one I just reinstalled
to test says (do an rpm -q -i to see this info):

Build Date: Wed 04 Jun 2003 06:33:22 PM PDT

(this is for the i686 kernel, might be different for other archs)

Anyway, if this is the problem one way to fix it would be to boot into
another kernel temporarily, erase the offending packages and install the
right ones. The contents of sources.list should be:

rpm file:///usr/ccrma/web/html/planetccrma/apt redhat/9/en/i386 os
updates
rpm file:///usr/ccrma/web/html/planetccrma/apt redhat/7.x/en/i386
planetccrma
rpm file:///usr/ccrma/web/html/planetccrma/apt redhat/9/en/i386
planetccrma
rpm file:///usr/ccrma/web/html/planetccrma/apt redhat/9/en/i386
planetcore
rpm file:///usr/ccrma/web/html/planetccrma/apt redhat/9/en/i386
planetedge

(currently there's nothing in planetedge)
Do an "apt-get update"

Install planetccrma-core-redhat (this will ensure you have the right
dependencies for the rest)
  apt-get install planetccrma-core-redhat
Then erase both the kernel and alsa kernel modules:
  rpm -e --nodeps kernel-2.4.20-18.1.caps alsa-kernel-2.4.20-18.1.caps
And reinstall both again:
  apt-get -f install

That should pull in the kernel and alsa modules from the same repository
and things should be fine again. I hope. 

Just when I thought this could never happen again..
-- Fernando