Comment 12 for bug 805947

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: SRU: hand-picked packaging fixes for Lucid and Maverick

I have tested on Natty now and for me the PDF queue does NOT get generated. The problem is that CUPS gets restarted and immediately afterwards it is tried to create a queue using the commands "lpstat" and "lpadmin". The daemon needs a little time until it listens to requests and so these "lpstat" and "lpadmin" commands error out as CUPS is not yet listening. Using "2> /dev/null" and " || :" these errors stay invisible.

In all maintainer scripts, for creating the queue and updating the PPD after installation and for removing the queue on purge a wait loop needs to be added right before the code sections which use "lpstat" and "lpadmin".

In addition, the newly created queue is disabled and not accepting jobs. Either "-E" needs to be added to "lpadmin" (it was not the culprit for the queue not being created) or "cupsenable" and "cupsaccept" have to be used with the new queue.

An example for such a wait loop is attached as a patch for the post-install script in Natty.

The problem is present in all Ubuntu versions. Reopening ...