免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2386 | 回复: 2
打印 上一主题 下一主题

dpkg -i 的时侯出现的问题 请大侠帮解决 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-27 03:49 |只看该作者 |倒序浏览
环境debian Linux 2.4.27-2-386
在安装新内核的时侯出现了错误,不知为何,错误现场如下:

  1. testserver:/usr/src# dpkg -i linux-image-2.4.27_20070127.0228_i386.deb
  2. (Reading database ... 24855 files and directories currently installed.)
  3. Preparing to replace linux-image-2.4.27 20070127.0228 (using linux-image-2.4.27_20070127.0228_i386.deb) ...
  4. Done.
  5. Unpacking replacement linux-image-2.4.27 ...
  6. Running postrm hook script /sbin/update-grub.
  7. Searching for GRUB installation directory ... found: /boot/grub .
  8. Setting up linux-image-2.4.27 (20070127.0228) ...
  9. Running depmod.
  10. Finding valid ramdisk creators.
  11. Using mkinitrd to build the ramdisk.
  12. /bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
  13. grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  14. sort: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  15. awk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
  16. Not updating initrd symbolic links since we are being updated/reinstalled
  17. (20070127.0228 was configured last, according to dpkg)
  18. Not updating image symbolic links since we are being updated/reinstalled
  19. (20070127.0228 was configured last, according to dpkg)
  20. Running postinst hook script /sbin/update-grub.
  21. Searching for GRUB installation directory ... found: /boot/grub .

复制代码
我执行如下命令的结果:
  1. ldd /bin/bash
  2.         libncurses.so.5 => /lib/libncurses.so.5 (0x40019000)
  3.         libdl.so.2 => /lib/libdl.so.2 (0x4005a000)
  4.         libc.so.6 => /lib/libc.so.6 (0x4005e000)
  5.         /lib/ld-linux.so.2 (0x40000000)
复制代码


在我机器上 /lib下有关libc和libdl的文件是:

  1. -rwxr-xr-x 1 root root 1147736 2006-11-05 08:19 /lib/libc-2.3.6.so
  2. lrwxrwxrwx 1 root root      13 2007-01-24 19:38 /lib/libc.so.6 -> libc-2.3.6.so
  3. -rw-r--r-- 1 root root  9592 2006-11-05 08:19 /lib/libdl-2.3.6.so
  4. lrwxrwxrwx 1 root root    14 2007-01-24 19:38 /lib/libdl.so.2 -> libdl-2.3.6.so
复制代码


不知是什么原因,请大家帮忙,多谢!

[ 本帖最后由 inin 于 2007-1-27 03:52 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-01-27 11:17 |只看该作者
就是说,安装提示没有lib文件,但实际lib文件是存在的咯?
ldconfig一下?

论坛徽章:
0
3 [报告]
发表于 2007-01-27 13:39 |只看该作者
我试过了的,在/etc/ld.so.conf里加了/lib路径
ldconfig 以后还是出同样的问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP