I added set -x on a line following the set -e (rather than replacing that) and got the following output:
walter@waltld7:/etc/init.d$ sudo dpkg --configure --pending Setting up gpsd (2.39-5) ... + PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + DAEMON=/usr/sbin/gpsd + DESC=GPS (Global Positioning System) daemon + PIDFILE=/var/run/gpsd.pid + dirname /etc/init.d/gpsd + cd /etc/init.d + pwd -P + basename /etc/init.d/gpsd + SELF=/etc/init.d/gpsd + test -x /usr/sbin/gpsd + . /lib/lsb/init-functions + FANCYTTY= + [ -e /etc/lsb-base-logging.sh ] + . /etc/lsb-base-logging.sh + [ -f /etc/default/gpsd ] + . /etc/default/gpsd + START_DAEMON=true + DAEMON_OPTS=-F /var/run/gpsd.sock + DEVICES= + USBAUTO=true + [ xtrue = xtrue ] + log_daemon_msg Starting GPS (Global Positioning System) daemon gpsd + [ -z Starting GPS (Global Positioning System) daemon ] + log_use_usplash + [ n = y ] + type usplash_write + usplash_write TEXT Starting GPS (Global Positioning System) daemon gpsd + log_to_console log_daemon_msg Starting GPS (Global Positioning System) daemon gpsd + [ n != y ] + [ no != yes ] + readlink /proc/self/fd/0 + stdin=pipe:[21403] + [ pipe:[21403] != pipe:[21403] ] + return 0 + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + [ -t 1 ] + [ xxterm != x ] + [ xxterm != xdumb ] + [ -x /usr/bin/tput ] + [ -x /usr/bin/expr ] + /usr/bin/tput hpa 60 + /usr/bin/tput setaf 1 + [ -z ] + FANCYTTY=1 + true + /usr/bin/tput xenl + /usr/bin/tput cols + COLS=80 + [ 80 ] + [ 80 -gt 6 ] + /usr/bin/expr 80 - 7 + COL=73 + printf * Starting GPS (Global Positioning System) daemon gpsd * Starting GPS (Global Positioning System) daemon gpsd + /usr/bin/expr 80 - 1 + /usr/bin/tput hpa 79 + printf + start-stop-daemon --start --quiet --exec /usr/sbin/gpsd -- -F /var/run/gpsd.sock -P /var/run/gpsd.pid + log_end_msg 1 + [ -z 1 ] + log_use_usplash + [ n = y ] + type usplash_write + [ 1 -eq 0 ] + usplash_write FAILURE failed + log_to_console log_end_msg 1 + [ n != y ] + [ no != yes ] + readlink /proc/self/fd/0 + stdin=pipe:[21403] + [ pipe:[21403] != pipe:[21403] ] + return 0 + [ 73 ] + [ -x /usr/bin/tput ] + printf \r + /usr/bin/tput hpa 73 + [ 1 -eq 0 ] + printf [ [+ /usr/bin/tput setaf 1 + printf fail fail+ /usr/bin/tput op + echo ] ] + return 1 invoke-rc.d: initscript gpsd, action "start" failed. dpkg: error processing gpsd (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: gpsd walter@waltld7:/etc/init.d$
I added set -x on a line following the set -e (rather than replacing that) and got the following output:
walter@ waltld7: /etc/init. d$ sudo dpkg --configure --pending local/sbin: /usr/local/ bin:/sbin: /bin:/usr/ sbin:/usr/ bin /usr/sbin/ gpsd /var/run/ gpsd.pid init.d/ gpsd init-functions base-logging. sh ] base-logging. sh fancy_output
+ printf
+ [ 1 -eq 0 ] waltld7: /etc/init. d$
Setting up gpsd (2.39-5) ...
+ PATH=/usr/
+ DAEMON=
+ DESC=GPS (Global Positioning System) daemon
+ PIDFILE=
+ dirname /etc/init.d/gpsd
+ cd /etc/init.d
+ pwd -P
+ basename /etc/init.d/gpsd
+ SELF=/etc/
+ test -x /usr/sbin/gpsd
+ . /lib/lsb/
+ FANCYTTY=
+ [ -e /etc/lsb-
+ . /etc/lsb-
+ [ -f /etc/default/gpsd ]
+ . /etc/default/gpsd
+ START_DAEMON=true
+ DAEMON_OPTS=-F /var/run/gpsd.sock
+ DEVICES=
+ USBAUTO=true
+ [ xtrue = xtrue ]
+ log_daemon_msg Starting GPS (Global Positioning System) daemon gpsd
+ [ -z Starting GPS (Global Positioning System) daemon ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ usplash_write TEXT Starting GPS (Global Positioning System) daemon gpsd
+ log_to_console log_daemon_msg Starting GPS (Global Positioning System) daemon gpsd
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=pipe:[21403]
+ [ pipe:[21403] != pipe:[21403] ]
+ return 0
+ log_use_
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput xenl
+ /usr/bin/tput cols
+ COLS=80
+ [ 80 ]
+ [ 80 -gt 6 ]
+ /usr/bin/expr 80 - 7
+ COL=73
+ printf * Starting GPS (Global Positioning System) daemon gpsd
* Starting GPS (Global Positioning System) daemon gpsd + /usr/bin/expr 80 - 1
+ /usr/bin/tput hpa 79
+ start-stop-daemon --start --quiet --exec /usr/sbin/gpsd -- -F /var/run/gpsd.sock -P /var/run/gpsd.pid
+ log_end_msg 1
+ [ -z 1 ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ [ 1 -eq 0 ]
+ usplash_write FAILURE failed
+ log_to_console log_end_msg 1
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=pipe:[21403]
+ [ pipe:[21403] != pipe:[21403] ]
+ return 0
+ [ 73 ]
+ [ -x /usr/bin/tput ]
+ printf \r
+ /usr/bin/tput hpa 73
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1
invoke-rc.d: initscript gpsd, action "start" failed.
dpkg: error processing gpsd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gpsd
walter@