I recently upgraded from 12.04 to 14.04 on my laptop and I am not able to print on a network printer via CUPS anymore. If I run
system-config-printer
I get the error
There was an error during the CUPS operation: 'Bad Request'.
If I run
system-config-printer --debug
I get the following output:
OpenPrinting: Init ('en_US', 'UTF-8') 1 0
+<NewPrinterGUI object at 0x7ff964028460 (newprinter+NewPrinterGUI at 0xea5ba0)>
Connected as user roberto
+<PrinterPropertiesDialog object at 0x7ff964041dc0 (printerproperties+PrinterPropertiesDialog at 0xf0b3a0)>
<authconn.Connection instance at 0x7ff964033830>: Operation += obtaining queue details
Authentication pass: 1
Authentication: password callback set
1024: u'Bad Request'
If I instead run the command with sudo I can access the dialog and set the printers, but then the applications that do not run as root cannot see the printers set by root.
The variable
CUPS_SERVER
is set and exported both by the .profile
in my home directory and in /etc/profile
.
I googled unsuccessfully so far. I also reinstalled cups after having removed it with --purge. Any hint?
groups
?roberto adm lp dialout cdrom plugdev lpadmin admin sambashare
roberto
is the user I log in withsystem-config-printer
to set them!