+ -
当前位置:首页 → 问答吧 → 出现这个错误怎么办?dpkg: `update-rc.d' not found on PATH.

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

时间:2005-10-23

来源:互联网

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.

作者: vivo   发布时间: 2005-10-23

The correct location for update-rc.d is /usr/sbin

It seems this file is lost. Can you locate it in /usr/sbin?

作者: d00m3d   发布时间: 2005-10-24

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.

作者: vivo   发布时间: 2005-10-25

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.

作者: d00m3d   发布时间: 2005-10-25

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?

作者: vivo   发布时间: 2005-10-25

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!

作者: d00m3d   发布时间: 2005-10-25

oh! haha, before I delete it

作者: vivo   发布时间: 2005-10-25

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.

作者: vivo   发布时间: 2005-10-25

引用:
...someone tell me . just delete it , it doesn't matter...
Someone set you up!

作者: d00m3d   发布时间: 2005-10-26

热门下载

更多