LinuxSir.cn,穿越时空的Linuxsir!

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

安装apache2时,出现问题,请教

[复制链接]
发表于 2008-4-11 23:49:43 | 显示全部楼层 |阅读模式
安装apache2时,出现问题,请教
出现以下错误:
Preconfiguring packages ...
hostname: Unknown host
(Reading database ... 24835 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13etch5 (using .../libc6_2.7-10_mipsel.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: error processing /var/cache/apt/archives/libc6_2.7-10_mipsel.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-10_mipsel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Some errors occurred while unpacking. I'm going to configure the
packages that were installed. This may result in duplicate errors
or errors caused by missing dependencies. This is OK, only the errors
above this message are important. Please fix them and run nstall again
Press enter to continue.

请问是什么错误?dpkg: error processing /var/cache/apt/archives/libc6_2.7-10_mipsel.deb (--unpack):是什么问题呢?
是要安装kernel version 2.6.8 或更新版本吗?
怎么查我现在kernel的版本呢?
要从新的源装吗?
在哪找比较快的源呢?
发表于 2008-4-11 23:55:10 | 显示全部楼层
好像是说内核版本不够高

查询内核版本命令 uname -a
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-12 00:02:51 | 显示全部楼层
谢谢回复!
(none):/etc/apt# uname -a
Linux (none) 2.4.20 #1 Wed Feb 1 15:12:33 PST 2006 mips GNU/Linux
内核是2.4的
怎么升内核呢?我的sources.list 内容

deb ftp://debian.linux.org.tw/debian/ testing main
deb-src ftp://debian.linux.org.tw/debian/ testing main

deb ftp://opensource.nchc.org.tw/debian/ testing main
deb-src ftp://opensource.nchc.org.tw/debian/ testing main

deb http://security.debian.org/ testing/updates main

我没换源,试过apt-get install -t etch linux-image-2.6,要求选择安装哪一个?怎么选呢?

(none):/etc/apt# apt-get install -t etch linux-image-2.6
Reading package lists... Done
Building dependency tree... Done
Package linux-image-2.6 is a virtual package provided by:
  linux-image-2.6.22-3-sb1a-bcm91480b 2.6.22-6.lenny1
  linux-image-2.6.22-3-sb1-bcm91250a 2.6.22-6.lenny1
  linux-image-2.6.22-3-r5k-cobalt 2.6.22-6.lenny1
  linux-image-2.6.22-3-qemu 2.6.22-6.lenny1
  linux-image-2.6.22-3-4kc-malta 2.6.22-6.lenny1
  linux-image-2.6.24-1-sb1a-bcm91480b 2.6.24-5
  linux-image-2.6.24-1-sb1-bcm91250a 2.6.24-5
  linux-image-2.6.24-1-r5k-cobalt 2.6.24-5
  linux-image-2.6.24-1-5kc-malta 2.6.24-5
  linux-image-2.6.24-1-4kc-malta 2.6.24-5
You should explicitly select one to install.
回复 支持 反对

使用道具 举报

发表于 2008-4-14 15:24:32 | 显示全部楼层
根据提示, 目前的内核是2.4 的,是好久没有升级过吧?

我昨天刚升级了内核, 是编译内核升级的,
http://www.linuxsir.cn/bbs/thread326802.html

看看精华区的编译内核帖子,

源选最快的,tw那个连接起来快的话也行的
回复 支持 反对

使用道具 举报

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

本版积分规则

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