0

I installed the laptop-mode-tools package. When the service starts (term reads "Enabling laptop mode"), a segmentation fault occurs.

I can't boot the system now. I tried to remove the package from recovery mode, but the filesystem is mounted read-only, and selecting an option that would mount it for writing inits laptop-mode-tools and segfaults again.

EDIT: I remounted / with rw, but running dpkg to remove the package also causes a segfault.

Nevermind getting the package to work, how can I recover the system?

salezica
  • 411
  • http://askubuntu.com/questions/285434/is-there-a-power-saving-application-similar-to-jupiter/285681#285681 – Qasim May 31 '13 at 09:53

3 Answers3

1

I entered in recovery mode and delete with rm the /etc/laptop-mode-tools folder with its sub-folders. Then I re-give the command apt-get purge laptop-mode-tools and all works!

Raja G
  • 102,391
  • 106
  • 255
  • 328
pulver
  • 11
  • 2
0

When you are in recovery mode, remove the package with:

sudo apt-get remove --purge laptop-mode-tools
Radu Rădeanu
  • 169,590
  • As I said, that also causes a segfault. I used a chroot and solved the problem – salezica May 31 '13 at 07:43
  • @uʍopǝpısdn You said that you runned "dpkg to remove the package". And it was normal to use root privileges. For this I used sudo in my answer. – Radu Rădeanu May 31 '13 at 08:07
0

I used the Ubuntu live installation drive to chroot into the local system:

# mkdir mnt
# mount -t proc proc mnt/proc
# mount -t sysfs sys mnt/sys
# mount -o bind /dev mnt/dev
# chroot mnt /bin/bash

Inside the chroot, I could apt-get remove --purge the package with no issues.

Unfortunately for me, the system never booted again. The kernel panics during startup.

salezica
  • 411