Kubuntu Adding printer via "Printer Configuration" tool results in invalid printers.conf, JobSheets entry incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KDE-Admin |
Fix Released
|
Medium
|
|||
kdeadmin (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Description: Ubuntu 9.04
Release: 9.04
systemsettings:
Installed: 4:4.2.2-0ubuntu2
Candidate: 4:4.2.2-0ubuntu2
Version table:
*** 4:4.2.2-0ubuntu2 0
500 http://
100 /var/lib/
cups:
Installed: 1.3.9-17ubuntu1
Candidate: 1.3.9-17ubuntu3.2
Version table:
1.
500 http://
1.
500 http://
*** 1.3.9-17ubuntu1 0
500 http://
100 /var/lib/
When adding a printer to Kubuntu via the Printer Configuration tool in System Settings, the resulting printer can not be used to print.
Checking the cups error log, I saw:
E [22/Jul/
Printing from Okular, Evince and Firefox all silently fail. IE, it looks like it worked, but nothing shows in the CUPS queue, no output is seen from the printer.
I looked in /etc/cups/
# Printer configuration file for CUPS v1.3.9
# Written by cupsd on 2009-07-22 11:18
<DefaultPrinter HP_LaserJet_P2055x>
Info
Location Main Dev Office
DeviceURI socket://xxxxxxxx <<<<-- Removed to protect the innocent
State Idle
StateTime 1248285665
Accepting Yes
Shared Yes
JobSheets <<<-- Line 11, changing to "JobSheets none" fixes the issue
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
Many folks report problems printing to network printers after adding them, and the above change fixed the issue for me.
I don't know if the issue IS with cups, or if the KDE4 tool directly edits this file.
TEST CASE:
with the old package
run kcmshell4 system-
edit an option of your printer
click apply or OK
run sudo stop cups
check /etc/cups/
run sudo start cups
install the new package
run kcmshell4 system-
edit an option of your printer
click apply or OK
run sudo stop cups
check /etc/cups/
affects: | kdebase-workspace (Ubuntu) → kdeadmin (Ubuntu) |
Changed in kdeadmin (Ubuntu): | |
importance: | Undecided → Critical |
Changed in kdeadmin: | |
status: | Unknown → New |
Changed in kdeadmin: | |
importance: | Unknown → Medium |
Changed in kdeadmin: | |
status: | New → Fix Released |
Hi,
I'm running the 9.10 Kubuntu beta.
I had the same issue.
Added a HP Business Inkjet 1100d over the network using the KDE tool - all worked fine. Printed a test page, worked great.
Tried to print from okular and nothing happened. Running okular from the command line revealed "lpr: Bad job-sheets value ""!".
Followed the tip above, added "none" to the end of the JobSheets line, restarted CUPS and all worked a treat. Thanks to OP.
Happy to supply any further details if you tell me how to extract them for you.
MG