[PlanetCCRMA] do I really have to downgrade the kernel?

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Tue Feb 3 13:32:01 2004


> > Perhaps install kernel-2.4.24 to get in sync with the requested
> > redhat kernel?
> 
> Sorry to keep bothering you all with this... the same things happen both
> when installing the latest kernel, and the one it asks for:
> 
> [root@mushroom root]# apt-get install kernel#2.4.24-1.ll.rh90.ccrma
> Reading Package Lists... Done
> Building Dependency Tree... Done
> You might want to run `apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>   midishare-kernel-2.4.20-24.1.caps.rh90.ccrma: Depends:
> kernel-version-i686 (=
> 2.4.20-24.1.caps.rh90.ccrma)
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
> [root@mushroom root]# apt-get install kernel#2.4.20-24.1.caps.rh90.ccrma
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following NEW packages will be installed:
>   kernel#2.4.20-24.1.caps.rh90.ccrma
> 0 packages upgraded, 1 newly installed, 0 removed and 50 not upgraded.
> Need to get 0B/14.0MB of archives.
> After unpacking 32.2MB of additional disk space will be used.
> Executing RPM (-ivh)...
> Preparing...                ###########################################
> [100%]
>         package kernel-2.4.22-6.ll.rh90 (which is newer than
> kernel-2.4.20-24.1.caps.rh90.ccrma) is already installed
> E: Sub-process /bin/rpm returned an error code (1)
> 
> Is there any way I can get apt-get to actually do anything?  This also
> happens with apt-get -f.

There are a couple of issues in this thread. First, upgrading kernels.
It is better to upgrade a kernel (and the matching alsa drivers) by
saying:
  apt-get install planetccrma-core
(or whatever you installed originally). 

Why? If you use apt-get dist-upgrade the dependencies are satisfied with
the first kernel apt finds, which is usually the wrong one :-(

Second, you have an out of date /etc/apt/apt.conf. Make sure that you
have this line:

    Install-Options { "--oldpackage" };

in your /etc/apt/apt.conf. Otherwise you have to use the full install
command for kernels as outlined in the installation instructions for the
kernels. 

If you have "--oldpackage" in your apt.conf then this error will not
happen:

> package kernel-2.4.22-6.ll.rh90 (which is newer than
> kernel-2.4.20-24.1.caps.rh90.ccrma) is already installed
> E: Sub-process /bin/rpm returned an error code (1)

and rpm will be able to install the packages. 

So:
a) fix your apt.conf
b) apt-get update
c) apt-get check
c1) if there are errors (unmet dependencies)
    apt-get -f install
c2) if apt-get check does not print errors
    apt-get install planetccrma-core
    to update to the latest kernel
 
If you do NOT want to upgrade your kernel comment out the repository
line in /etc/apt/sources.list that contains "planetcore" and do an
"apt-get update". This will limit the upgrades to the applications (but
you have to have a Planet CCRMA kernel and alsa already installed, of
course). 

Hope this clarifies things a bit...
-- Fernando