Installing printer with slash "/" in driver name fails

Bug #32085 reported by mawa
28
Affects Status Importance Assigned to Milestone
foomatic-filters-ppds (Ubuntu)
Fix Released
High
Matthias Klose
gnome-cups-manager (Ubuntu)
Fix Released
High
Matthias Klose

Bug Description

When I want to add my printer (HP LaserJet 3P w/PCL5) via gnome-cups-manager, I can select from two ranges of HP drivers: "HP (HPLIP)" and "HP". The HPLIP drivers don't support the 3P, so I choose from the regular drivers. When I complete the printer installation process, no new printer icon appears.

Changed in gnome-cups-manager:
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

Giving back bug, I do not have a hplip printer.

Changed in gnome-cups-manager:
assignee: pitti → nobody
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

dapper 20060305
gnome-cups-manager 0.31-1.1ubuntu1
foomatic-filters-ppds 20060113-1

Running gnome-cups-add from a terminal gives the following error after selecting Manufacturer "HP" and Model "LaserJet 3P w/ PCL5":

** (gnome-cups-add:18455): WARNING **: IPP request failed with status 1024

If found out that the problem is the "/" used in the model name.
Foomatic 3.0 uses a Foomatic/<driver> indication in the *NickName of a PPD to group different drivers together. For your printer there are 2 slashes in the *NickName because of the one used in the model name. It seems that gnome-cups-add incorrectly handles this.

You can easily work around this:
1) Go to:
$ cd /usr/share/ppd/foomatic-rip/HP
2) Unzip the file:
$ sudo gunzip HP-LaserJet_3P_w_PCL5-ljet4.ppd
3) Edit the file:
$ sudo nano HP-LaserJet_3P_w_PCL5-ljet4.ppd
4) Locate *NickName and remove the "/" in "LaserJet 3P w/ PCL5".
5) Save the file
6) Run gnome-cups-manager again and select your printer model again now using the model without a "/".

Looking at the list of models there are a lot of printer model names that have a slash inside them, they will probably all suffer from this gnome-cups-manager bug.

Changed in gnome-cups-manager:
status: Unconfirmed → Confirmed
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote : List of affected PPDs in foomatic-filters-ppds

Affected PPDs / printer models in foomatic-filters-ppds package.

These commands were used to generate this list:
$ cd /usr/share/ppd/foomatic-rip
$ zgrep -H "*NickName" */* | egrep "([[:print:]]+/){3,}"

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote : List of affected PPDs in hplip-ppds

There are no affected PPDs / printer models in hplip-ppds package.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote : List of affected PPDs in linuxprinting.org-ppds

Affected PPDs / printer models in linuxprinting.org-ppds package.

These commands were used to generate this list:
$ cd /usr/share/ppd/postscript
$ zgrep -H "*NickName" */* | egrep "([[:print:]]+/){3,}"

Changed in foomatic-filters-ppds:
status: Unconfirmed → Confirmed
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote : Re: Installing HP printer with non-HPLIP driver fails

This bug is ahas a severe impact on a small portion of Ubuntu users
I think Ubuntu should work around this bug before the final release

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

I have marked this bug "Major" because it has a severe impact on a small portion of Ubuntu users.
This bug is actually a problem with gnome-cups-add not being able to handle multiple slashes.
I think the developers should work around this bug before the final release of Dapper since it is not expected to be solved upstream in gnome soon. This could easily be done by replacing the slashes (/) in the model names of the affected PPDs by dashes (-) in packages foomatic-filters-ppds and linuxprinting.org-ppds.

Revision history for this message
Thierry Moisan (thierryn) wrote :

Still happens in dapper flight 5 with my hp photosmart 7700 series printer.

Revision history for this message
d4ft (d4ft3d) wrote :

My PSC 1401 fails in the new flight-5 dapper too, it sometimes works but much of the time it prints out solid black squares where the picture should be. When I try to configure it to use the HP (HPLIP) -- HP PSC 1400 driver, i select it, then close it regularily it seems to go fine but next time i open it it always goes back to the HP (regular, not HPLIP) -- HP PSC 500 driver, I have tryed reinstalling all aplications related to printing or cups but it still happens. This was not a problem in breezy...

Revision history for this message
Jim Gettys (jg-laptop) wrote :

Ok, this bug gets worse and worse. I have a OfficeJet-6110 and an OfficeJet-6200.

Neither of them (nor any of the related printers e.g. any of the Office-Jet ???? models) show up in the gnome-cups-add list.

If you grep for *NickName in /usr/share/ppd/hplip you get a large number of printers with slashes in the nickname.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Subscribed maintainer, since no developers seems to care from what I can see here.

Changed the description so that it is actually possible to find this bug. AFAICS this is a problem for all printers having slashes in their nickname.

I can confirm that replacing "/" with "-" in the NickName and ShortNickName inside the ppd file is a workaround for the issue.

Revision history for this message
grendel970 (dn) wrote :

I can confirm with my hp deskjet 722c after replacing / with - in *NickName* fields in the ppd file, then adding it with gnome/cups, cups seem to behave better but still doesn't work properly. I am still investating.

Revision history for this message
Alexandre Otto Strube (surak) wrote :

is #33545 related? can someone verify?

Revision history for this message
grendel970 (dn) wrote :

I am not using hplip drivers for my deskjet 722c (hplip does not support this printer), so bug #33545 is not applicable.

Revision history for this message
grendel970 (dn) wrote :

This looks like it's been fixed with recent cups and foomatic-filters-ppds updates. My printer is working fine now, even with a / in the NickName fields.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I have updated to the 1.1.99.b1.r4929-0ubuntu6 packages, and it still doesn't work.

I still have to replace the / with a - in the installed ppd file.

Revision history for this message
A. Villaveces (avillavecesn) wrote :

Same here - on dapper installed on April 10th. I tried all combinations of removing / and replacing by - (or empty space) and nothing worked!

The rest of the upgrade from breezy has been _very smooth_ however, this printer bug is puzzling to me.

Revision history for this message
Matthias Klose (doko) wrote :

Closing this bug report, there are far too many different issues in this report. Please file a separate new report, if your problem can be reproduced after a complete dist-upgrade to dapper 20060414.

In particular the issues
  - spaces in manufacturer names
  - printing with OfficeJet 6110
are addressed

Changed in gnome-cups-manager:
assignee: nobody → doko
status: Confirmed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

Closing this bug report, there are far too many different issues in this report. Please file a separate new report, if your problem can be reproduced after a complete dist-upgrade to dapper 20060414.

In particular the issues
  - spaces in manufacturer names
  - printing with OfficeJet 6110
are addressed

Changed in foomatic-filters-ppds:
assignee: nobody → doko
status: Confirmed → Fix Released
Revision history for this message
Tormod Volden (tormodvolden) wrote :

I have filed a new bug #39976 with the familiar subject "Installing printer with slash "/" in driver name fails".

Please confirm it if you have problems installing a printer with a slash in the driver name (PPD NickName).

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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