LinuxSir.cn,穿越时空的Linuxsir!

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

出现这个错误怎么办?dpkg: `update-rc.d' not found on PATH.

[复制链接]
发表于 2005-10-23 19:40:13 | 显示全部楼层 |阅读模式
dpkg: `update-rc.d' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
发表于 2005-10-23 23:13:52 | 显示全部楼层
The correct location for update-rc.d is /usr/sbin

It seems this file is lost.  Can you locate it in /usr/sbin?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-25 11:25:07 | 显示全部楼层
It seems that I removed some package important, so the PATH contains /usr/sbin but the problem remain, and command dpkg do not work correctly.

now my debian crashed.

Thank you all the same.
回复 支持 反对

使用道具 举报

发表于 2005-10-25 12:50:45 | 显示全部楼层
You may use a LiveCD such as Knoppix to fix your system.  Of course, you have to know which packages are missing in the first place.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-25 14:17:21 | 显示全部楼层
It is knoppix on my disk, the missing package is libc6, but my dpkg is not work , how to install the libc6 on my system?
回复 支持 反对

使用道具 举报

发表于 2005-10-25 19:07:53 | 显示全部楼层
This could be a big problem.  Except the kernel, libc6 is almost the heart of your system because most programs are dynamically linked to libc6.  How dare can you delete libc6 from you system?

If libc6 is missing and dpkg is collapsed.  I think one possible solution is:

1. boot your Knoppix LiveCD
2. connect to the internet with your Knoppix LiveCD and download dpkg and libc6 packages from Debian repository
3. use alien to convert the dpkg and libc6 deb files to tgz
4. create a mount point and mount your damaged system
5. use tar to extract the dpkg and libc6 files to your damaged system
6. if your system can restart again, use dpkg to re-install the dpkg and libc6 deb files again.  This should fix the dpkg database.

Hope this work.

Good luck!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-25 19:43:40 | 显示全部楼层
oh! haha, before I delete it
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-25 19:47:00 | 显示全部楼层
before I delete it , debian asked me if I am sure ,input "Yes, just do as I say!"
and someone tell me . just delete it , it doesn't matter  hahaha .

Thank you! I'll try to fix my system.
回复 支持 反对

使用道具 举报

发表于 2005-10-25 20:00:45 | 显示全部楼层
...someone tell me . just delete it , it doesn't matter...
Someone set you up!
回复 支持 反对

使用道具 举报

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

本版积分规则

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