dpkg: error processing package unattended-upgrades [duplicate]

Solution 1:

I had this problem also. I was able to fix it by adding the following lines to your /etc/init.d/panasoniclpd-init file.

### BEGIN INIT INFO
# Provides:          PanasonicMFSlpd
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Panasonic scanner driver
# Description:       Panasonic scanner driver
### END INIT INFO

It should look like this.

#! /bin/sh
### BEGIN INIT INFO
# Provides:          PanasonicMFSlpd
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Panasonic scanner driver
# Description:       Panasonic scanner driver
### END INIT INFO

start() {
        /usr/local/share/panasonic/scanner/bin/PanasonicMFSlpd &
}

stop() {
        killall PanasonicMFSlpd
        echo
}

restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|force-reload)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
        exit 1
esac

exit 0