FC5: Kernel updates don't work

Panu Matilainen pmatilai at laiskiainen.org
Wed Jun 14 01:14:11 PDT 2006


On Wed, 14 Jun 2006, Ralf Corsepius wrote:

> On Wed, 2006-06-14 at 06:09 +0200, Ralf Corsepius wrote:
>> On Tue, 2006-06-13 at 21:31 +0300, Panu Matilainen wrote:
>>> On Tue, 2006-06-13 at 06:20 +0200, Ralf Corsepius wrote:
>>>> Hi,
>>>>
>>>> What is the trick to get kernel updates functional with apt-get on FC5?
>>>>
>>>> On a machine having FC5 installed:
>>>> # rpm -qa 'kernel*' 'kmod*'
>>>> kernel-2.6.16-1.2122_FC5
>>>> kmod-nvidia-1.0.8762-1.2.6.16_1.2122_FC5
>>>>
>>>> # apt-get upgrade
>>>> Reading Package Lists... Done
>>>> Building Dependency Tree... Done
>>>> 0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
>>>>
>>>> # apt-get dist-upgrade
>>>> Reading Package Lists... Done
>>>> Building Dependency Tree... Done
>>>> Calculating Upgrade... Done
>>>> 0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
>>>>
>>>>
>>>> # apt-get install kmod-nvidia#1.0.8762-2.2.6.16_1.2133_FC5
>>>> Reading Package Lists... Done
>>>> Building Dependency Tree... Done
>>>> The following extra packages will be installed:
>>>>    kernel#2.6.16-1.2133_FC5 (2.6.16-1.2133_FC5)
>>>> The following NEW packages will be installed:
>>>>    kernel#2.6.16-1.2133_FC5 (2.6.16-1.2133_FC5)
>>>>    kmod-nvidia#1.0.8762-2.2.6.16_1.2133_FC5
>>>> (1.0.8762-2.2.6.16_1.2133_FC5)
>>>> 0 upgraded, 2 newly installed, 0 removed and 0 not upgraded.
>>>> Need to get 0B/15.7MB of archives.
>>>> After unpacking 40.7MB of additional disk space will be used.
>>>> ...
>>>>
>>>> WTH?
>>>
>>> Are you using the apt package from FE?
>>
>> I am using different setups and different version of apt-rpm in
>> parallel.
>
> I think, I've found the cause:
>
> In the setup above, I abbreviated too much. I actually had been using an
> alternative/testing version of apt (+ my apt*.rpm installed):
>
> So, I actually used:
> # /opt/apt-repomd/bin/apt-get -c /etc/apt/apt.conf ...
>
>
> # /opt/apt-repomd/bin/apt-config  -c /etc/apt/apt.conf dump
> reveals this:
> Dir::Bin::scripts "/opt/apt-repomd/share/apt/scripts"

Yeah.. side-effect from removing the hardcoded /usr/share/apt/scripts path 
from apt :)

> This directory and the scripts had not been present. Populating this
> directory with the scripts or symlinking
> /opt/apt-repomd to /usr/share/apt
> resolves the problem.
>
>
> Investigating this issue, another issue surfaced:
> /etc/apt/apt.conf.d/default.conf
> contains this:
> ..
>  Module-Prefix { "kernel-"; };
> ..
>
> This causes these warning during apt-get update:
> WARNING: kernel-i686 not available for kernel 2.6.16-1.2133_FC5!
> WARNING: kernel-drm not available for kernel 2.6.16-1.2133_FC5!
> WARNING: kernel-headers not available for kernel 2.6.16-1.2133_FC5!
> WARNING: kernel-modules not available for kernel 2.6.16-1.2133_FC5!
>
> Removing it, causes the warnings to vanish.

The module-prefix thing only works with old kernel-module-foo-`uname -r` 
style packages used previously on livna.org, it *might* work with other 
schemes as well but that's pure luck :) So, just disable it. IIRC it's not 
present in FE package anyway.

 	- Panu -



More information about the Apt-Rpm mailing list