我曾经运行 Debian 测试,大约 2 年没有升级或 dist-upgraded。昨天我错误地尝试了......它没有用(我不记得确切的错误消息),所以我尝试了 squeeze。
好吧,软件包已下载并开始安装,但随后我进入了 libc6 配置。我通过了关于重启服务的菜单,然后得到:
WARNING: this version of the GNU libc requires kernel version
2.6.18 or later. Please upgrade your kernel 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 lenny sources to your /etc/apt/sources.list and run:
apt-get install -t lenny linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.11.3-3_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.11.3-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我的内核是一个稍微定制的 2.6.11.7(不是使用 Debian 软件包构建的)。无论如何,我添加了 lenny 资源(来自 archive.debian.org)并尝试
apt-get install -t lenny linux-image-2.6-2-686
但让我着迷的是:
The following packages have unmet dependencies:
libc-bin : Breaks: libc6 (< 2.10) but 2.7-18 is to be installed
linux-image-2.6.26-2-686 : Depends: initramfs-tools (>= 0.55) but it is not going to be installed or
yaird (>= 0.0.13) but it is not installable or
linux-initramfs-tool
Recommends: libc6-i686 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
添加libc6-i686 initramfs-tools
没有帮助。我尝试了更多的东西,令我遗憾的是,我不记得了(我认为语言环境被删除了)。我尝试手动下载 Linux-2.6.35,但在make config
.
请帮忙!我不想比现在更破坏我的系统......
的内容/etc/apt/sources.lst
:
deb http://debian.co.il/debian/ squeeze main
deb http://archive.debian.org/debian lenny main contrib non-free
deb-src http://debian.co.il/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb http://security.debian.org/ lenny/updates main
这个 Debian 论坛帖子似乎相关,但版本不同。
更新:根据此处的建议,我现在尝试先进行 dist-upgrade 以进行蚀刻。但是,不幸的是我,现在 libc-bin 被删除了,我得到:
Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: 1 expected program not found in PATH or not executable.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
嗯,问题解决了:
基本上就是这样。链接到问题的线程中的更多细节和高度紧张的态度......