--- debian/cups-pdf.postinst.orig 2015-08-20 11:53:43.426340680 +1000 +++ debian/cups-pdf.postinst 2015-08-20 10:43:45.382393743 +1000 @@ -43,8 +43,8 @@ case "$1" in sleep 1 done fi - # Create a PDF queue if we have none yet. - if [ -z "$(LC_ALL=C lpstat -h localhost -v 2>/dev/null | grep 'cups-pdf:/')" ] + # Create a PDF queue if we have none yet (but NOT inside chroots; see Debian bugs #539156,#614713) + if [ -z "$(LC_ALL=C lpstat -h localhost -v 2>/dev/null | grep 'cups-pdf:/')" ] && [ -d /run/cups/certs ] then # 1) Find a name for the PDF queue. queue=PDF