Package: printer-driver-cups-pdf Version: 2.6.1-19 Severity: normal Dear Maintainer,
When upgrading printer-driver-cups-pdf I noticed this error during installation: Setting up printer-driver-cups-pdf (2.6.1-19) ... /var/lib/dpkg/info/printer-driver-cups-pdf.postinst: 50: [: missing ] Skipped automated creation of the PDF queue. The referenced line contains: if [ -z "$(LC_ALL=C lpstat -h localhost -v 2>/dev/null | grep 'cups-pdf:/')" && -d /run/cups/certs ] and the '&&' inside '[ ... ]' is what is throwing the error. I suspect (but did not test) that the conditional check on /run/cups/certs isn't actually running. Some possible fixes: if [ -z "$(LC_ALL=C lpstat -h localhost -v 2>/dev/null | grep 'cups-pdf:/')" -a -d /run/cups/certs ] if [ -z "$(LC_ALL=C lpstat -h localhost -v 2>/dev/null | grep 'cups-pdf:/')" ] && [ -d /run/cups/certs ] if LC_ALL=C lpstat -h localhost -v 2>/dev/null | grep -Lq 'cups-pdf:/' && [ -d /run/cups/certs ] *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages printer-driver-cups-pdf depends on: ii cups 1.7.5-11 ii cups-client 1.7.5-11 ii ghostscript 9.06~dfsg-2 ii libc6 2.19-18 ii libpaper-utils 1.1.24+nmu4 printer-driver-cups-pdf recommends no packages. Versions of packages printer-driver-cups-pdf suggests: ii system-config-printer 1.4.6-1 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org