kernel upgrade from 2.6.5

I am running debian unstable with kernel 2.6.5-1-k7 on an AMD Athlon processor. When I try to upgrade the kernel it tells me:

penrose:~# apt-get install -t etch linux-image-2.6.22-1-k7
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:
linux-image-2.6.22-1-k7: Depends: initramfs-tools (>= 0.55) but it is not going to be installed or
yaird (>= 0.0.12-8) but it is not going to be installed or
linux-initramfs-tool
locales: Depends: glibc-2.6-1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

But, when I try 'apt-get -f install' I get:

penrose:~# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 862 not upgraded.
1 not fully installed or removed.
Need to get 0B/4405kB of archives.
After unpacking 184kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 233224 files and directories currently installed.)
Preparing to replace libc6 2.5-5 (using .../libc6_2.6.1-1_i386.deb) ...
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.6.1-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.6.1-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How does one get out of this cycle? Any help is appreciated.

cat /proc/cpuinfo gives:
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 1008.980
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 1998.84

Bob Jerrard

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Wow - that's a tricky one.

Wow - that's a tricky one. It's a huge jump from .5 to .22 requiring an update of the module utilities, initramfs-tools, and udev. I suggest you get a "live CD" just in case things go bad at some stage and you need it to fix things.

You need to make up a dependency list and see if there's any way to meet it without breaking things. The 'apt-rdepends' tool is useful, but if you're not familiar with it you'll end up trying to upgrade a lot more than you need to, so I'd suggest just using 'apt-cache' to track dependencies. You want to install a newer kernel first as the messages indicate (if possible), so start there:

apt-cache show your-new-linux-image | grep Dep

See which bits already comply and which bits need an upgrade, then continue checking dependencies and see what else needs to be upgraded - then you have to upgrade them all at once so you have something like: apt-get install some ridiculous long list of stuff.

If it gets screwed up at some stage, boot the live CD, download the packages you need, mount the root partition and install things manually - at some stage you'll be able to 'chroot' to the root partition and finish fixing things. Let us know if you get to a stage where you need to fix things like this.

Any luck

Bob,

Any luck to resolve the issue?

I just ran into exactly the same issue. Tried what pinniped suggested with no luck.

Many Thanks

Any luck

Are you having exactly the same problems (must install newer libc, but newer libc will not install without newer kernel)?
If not, did you try:
apt-get install initramfs-tools
then try the upgrade again?

The Live CD is still recommended because there are so many things that can go wrong; among other things, devfs has been removed and hotplug has become obsolete with the new udev. There are too many opportunities for the installation of any required package to make your system unbootable.

Syndicate content