PDA

View Full Version : a few questions. System doesn't start



dobell
06-28-2004, 04:24 PM
Hi:

I have installed knoppix 3.4 on my hard disk. I tryed to install IBM DB2 following some instructions I found on a web. I did this:



bash# mv /bin/sh /bin/sh.bash
bash# ln -s /usr/bin/ksh /bin/sh
bash# for f in awk basename ksh passwd sort touch; do ln -s /usr/bin/$f /bin/$f; done


Then tryed to install if, but it didn't work. After installing it (if you can) You have to restore this changes doing this:


bash# ln -sf /usr/bin/bash /bin/sh

But I did this and when I restarted knoppix it goes to:


INIT: version 2.78-knoppix booting
INIT:cannot execute "etc/init.d/rcS"
INIT:entering runlevel 5
INIT:cannot execute "etc/init.d/rc"


So how can I restore my system working. I have tryed coping /etc/bin/sh from the knoppix cd but it doesn't worked.


The other question I want to know is how can I unistall a package that doesn't wont to configure. I have tryied doing:

dpkg -i --force-all /var/cache/apt/archives/locales.deb

or doing

dpkg --configure -a

but it doesn't work.

Thanks in advance. The first question is so important, so if someone could answer it it would be very, very useful.