anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#1
If you have upgraded recently, you may get an error message regarding mepis-init and/or initscripts.

The long-term solution is to remove mepis-init, but DO NOT DO THIS UNTIL YOU HAVE BACKED UP THESE IMPORTANT FILES. Otherwise your box will not be able to boot.

/etc/rc.local
/etc/default/rcS
/etc/init.d/sendsigs
/etc/kernel-img.conf
/usr/sbin/buildxconfig
/usr/sbin/buildfstab
/usr/sbin/scanpartitions

Then apt-get purge mepis-init.

Restore the backup files.
Reboot.

I have written a script to do this. Put it in /home user folder, call it antiX-post.sh, make it executable and run as root.

Code: Select all

#!/bin/bash
      cp /etc/rc.local /etc/rc.local.old
      cp /etc/default/rcS /etc/default/rcS.old
      cp /etc/init.d/sendsigs /etc/init.d/sendsigs.old
      cp /etc/kernel-img.conf /etc/kernel-img.conf.old
      cp /usr/sbin/buildxconfig /usr/sbin/buildxconfig.bak
      cp /usr/sbin/buildfstab /usr/sbin/buildfstab.bak
      cp /usr/sbin/scanpartitions /usr/sbin/scanpartitions.bak
      apt-get remove --purge mepis-init -y -qq
      mv /etc/rc.local.old /etc/rc.local
      mv /etc/default/rcS.old /etc/default/rcS
      mv /etc/init.d/sendsigs.old /etc/init.d/sendsigs
      mv /etc/kernel-img.conf.old /etc/kernel-img.conf
      mv /usr/sbin/buildxconfig.bak /usr/sbin/buildxconfig
      mv /usr/sbin/buildfstab.bak /usr/sbin/buildfstab
      mv /usr/sbin/scanpartitions.bak /usr/sbin/scanpartitions
]

Or if you prefer run each step line by line as root in terminal.


The short-term solution is to force mepis-install.

#dpkg -i --force-all /var/cache/apt/archives/mepis-init*.deb
#apt-get -f install.

Then keep initscripts on hold.