[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Does "apt-get dist-upgrade" upgrade the kernel?



In <[🔎] pan.2011.05.08.09.55.08@gmail.com>, Camaleón wrote:
>On Sun, 08 May 2011 11:21:07 +0300, Andrei Popescu wrote:
>> On Sb, 07 mai 11, 16:18:53, Camaleón wrote:
>>> I'm running wheezy and it's since weeks that I started wondering when a
>>> new kernel will come to testing :-)
>>> 
>>> Now (by purely chance) I realized that there is indeed a new kernel
>>> available in the repositories so that this means it was me making some
>>> kind of mistake.
>> 
>> You need either the package linux-image-<flavour> or
>> linux-image-2.6-<flavour> and a new kernel will be installed as soon as
>> the Kernel Team updates the dependencies of these packages.
>
>Do I need "either" or do I need "both"? :-)
>
>Curious is that, as I said before, it was installed it:
>
>dpkg test@debian:~$ dpkg -l | grep linux-image
>ii  linux-image-2.6.32-5-686      2.6.32-31                         Linux
>2.6.32 for modern PCs

That's not the package Camaleón is talking about.  They mean "linux-
image-2.6-686" or "linux-image-686".

Dpkg doesn't allow two versions on the same package (name) to be installed at 
the same time.  So, when multiple versions of an upstream package support co-
installation (e.g. two ABI versions of a library), some part of the version is 
pulled into the package name.  So, "linux-image-2.6.32-5.686" is not just a 
different version, but also a different package name from "linux-
image-2.5.38-2-686".

When APT is doing a safe-upgrade or dist-upgrade it looks to install newer 
versions of the packages (names) that are already installed.  So, "linux-
image-2.6.32-5-686" will never be upgraded to "linux-image-2.6.38-2-686".

Instead this is handled through a specific type of meta-package.  "linux-
image-2.6-686" version "2.6.32-5" will depend on "linux-image-2.6.32-5-686" 
(any version) but "linux-image-2.6-686" version "2.6.38-2" will depend on 
"linux-image-2.6.38-2-686" (any version).  This is something APT's safe-
upgrade and dist-upgrade can handle, although they could be sometimes over-
aggressive with auto-removal so there's a default configuration to prevent 
that behavior.

So, install "linux-image-2.6-686" and you should be fine for a little while.

NB: In the name of package files (e.g. "linux-image-686_2.6.32-5.deb"), the 
name occurs first and is them separated from the version by an underscore 
('_').  It is perfectly legal for things that look like version numbers to 
occur in the package name and vice-versa.
-- 
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: