LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 886|回复: 2

2.4内核升级2.6的问题

[复制链接]
发表于 2010-4-4 12:32:58 | 显示全部楼层 |阅读模式
我在每次尝试升级的时候都会遇到 libc6_2.7-18lenny2_i386.deb 这个包升级的错误提示

具体的如下面提示

正在预设定软件包 ...
(正在读取数据库 ... 系统当前总共安装有 23436 个文件和目录。)
正预备替换 libc6 2.3.6.ds1-13 (使用 .../libc6_2.7-18lenny2_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
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:处理 /var/cache/apt/archives/libc6_2.7-18lenny2_i386.deb (--unpack)时出错:
子进程?pre-installation script?返回了错误号?1
在处理时有错误发生:
/var/cache/apt/archives/libc6_2.7-18lenny2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
啊!安装软件包时出现某些坏情况。正在试图恢复:
正在读取软件包列表... 完成  
正在分析软件包的依赖关系树      
正在读取扩展状态文件      
正在初始化软件包状态... 完成
正在读取任务描述... 完成   


然后就无法升级

我在debian.org上面看到可以使用
aptitude install aptitude 可以升级libc6
但是 实际上这么做之后
也会出现 libc6_2.7-18lenny2_i386.deb 这个包的错误提示

导致我现在 无法正常升级相关软件包
比如 apt dpkg aptitude 和内核

aptitude dist-upgrade 也会失败

安装2.6内核会提示libc6错误提示

该怎么办?
我的内核版本

cazool:~# uname -a
Linux cazool 2.4.27-3-686-smp #1 SMP Tue Dec 5 23:12:28 UTC 2006 i686 GNU/Linux
 楼主| 发表于 2010-4-4 12:55:44 | 显示全部楼层
正预备替换 libc6 2.3.6.ds1-13 (使用 .../libc6_2.7-18lenny2_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
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.


如果你使用内核2.4,请先安装glibc

然后我升级glic

则提示

正预备替换 libc6 2.3.6.ds1-13 (使用 .../libc6_2.7-18lenny2_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
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.

如果你使用内核2.4,在你安装libc之前 请先升级………………………………………………



我郁闷了
回复 支持 反对

使用道具 举报

发表于 2010-4-4 15:05:28 | 显示全部楼层
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6

??
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表