BeagleBoneBlack apt-get upgrade error due to led-aging.sh

22 Feb 2015
When I try to upgrade my new BBB bought from element14 (4gb emmc) it throws a list of errors.

stem facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv:  loop involving service mountkernfs at depth 1
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing ppp (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rsyslog
 apache2.2-common
 apache2-mpm-worker
 apache2
 dbus
 dbus-x11
 hostapd
 openssh-server
 ppp
E: Sub-process /usr/bin/dpkg returned an error code (1)


The error was due to a file led-aging.sh. I found the solution from here. (By Dirk Koopman)

Edit the file

nano /etc/init.d/led_aging.sh

and replace the contents with

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          led_aging.sh
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start LED aging
# Description:       Starts LED aging (whatever that is)
### END INIT INFO

x=$(/bin/ps -ef | /bin/grep "[l]ed_acc")
if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then
    /usr/bin/led_acc &
fi

 
Then run

apt-get upgrade

again. It will solve the issue.



Comments