ubuntu 9.04 Cannot Print to USB Printer

Bug #132624 reported by alistairi
6
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

My printer is recognised but I cannot print to it. Print fails with status message

Bereit: /usr/lib/cups/filter/rastertoz600 failed

This is a dual boot system, so I started Windows to check printer works properly: it does.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

> Model Z12 is highlighted

Thanks for your bug report, this is a gnome-cups-manager bug.
The problem is gnome-cups-manager looks for your printer model under Lexmark, since the Z600 isn't there it matches the one that closely resembles it: Z12.

Since the Z12 driver is not compatible with your printer this won't work.
Your printer needs a properietary driver from Lexmark that is not included in Ubuntu.

Did you try the steps described here: http://ubuntuforums.org/showthread.php?t=49714.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Sorry I didn't notice you were using Gutsy.
gnome-cups-manager has been replaced by system-config-printer in gusty.
Did you set up your printer with gnome-cups-manager or system-config-printer?

Revision history for this message
alistairi (alistairi) wrote :

Hallo,

Thanks for the feedback.

To be honest I don't remember how I set the printer up, but I started back with Edgy, the upgraded to Feisty and now to Gutsy.

The printer worked fine on Edgy/Feisty, I have only just tried to print on Gutsy.

I'll try the steps you point to in the forums and let you know the results but unfortunately since yesterday there is an ATI video problem (bug 132716) so it's a bit difficult to check at the moment.

Revision history for this message
alistairi (alistairi) wrote :

Hallo,

Having read the instructions at http://ubuntuforums.org/showthread.php?t=49714, I recall that this is how I set the printer up in the first place on Edgy.

I went through the steps again, without any errors, but I still get no output from the printer. I went through system->administration->printer to check the settings.

Gutsy was updated this morning ( 17.08.07 , german time )

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Please try the steps described here and attach the output of the printingbug info script and your CUPS error_log: https://wiki.ubuntu.com/DebuggingPrintingProblems.

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

I have a Lexmark z605 and I get this exact problem. I followed this HOWTO: http://ubuntuforums.org/showpost.php?p=451162&postcount=1

I also have a request for better support regarding the Lexmark 600 series here: https://bugs.launchpad.net/ubuntu/+source/cupsddk/+bug/133121

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

Sorry, the HOWTO was actually: http://ubuntuforums.org/showthread.php?t=49714, just as allstairi did. I set it up straight in Gusty though.

From https://wiki.ubuntu.com/DebuggingPrintingProblems:

$ lsmod | grep usb
usbhid 29536 0
hid 28928 1 usbhid
usblp 15104 0
usbcore 137864 5 usbhid,usblp,ehci_hcd,uhci_hcd

$ tail -f /var/log/messages
Aug 20 18:05:32 bateman kernel: [246696.992000] audit(1187647532.562:17): REJECTING access to capability 'dac_override' (cupsd(30805) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:05:57 bateman kernel: [246719.040000] audit(1187647554.563:18): REJECTING r access to /usr/local/z600llpddk/utility/bnsi3.lut (rastertoz600(15836) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:15:27 bateman kernel: [247290.592000] audit(1187648126.095:19): REJECTING w access to /etc/printcap (cupsd(30805) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:24:23 bateman kernel: [247827.676000] audit(1187648663.626:20): REJECTING r access to /proc/bus/usb/devices (z600(15925) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:24:49 bateman kernel: [247853.676000] audit(1187648689.628:21): REJECTING r access to /proc/bus/usb/devices (z600(15970) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:25:51 bateman kernel: [247915.504000] audit(1187648751.131:22): REJECTING w access to /etc/printcap (cupsd(30805) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:26:05 bateman kernel: [247929.276000] audit(1187648765.132:23): REJECTING w access to /etc/printcap (cupsd(30805) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:26:14 bateman kernel: [247938.912000] audit(1187648774.632:24): REJECTING r access to /usr/local/z600llpddk/utility/bnsi3.lut (rastertoz600(16021) profile /usr/sbin/cupsd active /usr/sbin/cupsd)
Aug 20 18:36:40 bateman kernel: [248564.928000] usb 1-1: USB disconnect, address 4
Aug 20 18:36:40 bateman kernel: [248564.928000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: usblp0: removed
*[after plugging in]*
Aug 20 18:38:34 bateman kernel: [248678.132000] usb 1-1: new full speed USB device using uhci_hcd and address 5
Aug 20 18:38:34 bateman kernel: [248678.324000] usb 1-1: configuration #1 chosen from 1 choice
Aug 20 18:38:34 bateman kernel: [248678.332000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x043D pid 0x0078

$ lpinfo -v
network socket
network beh
direct hpfax
direct hp
network http
network ipp
direct usb://Lexmark%20/Z600%20Series
direct hal:///org/freedesktop/Hal/devices/usb_device_ffffffff_ffffffff_noserial_printer_noserial
network lpd
direct parallel:/dev/lp0
direct scsi
network smb

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Thanks for your bug report.
This bug is a duplicate of bug #133818, which has more information about the cause.

Revision history for this message
alistairi (alistairi) wrote :

Hallo !
I've been on holiday, but for what it's worth here are my debugging things:

lsmod | grep usb
usblp 14080 0
usbcore 135192 4 usblp,ehci_hcd,uhci_hcd

tail -f /var/log/messages
Aug 26 16:47:04 localhost kernel: [ 1061.755203] usb 2-2: USB disconnect, address 3
Aug 26 16:47:04 localhost kernel: [ 1061.755329] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: usblp0: removed
Aug 26 16:47:18 localhost kernel: [ 1076.514031] usb 2-2: new full speed USB device using uhci_hcd and address 4
Aug 26 16:47:19 localhost kernel: [ 1076.707762] usb 2-2: configuration #1 chosen from 1 choice
Aug 26 16:47:19 localhost kernel: [ 1076.714704] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x043D pid 0x0078

lpinfo -v
network socket
network beh
direct hpfax
direct hp
network http
network ipp
direct usb://Lexmark%20/Z600%20Series
direct hal:///org/freedesktop/Hal/devices/usb_device_ffffffff_ffffffff_noserial_printer_noserial
network lpd
direct parallel:/dev/lp0
file cups-pdf:/
direct scsi
network smb

Revision history for this message
alistairi (alistairi) wrote :

now here is my error log. There's messages about no authorization supplied

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Do you get REJECTING messages in /var/log/syslog as described in bug #133818 ?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

After you have done what Pascal asked you for, try the following workaround:

sudo aa-complain cupsd

Does printing now work for you?

Revision history for this message
alistairi (alistairi) wrote :

System is update as of today 20.Aug.

1. Do you get REJECTING messages in /var/log/syslog

I get the following

Aug 30 08:50:45 localhost kernel: [ 563.542190] audit(1188456645.584:7): REJECTING m access to /etc/passwd (cupsd(4939) profile /usr/sbin/cupsd
 active /usr/sbin/cupsd)
Aug 30 08:50:45 localhost kernel: [ 563.542630] audit(1188456645.584:8): REJECTING m access to /etc/group (cupsd(4939) profile /usr/sbin/cupsd
active /usr/sbin/cupsd)
Aug 30 08:50:45 localhost kernel: [ 563.542990] audit(1188456645.584:9): REJECTING m access to /etc/group (cupsd(4939) profile /usr/sbin/cupsd

2. try the following workaround: sudo aa-complain cupsd. Does printing now work for you?

Nope. Print status still goes to "pending" and nothing happens

Revision history for this message
alistairi (alistairi) wrote :

I'm terribly sorry, I made a mistake - that was syslog.0 I was looking at i.e. an old one, not syslog.

I rebooted my machine after today's updates and looked at /var/log/syslog and see the following:

Aug 30 10:23:43 localhost hal_lpadmin: Unable to connect to CUPS: 'httpConnectionEncrypt failed'. Is CUPS running?
Aug 30 10:23:43 localhost hal_lpadmin: File "/usr/lib/hal/scripts/hal_lpadmin", line 403, in main h = HalLpAdmin()
Aug 30 10:23:43 localhost hal_lpadmin: File "/usr/lib/hal/scripts/hal_lpadmin", line 377, in __init__ self.addPrinter()
Aug 30 10:23:43 localhost hal_lpadmin: File "/usr/lib/hal/scripts/hal_lpadmin", line 389, in addPrinter printer = HalPrinter()
Aug 30 10:23:43 localhost hal_lpadmin: File "/usr/lib/hal/scripts/hal_lpadmin", line 19, in __init__ os.exit (1)
Aug 30 10:23:43 localhost hal_lpadmin: AttributeError: 'module' object has no attribute 'exit'
Aug 30 10:23:43 localhost NetworkManager: <debug> [1188462223.877939] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/
devices/usb_device_43d_78_18K670127073950_if0_printer_noserial').
Aug 30 10:23:44 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15
Aug 30 10:23:44 localhost gdm[4863]: WARNING: Server-Name »0« nicht gefunden. Standard-Server wird verwendet
Aug 30 10:23:45 localhost kernel: [ 87.611383] [drm] Initialized drm 1.1.0 20060810
Aug 30 10:23:45 localhost kernel: [ 87.628979] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
Aug 30 10:23:45 localhost kernel: [ 87.629843] [drm] Initialized radeon 1.27.0 20060524 on minor 0
Aug 30 10:23:45 localhost kernel: [ 88.088693] ppdev: user-space parallel port driver
Aug 30 10:23:45 localhost kernel: [ 88.253961] audit(1188462225.666:3): PERMITTING m access to /etc/passwd (cupsd(4914) profile /usr/sbin/cups
d active /usr/sbin/cupsd)
Aug 30 10:23:45 localhost kernel: [ 88.254398] audit(1188462225.666:4): PERMITTING m access to /etc/group (cupsd(4914) profile /usr/sbin/cupsd
 active /usr/sbin/cupsd)
Aug 30 10:23:45 localhost kernel: [ 88.255307] audit(1188462225.666:5): PERMITTING m access to /etc/group (cupsd(4914) profile /usr/sbin/cupsd
 active /usr/sbin/cupsd)
Aug 30 10:23:45 localhost kernel: [ 88.564307] audit(1188462225.974:6): PERMITTING w access to /dev/tty (cupsd(4914) profile /usr/sbin/cupsd a
ctive /usr/sbin/cupsd)

Printing still doesn't work though, even with the sudo aa-complain cupsd workaround again.

I attach today's CUPS error_log

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Can you attach your CUPS error_log again with LogLevel set to debug as described here: https://wiki.ubuntu.com/DebuggingPrintingProblems.

Revision history for this message
alistairi (alistairi) wrote :

that was already with loglevel=debug, see attached

or am I doing something wrong?

Revision history for this message
alistairi (alistairi) wrote :

Although this is a duplicate bug, I'll insert the solution here too:

I resolved the problem by installing Gutsy on another PC. After the installation of the Lexmark drivers I went to System -> Administration -> Printers to add the printer, and noticed that there were TWO drivers listed:

1. Lexmark Z600 Series USB #1
    Device URI: usb://Lexmark%20/Z600%20Series

2. Lexmark Printer
    Device URI: z600:/dev/usb/lp0

Driver 1. does not work, driver 2 works. Going back to first PC and changing driver to "Lexmark Printer" results in being able to print.

Revision history for this message
dodgy_pro (dodgy-pro-deactivatedaccount) wrote :

I installed the Beta of Gutsy and had a similar problem.

It seems that the new tool for automatic installation of printers is somehow buggy. The printers in some cases are recognised correctly, BUT they are assigned to a bad device URI. In my case for example ( I own a HP Deskjet 5940), the printer was given a URI:

"hp:/usb/Deskjet_5900_series?serial=CN5771W0FH047H".

It would only collect jobs, without my being able to delete any of them, but it would never print! The solution was to use the printer settings (either on Ubuntu Gutsy: System --> Administration --> Printing or on Kubuntu Gutsy: Peripherals --> Printers) and make the system search again for printers on usb ports. Then the printer was given automatically the correct URI:

"usb://HP/Deskjet%205900%20series?serial=CN5771W0FH047H"

and it started working.

I didn't find a similar comment on launchpad and decided to add mine. I hope it helps.

jalal (jalal99343)
description: updated
summary: - Gutsy Cannot Print to USB Printer
+ ubuntu 9.04 Cannot Print to USB Printer
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

jalal, are you sure that your problem is the bug described here? And are you sure that the proposed solutions do not work for you?

if your problem is not exactly the one described here, please open a new bug report, following the instructions on

https://wiki.ubuntu.com/DebuggingPrintingProblems

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.