[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help recovering Debian that won't boot.



kenn wrote:

Kent West wrote:
If one of the files says something can't be found, like this:
westk[@westek]:/home/westk:> ldd /bin/ls
      linux-gate.so.1 =>  (0xffffe000)
      librt.so.1 => /lib/tls/librt.so.1 (0xb7fd0000)
      libacl.so.1 => /lib/libacl.so.1 (0xb7fc8000)
      libselinux.so.1 => /lib/libselinux.so.1 (0xb7fb5000)
      libc.so.6 => /lib/tls/libc.so.6 (0xb7e7d000)
      libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7e6b000)
      /lib/ld-linux.so.2 (0xb7fea000)
      libattr.so.1 => /lib/libattr.so.1 (0xb7e66000)
      libdl.so.2 => /lib/tls/libdl.so.2 (0xb7e62000)
      libsepol.so.1 => not found

that's the clue you need to start fixing the problem.
Okay, you're right ... I DO need to think of this as a learning
experience.  In this case, I have no line with a "not found" message
....  beyond that, I honestly don't know where to go to get started ...


Okay. So on the line that says "not found", what file is on the left?
In the example above, we're missing "libsepol.so.1".

So now you can go to http://www.us.debian.org/distrib/packages and "Search the contents of packages" for that file. In the example case, the resulting package that has this file is:

*FILE                                                       PACKAGE*

------------------------------------------------------------------------

lib/libsepol.so.1 libs/libsepol1 <http://pdo.debian.net/unstable/libs/libsepol1>

So now all you need to do is reinstall libsepol1: "aptitude reinstall install libsepol1" should do it.

If your system is too broken to install it, you can boot from Knoppix, download the package manually from debian.org/packages, and then manually install the deb by rebooting into your system and then running "dpkg -i libsepol1_1.10-2_i386.deb".

If the system is still too hosed to install it using dpkg, you can unpack (in its own directory) the deb with "ar -x libsepol1_1.10-2_i386.deb", which will result in two tarballs. Unpack the data tarball with "tar -xvzf data.tar.gz", and you should now have a directory structure containing the file you need. Just copy/move the file to where it's supposed to be, and your system should be back up and running.

(Or you can just copy the file from another system, even the Knoppix setup, as long as the file is the same version.)

BTW, no need to CC: me on messages; I'm already reading the messages on the list.

--
Kent



Reply to: