Cannot configure HPLIP network printers in gnome-cups-manager

Bug #25630 reported by Manuel López-Ibáñez
12
Affects Status Importance Assigned to Milestone
gnome-cups-manager
Invalid
Unknown
gnome-cups-manager (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

How is it suppossed that HPLIP network printers (using hp:// URIs) must be
configured?

If I choose CUPS Printer, it always adds a ipp:// to anything I write.

http://bugzilla.gnome.org/show_bug.cgi?id=325982: http://bugzilla.gnome.org/show_bug.cgi?id=325982

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

OK. Let's try to configure a HP LaserJet 2200 which is in the network. We are
sure it works under WindowsXP and we know its IP. We have HPLIP packages installed

$ gnome-cups-manager
** (gnome-cups-add:17669): WARNING **: Two ppds have driver == 'hpijs'
 ->hplip/HP-2000C-hpijs.ppd (HP 2000C Foomatic/hpijs[0]) and
 ->foomatic-ppds/hplip/HP-2000C-hpijs.ppd (HP 2000C Foomatic/hpijs)[0]
[Literally, tons of similar errors...]

We add the printer with HP DirectJet and driver HP(HPLIP) LaserJet 2200 Prostcript
(recommended), Standard (CUPS) but....

** (gnome-cups-manager:17640): WARNING **: TODO <blah> vendor <blarg>, or even
(vendor) or -vendor 'HP LaserJet 2200 Postscript (recommended)' 'Postscript'
Selected ppd file = foomatic-ppds/HP/HP-2000C-hpijs.ppd.gz
Selected ppd file = foomatic-ppds/HP/HP-LaserJet_2200-Postscript.ppd.gz

** (gnome-cups-manager:17640): WARNING **: connect = 'socket://146.176.153.113:9100'

** (gnome-cups-manager:17640): WARNING **: method :'socket'
user :''
host :'192.168.153.113' #
port :9100
resource :'/'

Of course, the printer doesn't work, not even the test page.

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #0)
> How is it suppossed that HPLIP network printers (using hp:// URIs) must be
> configured?
>
> If I choose CUPS Printer, it always adds a ipp:// to anything I write.

No idea, I do not have such a device. Matthias, how is that done?

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

Ubuntu Breezy.

This has been reported by other users, however not in the proper place.
[ http://bugzilla.ubuntu.com/show_bug.cgi?id=14091#c2 ]

Revision history for this message
Henk Koster (h-a-j-koster) wrote :

(In reply to comment #2)
> (In reply to comment #0)
> > How is it suppossed that HPLIP network printers (using hp:// URIs) must be
> > configured?
> >
> > If I choose CUPS Printer, it always adds a ipp:// to anything I write.
>
> No idea, I do not have such a device. Matthias, how is that done?

The problem is that gnome-cups-manager (in Breezy) does not offer a suitable
printer
type that can receive the special URI required for an HPLIP printer. I have an HP
DeskJet 5850 network printer with IP 10.0.0.160; using the command "makeuri
10.0.0.160"
the special URI is "hp:/net/deskjet_5800?ip=10.0.0.160" (note the single slash).
Clearly, this is a network printer, but none of the offered choices -- CUPS (IPP),
UNIX, SAMBA, or HP JetDirect -- will work with this URI. The CUPS (IPP) choice comes
close, but g-c-m insists on prepending "ipp://" making the resulting URI
meaningless.

I have found the following work-around:

1. Edit /etc/cups/cupsd.conf and comment out the lines with "AuthType Basic" and
   "AuthClass System" near the end of the file.
2. Run the command "/etc/init.d/cupsys restart".
3. Log in to http://localhost:631 (now no password required) and install the
printer,
   choosing the first offered printer type "AppSocket/HPJetDirect", choosing
   HP (HPLIP) as manufacturer, choosing the printer from the list, and accepting the
   recommended hpijs driver.

This installs the printer and, after configuring it for paper size, the test page
prints perfectly. I then log out, reverse the changes to /etc/cups/cupsd.conf and
restart cupsys once more.

The problem is in g-c-m, wouldn't you agree?

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

I have added <email address hidden> to the CC list. He reported the problem in a
comment in other bug report
[ http://bugzilla.ubuntu.com/show_bug.cgi?id=14091#c2 ]

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

(In reply to comment #4)
> The problem is in g-c-m, wouldn't you agree?

Yes, I completely agree, Martin Pitt changed that because HPLIP is assigned to
Matthias Klose (or so it seems).

This is what I am going to do. I will change the package back to
gnome-cups-manager because the problem is there and I will add Matthias Klose to
the CC list because it is an issue related with HPLIP. I will confirm also the
bug since several people has reported it already.

I hope this solution satisfies everybody.

Revision history for this message
Martin Pitt (pitti) wrote :

I can't test HPLIP, unassigning

Changed in gnome-cups-manager:
assignee: pitti → nobody
Revision history for this message
Simon Law (sfllaw) wrote :

Richard also had this problem in bug 20330.

Manu, do you still encounter this issue in recent Flights of Dapper?
There should be more options in gnome-cups-manager now.

Thanks.

Changed in gnome-cups-manager:
status: Unconfirmed → Needs Info
Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

Simon, I am really really sorry, I don't have any spare computer where to install Dapper right now.

Also, with regard to bug 20330, there are two different issues commented there:

1. hp-info /hp-makeuri (from hplip) failing to work.

2. gnome-cups-manager not allowing to create hp:// uris.

Issue 2 is what this bug is about. Issue 1 is what bug 20330 and bug 25629 are about (different printers, though). I guess issue 1 can only be solved by HP.

Revision history for this message
Simon Law (sfllaw) wrote :

I understand this bug is for issue 2 in your list.

Looking at my installation, we offer a Network Printer option for
HP JetDirect. This seems to be equivalent to an hp:// URL, but
since I don't have a printer that supports this, I can't confirm it.

Please comment here when you install Dapper.

Thanks.

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

If you look to the output shown in the first comment:

** (gnome-cups-manager:17640): WARNING **: connect = 'socket://146.176.153.113:9100'

Thus, the URI created by the HPJetDirect option is socket:// and not hp://. They are different things.

I have found something about installing HPLIP printers under Ubuntu http://hplip.sourceforge.net/install/step4/setup/net.html
However, there is no file "hp-setup" in breezy or dapper. Strange?

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

hp-setup was added in HPLIP 0.9.8 (latest is HPLIP 0.9.10). Breezy features 0.9.5, while Dapper brings 0.9.7.

The latest releases seem quite impressive: http://hplip.sourceforge.net/release_notes.html

Simon Law (sfllaw)
Changed in gnome-cups-manager:
status: Needs Info → Confirmed
Revision history for this message
Henk Koster (h-a-j-koster) wrote :

Though the HPLIP way of installing printers still does not work, my HP network printer can be installed in Dapper (Beta2 plus updates as of 7 May 2006). I was able to install my HP DeskJet 5850 network printer OK:

- choose HP JetDirect printer
- URI: 192.168.1.63, (your IP may differ)
  without any prefix like socket:// or hp:/
- choose HP DeskJet 5850 printer from the list, and
  accept the default hpijs driver

Test page is perfect.

However, this is not the HPLIP way, because /usr/bin/hp-info (and other HPLIP commands) result in error message.

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

Hi Henk,

you can check out which URI type was used to configure the printers through the CUPS webinterface (http://localhost:631 and then Printers).

Also, if you launch gnome-cups-manager from a terminal, it gives the URI of each printer. Since you used the JetDirect backend, you will see something similar to:

** (gnome-cups-manager:17640): WARNING **: connect = 'socket://192.168.0.1:9100'

As said before, one issue is being able to configure the HPLIP backend from gnome-cups-manager and another issue is that the printer actually works (or not) with HPLIP.

I guess you are saying that with Dapper Beta2 there is no way to configure a printer to use the HPLIP backed from gnome-cups-manager. That is the relevant part for this bug report.

Now, as an off-topic, the reasons why your printer may not work under HPLIP may be:

* Your printer is not supported. This does not seem to be the case http://hplip.sourceforge.net/supported_devices/index.html.

* Support for your printer is not available in HPLIP's version in Dapper (0.9.8). You may try the latest version HPLIP 0.9.10 from http://sourceforge.net/project/showfiles.php?group_id=149981
(installation instructions available at http://hplip.sourceforge.net/install/step2/ubuntu510.html)

* A bug in HPLIP. You should report it to one of the HPLIP mailing lists, or send an email to <email address hidden> (http://hplip.sourceforge.net/faqs.html). I would recommend you include the output of whatever command fails adding the option -ldebug, such as, "hp-info -ldebug".

* Another reason...?

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

Deskjet 5850 is listed in http://hplip.sourceforge.net/supported_devices/inkjet.html as supported by HPLIP.

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

please could you have a look at #27239, seems to work for the other bug submitter.

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

You should have mentioned bug 27239 before...closing this as a duplicate.

Changed in gnome-cups-manager:
status: New → Invalid
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.