[Gutsy SRU request] hplip is needed by HPIJS

Bug #149511 reported by TDB
22
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Fix Released
Medium
Unassigned
Gutsy
Won't Fix
Low
Till Kamppeter
ubuntu-meta (Ubuntu)
Fix Released
Medium
Martin Pitt
Gutsy
Invalid
Undecided
Unassigned

Bug Description

Hi!

Can not print anything with my USB HP DeskJet D1360 in latest Gutsy. Used to print OK recently.
Job appears in queue as "Stopped: job-stopped".
/var/log/cups/error_log contains multiple errors (see attachment).
dmesg does not contain any relevant info.
I am NOT running apparmor (no related packages installed).
I am able to add/remove printers OK. Printer auto-installation works OK.
Reinstalling hpijs, cupsys does not work.

hpijs 2.7.7+2.7.7.dfsg.1-0ubuntu4
cupsys-* 1.3.2-1ubuntu5

Might be related to:
https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/131470

SRU request below: https://bugs.edge.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/149511/comments/19

TEST CASE:

Update; No printer needed for the test. Simply skip the printing test or let the queue point into a file (Set "FileDevice yes" in /etc/cups/cupsd.conf, restart CUPS, use URI "file:/tmp/out.prn"). You see only with the "sudo dpkg -r hplip" and "sudo dpkg -r hplip" whether everything behaves correctly.

On a Gutsy with a print queue for an HP inkjet or a PCL 5c/e laser printer (with HPIJS as driver) do

sudo dpkg -r hplip

and then try to print. You will not be able to do so, even after calling system-config-printer and modifying the print queue so that it does not use the "hp" CUPS backend.

It is due to libraries in th hplip package which are needed by the HPIJS driver. You see it by running

ldd /usr/bin/hpijs | grep libhp

To get your system back to a working state after doing this test, do

sudo apt-get install hplip

Revision history for this message
TDB (michael-baranov) wrote : /var/log/cups/error_log
Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: gutsy, hpijs, cupsys can not print

Make sure to turn off your printer and turn it on again after you have done your last update.

Start system-config-printer, choose "Server Settings" (left side, at the top), mark "Save debugging information ..." (last check box) and click "Apply". Go to your printer's entry, "Policies" tab, mark "Enabled", click "Apply".

Try to print again. If it does not work, post your error_log again, post also the output of

lsusb
ls -l /dev/bus/usb/*/*

Also worth to try:

Delete your printer in system-config-printer, then turn it off and turn it on again. Wait for a notification. Then try to print again.

Changed in cupsys:
status: New → Incomplete
Revision history for this message
TDB (michael-baranov) wrote :

Tried switching on/off, unplugging, deleting+autoinstall -- negative result. Just tested it from my other windoors box: printer hardware is OK.
Thanks!

~$ lsusb
Bus 005 Device 004: ID 04f2:b008 Chicony Electronics Co., Ltd
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 003: ID 062a:0000 Creative Labs Optical Mouse
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 014: ID 03f0:7804 Hewlett-Packard
Bus 003 Device 001: ID 0000:0000

~$ ls -l /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 2007-10-05 18:41 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 128 2007-10-05 18:41 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 130 2007-10-05 18:41 /dev/bus/usb/002/003
crw-rw-r-- 1 root root 189, 256 2007-10-05 18:41 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 269 2007-10-05 21:15 /dev/bus/usb/003/014
crw-rw-r-- 1 root root 189, 384 2007-10-05 18:41 /dev/bus/usb/004/001
crw-rw-r-- 1 root root 189, 512 2007-10-05 18:41 /dev/bus/usb/005/001
crw-rw-r-- 1 root root 189, 515 2007-10-05 18:41 /dev/bus/usb/005/004

Revision history for this message
TDB (michael-baranov) wrote :

sorry, attached access_log instead of error_log.

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

> D [05/Oct/2007:21:19:50 +0300] [Job 61] hpijs: error while loading shared libraries:
> libhpip.so.0: cannot open shared object file: No such file or directory
> D [05/Oct/2007:21:19:50 +0300] [Job 61] GPL Ghostscript SVN PRE-RELEASE 8.61:
> Can't start ijs server "hpijs"

Is the hplip 2.7.7.dfsg.1-0ubuntu4 package installed on your system? Please attach the output of the printingbug info script described here: https://wiki.ubuntu.com/PrintingBugInfoScript.

Changed in cupsys:
assignee: nobody → pascal-devuyst
Revision history for this message
TDB (michael-baranov) wrote :

hpijs is latest for Gutsy but it's named NOT 2.7.7.dfsg.1-0ubuntu4 but 2.7.7+.2.7.7dfsg.1-0ubuntu4
Thanks!

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

I was referring to hplip which is named 2.7.7.dfsg.1-0ubuntu4.
The missing libhpip.so.0 is in hplip package, which is not installed on your system.
Does it work when you install the hplip package?
Did you do a custom Ubuntu installation?

Revision history for this message
TDB (michael-baranov) wrote :

hplip was not installed. after installing printer works! Question is: why it's not installed as a dependency? The fact that printer is detected but is not functions is kinda misleading and confusing. hplip is not installed by default. I'm running gutsy from some alpha through all upgrades to latest.

Thanks!

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

I have checked and HPLIP can simply be uninstalled. There is no metapackage requiring it.

Moving this bug to ubuntu-meta...

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

hplip seems not to be in the seeds. I can simply uninstall it with

sudo dpkg -r hplip

It should be assured that it is in the seeds of all flavors of Ubuntu (Ubuntu, Kubuntu, Xubuntu, Edubuntu, Server), so that it will really ship on the Gutsy CDs.

Changed in cupsys:
importance: Undecided → Critical
status: Incomplete → Confirmed
Revision history for this message
Nicolas Chaigneau (tarseaqueurva) wrote :

Hi !
I can't use my printer either in Gutsy upgraded; I used to in feisty.
My printer is a USB LaserJet 1320.
Job waits in queue and I can't cancel it.
Maybe a rights issue ?

~$ lsusb
Bus 003 Device 004: ID 058f:6390 Alcor Micro Corp.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 03f0:1d17 Hewlett-Packard
Bus 001 Device 005: ID 0967:0204 Acer (??) WarpLink 802.11b Adapter
Bus 001 Device 001: ID 0000:0000

~$ ls -l /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 2007-10-08 22:53 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 4 2007-10-08 23:14 /dev/bus/usb/001/005
crw-rw---- 1 lp scanner 189, 5 2007-10-09 00:24 /dev/bus/usb/001/006
crw-rw-r-- 1 root root 189, 128 2007-10-08 22:53 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 129 2007-10-08 22:53 /dev/bus/usb/002/002
crw-rw-r-- 1 root root 189, 256 2007-10-08 22:53 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 259 2007-10-08 22:53 /dev/bus/usb/003/004

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

hplip is in seeds (https://code.launchpad.net/ubuntu-seeds) but is included in brackets so it is a recommends and not a dependency of ubuntu-meta packages.
It looks like hplip is a recommends since the edgy release.
I believe this is the correct behaviour because it should be possible to remove the hplip package if people don't need it without removing ubuntu-desktop.
The question is if recommends of ubuntu-meta packages are installed by default by the ubuntu installer ubiquity (desktop cd) and/or debian-installer (alternate cd)?

> hplip is not installed by default
TDB,
Did you use the desktop or alternate cd?
Is this reproduceable on a fresh installation of gutsy?

Changed in ubuntu-meta:
assignee: pascal-devuyst → nobody
Steve Langasek (vorlon)
Changed in ubuntu-meta:
importance: Critical → Medium
Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: [Gutsy] hplip is not installed by default

As hpijs NEEDs the hplip package due to shared libraries, I have added a dependency now (2.7.10-0ubuntu1).

Changed in ubuntu-meta:
status: Confirmed → Fix Committed
Changed in ubuntu-meta:
status: Fix Committed → Confirmed
Changed in hplip:
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

hplip (2.7.10-0ubuntu1) hardy; urgency=low

  * New upstream release
     o hp-setup capable of loading non-free driver extensions from the
       internet (usually from OpenPrinting)
     o hp-sendfax problem of not being able add files fixed upstream
       (LP: #153152)
     o New models supported: HP Officejet Pro K8600, Photosmart C4380 Series,
       LaserJet 1018, 1020, 1022, 1022n, 1022nw, Deskjet 550C
  * No modification of the upstream source tarball needed any more.
  * debian/patches/70_no_fail_on_bad_locales.dpatch: Removed, does not apply
    to current upstream source code any more.
  * debian/patches/90_subprocess_replacement.dpatch: Removed, fixed upstream.
  * debian/control: Let hpijs depend on hplip (LP: #149511).

 -- Till Kamppeter <email address hidden> Sat, 27 Oct 2007 14:34:49 +0100

Changed in hplip:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

hplip *is* installed by default in the metapackage. However, there is a slight inconsistency: foomatic-db-hpijs is a dependency, hplip is only a recommends. I think foomatic-db-hpijs should become a Recommends:, too.

Changed in ubuntu-meta:
assignee: nobody → pitti
milestone: ubuntu-7.10-rc → none
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

I fixed the seeds. Hardy's *buntu-desktop packages will be rebuilt in the near future and will contain this fix automatically.

Changed in ubuntu-meta:
status: In Progress → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

pitti, for fixing this bug correctly in Gutsy, see my comment in bug 153152.

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

pitti, foomatic-db-hpijs has nothing to do with this bug. It should be recommended by hpijs, as it is very difficult to use hpijs on a system which neither provides nor generates the appropriate PPDs. But foomatic-db-hpijs should require hpijs, as being able to generate the HPIJS PPDs is useless if HPIJS itself is not installed.

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

Stable Release Update (SRU) Request -- for GUTSY

Impact of the bug

For all non-PostScript HP printers and some non-HP PCL laser printers the driver HPIJS from HP is used. In more recent versions this driver links the libraries from the HPLIP low-level driver:

till@till-laptop:~/ubuntu/hplip/hplip-2.7.7.dfsg.1$ ldd /usr/bin/hpijs | grep hp
        libhpip.so.0 => /usr/lib/libhpip.so.0 (0xb7f53000)
        libhpmud.so.0 => /usr/lib/libhpmud.so.0 (0xb7e75000)
till@till-laptop:~/ubuntu/hplip/hplip-2.7.7.dfsg.1$

This means that even for non-HP printers (which do not use the "hp" CUPS backend) HPLIP must be installed on the system. The weak "Recommends:" dependency in the *-desktop meta-packages allows manual deinstallation of HPLIP, so many users get systems with HPIJS and no HPLIP installed. This does not get fixed by automatic updates.

Fix of the bug

The fix is simply adding the missing dependency in the hpijs package. Now hpijs requires hplip and so users will get an appropriate error message when trying to remove hplip. On already installed systems with uninstalled HPLIP the automatic update including this package will automatically pull in HPLIP and fix the problem this way.

As this is only a change in the packaging (debian/control file) and no change in the code or in config files, there is no risk of regression.

The debdiff

https://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/hplip/hplip_2.7.7.dfsg.1-0ubuntu5.1_2.7.7.dfsg.1-0ubuntu5.2.debdiff

shows the changes which only affect the debian/control file.

Patch on the current stable release:

https://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/hplip/hplip_2.7.7.dfsg.1-0ubuntu5.1_2.7.7.dfsg.1-0ubuntu5.2.debdiff

Source packages are here:

https://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/hplip/

Everyone who is suffering this problem please test and report here. Thanks.

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

No change necessary for ubuntu-meta in gutsy.

Changed in ubuntu-meta:
status: New → Invalid
description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

TDB, can you test the packages in gutsy-proposed?

Revision history for this message
TDB (michael-baranov) wrote : Re: [Bug 149511] Re: [Gutsy SRU request] hplip is needed by HPIJS

@Till: I'm afraid I can't. Since the bug was opened I moved to a new
home and no longer have the HP printer with me... Sorry.
> TDB, can you test the packages in gutsy-proposed?

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

You can dry-test without a printer (or you can test also with non-HP PCL lasers):

Do simply:

sudo dpkg -r hplip

With the HPLIP packages from gutsy-proposed this should give you an error sue to hpijs needing hplip.

So with hplip staying installed

ldd /usr/bin/hpijs | grep libhp

should not show any problem any more.

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

Till, TDB, anyone, can you please test this with the gutsy-proposed packages using Till's recipe?

Changed in hplip:
assignee: nobody → till-kamppeter
status: New → Fix Committed
Revision history for this message
TDB (michael-baranov) wrote :

I'd love to, but I'm not that of a specialist. If you could post a number of *exact* steps to follow, I could do that and post the results/output. I'm on ubuntu 7.10. What puzzles me is where to get the proposed packages...

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

TDB, you should be able to add the gusty-proposed repository as described here: https://help.ubuntu.com/community/Repositories/Ubuntu.

Kim d'Audretsch, can you please test if the gutsy-proposed packages solve this problem?

Revision history for this message
Kim d'Audretsch (kimda) wrote :
  • unnamed Edit (1.1 KiB, text/html; charset=ISO-8859-1)

Hi Pascal,

Sorry for the late reply. I am not running gutsy anymore but hardy. Would
you like me to check if this problem still exists in Hardy?

On Tue, Apr 15, 2008 at 9:03 PM, Pascal De Vuyst <email address hidden>
wrote:

> TDB, you should be able to add the gusty-proposed repository as
> described here: https://help.ubuntu.com/community/Repositories/Ubuntu.
>
> Kim d'Audretsch, can you please test if the gutsy-proposed packages
> solve this problem?
>
> --
> [Gutsy SRU request] hplip is needed by HPIJS
> https://bugs.launchpad.net/bugs/149511
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Regards,

Kim

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

Kim d'Audretsch [2008-04-16 16:52 -0000]:
> Sorry for the late reply. I am not running gutsy anymore but hardy. Would
> you like me to check if this problem still exists in Hardy?

It should be fixed, but verifying can never hurt. :)

Thanks.

Changed in hplip:
importance: Undecided → Low
Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

IMO this is no longer a high-impact bug in Gutsy (the two reporters on the bug no longer have the printer or gutsy ang gutsy is itself soon EOL), following the guidelines in https://wiki.ubuntu.com/StableReleaseUpdates -> Closing task.

Changed in hplip:
status: Fix Committed → Won't Fix
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.