Fix Beaglebone Black Rev. C error on apt

I experienced an error upon any use of apt with a new Rev. C Beaglebone with the factory Debian install like:

insserv: Starting led_aging.sh depends on rc.local and therefore on system facility ‘$all’ which can not be true!

I fixed apt failure by

  1. replace /etc/init.d/led_aging.sh 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
    
  2. reboot

Leave a Comment