diff --git a/ghostscript-cups.postinst b/ghostscript-cups.postinst
index cb06c26..cd1ed59 100644
--- a/ghostscript-cups.postinst
+++ b/ghostscript-cups.postinst
@@ -9,9 +9,11 @@ case "$1" in
     configure)
 	# Do the following only if CUPS is running and the needed CUPS tools
 	# are available
+	# and directory /etc/cups/ppd exist (see #520753)
 	if which lpstat > /dev/null 2>&1 \
 	  && which lpinfo > /dev/null 2>&1 \
 	  && which lpadmin > /dev/null 2>&1 \
+	  && test -d /etc/cups/ppd
 	  && LC_ALL=C lpstat $lpopts -r > /dev/null 2>&1; then
 		# Update the PPD files of all already installed print queues
 		driverregexp='lsb/usr/ghostscript/'
