将Debian Etch升级到Lenny卡在kernel / libc问题上

我有一个Debian Etch(4.0)系统,目前仍在运行内核2.4.27-2-386。 我想升级到Lenny,但我正在运行似乎是内核和libc6之间的循环依赖。

尝试升级libc6时,直接升级(update sources.list,apt-get update,apt-get dist-upgrade)失败:

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 

但是,将Etch添加回sources.list(“deb-src http://archive.debian.org/debian etch main contrib non-free”),apt-get update,然后运行“apt-get install -t etch linux-image-2.6“提示我select一个更具体的包。 所以我select一个:“sudo apt-get install -t etch linux-image-2.6.18-6-486”

但是,这引发了一个关于未满足的依赖关系的错误,我无法解决:

 The following packages have unmet dependencies. binutils: Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch5 is to be installed libc6-dev: Depends: libc6 (= 2.7-18lenny6) but 2.3.6.ds1-13etch5 is to be installed linux-image-2.6.18-6-486: 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.7-1 E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

运行“apt-get -f install”会让我回到第一个错误,告诉我安装一个2.6内核。

我试过apt-get clean,autoclean,重新启动等等。

我没有控制台访问,从其他媒体启动的能力等。 这是一个无人机,我只有SSH访问权限。

尝试在安装2.6内核之前卸载binutilslibc-devlocales包。 这些软件包不应该是升级所必需的,可以在之后重新安装。