Stephen Gran on 1 Aug 2007 23:37:40 -0000


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

Re: [PLUG] Upgrading Debian testing from kernel 2.4 to 2.6


On Wed, Aug 01, 2007 at 05:54:34PM -0400, Mike Leone said:
> Stephen Gran (steve@lobefin.net) had this to say on 08/01/07 at 09:35: 
> > 
> > apt will be preventing the kernel install because some of the helper
> > tools will have been built against this version of the c library, and
> > dependencies are making them uninstallable.  You basically have 3
> > choices:
> > 
> > Grab older versions of the helper tools from snapshot.debian.net and
> > then install a 2.6 kernel.  The should be things like module-init-tools,
> > initramfs-tools, and so on.
> 
> Is there a list of all the "and so on"? :-)

I was imagining that you could get pretty close by combining the output 
of apt-get install linux-image-2.6-686 or whatever with the output of 
`grep-dctrl -P linux-image-2.6.18-4-powerpc -s Package,Depends \
  /var/lib/apt/lists/mirror.lobefin.net_debian_dists_etch_main_binary-powerpc_Packages`

Salt to taste for your arch and sources.list.

> > Downgrade libc6.  dpkg -i /var/cache/apt/archives/libc6_2.5.something 
> > may work, although you may need to force downgrade several other
> > packages at the same time.
> 
> I did do a "dpkg -i " libc6_2.3, and it said it installed. However, apt-get
> -f install still wants to install libc6_2.6.21. 

That means that apt thinks the simplest solution is to upgrade it, which
is a bit of a pain.  

You really only have two ways out of this: you'll have to fool apt for
a bit into thinking that all conflicts are straightened out, or you
need to get the new libc6 installed by using a kernel outside of the
packaging system.

> > Drop in a hand build kernel, reboot into it, and then retry the upgade.
> 
> I did try to install linux-image-2.6.21, but it is complaining about an
> initrd-image, which I haven't downloaded. If I try and download one, and
> then do a "dpkg -i" on both linux-image and initrd-image, and reboot ...
> will it boot? I wouldn't have libc6-2.6 installed (yet), since I would do
> that after booting linux-image-2.6.21. Isn't that a Catch-22?

There is no initrd package - initrd (or INITial Ram Disks) are
constructed on the fly at install time in Debian kernels.  If it can't
make an initrd, then you won't reboot with a Debian kernel.  I really
think you may have to build a static monolithic kernel by hand - the
initrd tools, now that I think about it, are going to have a tough time
just figuring out what modules to include when you're running a 2.4
kernel.  Just copy /boot/config-something-recent to .config in the
kernel sources, run make oldconfig, and then make config to trim it down
and get rid of ram disk expectations.
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | <Knghtbrd> Studies prove that research  |
|  steve@lobefin.net             | causes cancer in 43% of laboratory      |
|  http://www.lobefin.net/~steve | rats <CQ> knghtbrd- yeah, but 78% of    |
|                                | those statistics are off by 52%...      |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug