Bug 743446 - Automatic package installation problem (tries to install older package)
Summary: Automatic package installation problem (tries to install older package)
Keywords:
Status: CLOSED DUPLICATE of bug 566437
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 15
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-04 23:45 UTC by dario
Modified: 2011-10-21 15:02 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-10-21 15:02:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description dario 2011-10-04 23:45:52 UTC
Description of problem:
after a fresh install of F15 and updated all programs, i plugged the hp printer and then the regular message of installing printer happends, then the message hplip-libs-3.11.3a-1.fc15.i686 requires hplip-common = 3.11.3a-1.fc15 pops up as a problem for the package needed to install the printer and in the system i have hplip-libs-3.11.7-2fc15 and hplip-common-3.11.7-2fc15 installed... so fedora is asking for older files...

Version-Release number of selected component (if applicable):
hplip-libs-3.11.7-2fc15 and hplip-common-3.11.7-2fc15

How reproducible:
i havo no idea

Steps to Reproduce:
1.install F15
2.update all
3.plug in the usb printer hp psc 1610 all in one
  
Actual results:
a message hplip-libs-3.11.3a-1.fc15.i686 requires hplip-common = 3.11.3a-1.fc15

Expected results:
printer ready to work

Additional info:

Comment 1 dario 2011-10-04 23:48:48 UTC
priorty is not high...

Comment 2 Tim Waugh 2011-10-05 08:29:29 UTC
What does this command say?:

rpm -qa | egrep '^libsane|hp(lip|ijs)'

I also need to see the output of 'lpinfo -l -v' (as root) when you have the printer plugged in and powered on.  Thanks.

Comment 3 dario 2011-10-05 21:25:53 UTC
$ rpm -qa | egrep '^libsane|hp(lip|ijs)'
hplip-libs-3.11.7-2.fc15.x86_64
hplip-common-3.11.7-2.fc15.x86_64
libsane-hpaio-3.11.7-2.fc15.x86_64

# lpinfo -l -v
Device: uri = scsi
        class = direct
        info = SCSI Printer
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = socket
        class = network
        info = AppSocket/HP JetDirect
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = lpd
        class = network
        info = LPD/LPR Host or Printer
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = ipp
        class = network
        info = Internet Printing Protocol (ipp)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = http
        class = network
        info = Internet Printing Protocol (http)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = usb://HP/PSC%201600%20series?serial=MY57PF41B4L0
        class = direct
        info = HP PSC 1600 series
        make-and-model = HP PSC 1600 series
        device-id = MFG:HP;MDL:PSC 1600 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:5740;SN:MY57PF41B4L0;S:038000C484001021002c1780062c288004e;J:                    ;Z:0102,0503f169015909,0600;
        location = 
Device: uri = https
        class = network
        info = Internet Printing Protocol (https)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = serial:/dev/ttyS0?baud=115200
        class = serial
        info = Serial Port #1
        make-and-model = Unknown
        device-id = 
        location = 

done...

Comment 4 Tim Waugh 2011-10-06 08:15:20 UTC
That Device ID isn't correct in hpcups.drv/hpijs.drv, so I've filed bug #743821 to track that.  However, that doesn't seem to be the issue here.

In fact, it's surprising that it was trying to install hpijs at all.

Is the printer working now that you have hpijs-3.11.7-2.fc15 installed?  Did you have to perform any extra steps for that?

Comment 5 dario 2011-10-07 00:09:18 UTC
it never installs, so I'm kinda waiting for a solution here... because after the message is displayed the printer fails to be installed, the fist time I installed it I think i did it before updating but i don't remember cos I redid the installation of F15 cos i needed a windows for my wife's work...

Comment 6 Tim Waugh 2011-10-07 09:03:30 UTC
Oh, sorry, I'd missed that it was asking for an *older* version of the package.

I see what's happened now.  In the older package, the "hpijs" driver had the correct Device ID, but the "hpcups" driver had one that was incorrect.  Normally it's the other way around, which is why the build process copies the IDs from hpcups to hpijs, overwriting what was there.

So in this case, the older package is the one that matches, and the newer one no longer does.

When the package install fails, the part of GNOME that deals with adding the printer in Fedora 15 finds no match and so fails.  In Fedora 16 this should be a lot better because it utilises smart matching code in system-config-printer and so should find the right driver.

Speaking of which: if you use system-config-printer to try to install the printer, does that work better?

Comment 7 dario 2011-10-07 11:39:23 UTC
same result it asks to install the old file

Comment 8 Tim Waugh 2011-10-07 12:45:08 UTC
After that though, are you able to configure the printer anyway using system-config-printer?

Comment 9 dario 2011-10-07 14:20:51 UTC
no

Comment 10 Tim Waugh 2011-10-07 15:02:14 UTC
It works fine here on my F-15 system.  After closing the dialog saying the package installation failed, the "Searching for drivers" dialog is visible for a little while; then I get the Installable Options screen and can click Forward and then Apply.

What happens when you try it?

Comment 11 dario 2011-10-19 20:45:37 UTC
nop it quits...

Comment 12 Tim Waugh 2011-10-20 15:08:34 UTC
Straight away? (Please describe as much as you can.)

Could you please run 'system-config-printer --debug' from the command line, try adding the queue again, and paste the output here?  Please also describe what you saw and how you interacted with the application.

Comment 13 dario 2011-10-21 00:59:29 UTC
[oirad@oirad ~]$ system-config-printer --debug
+<NewPrinterGUI object at 0x181ecd0 (newprinter+NewPrinterGUI at 0x18d5a80)>
Connected as user oirad
+<PrinterPropertiesDialog object at 0x182a230 (printerproperties+PrinterPropertiesDialog at 0x1b0ee40)>
<authconn.Connection instance at 0x181a950>: Operation += 'obtaining queue details'
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
<authconn.Connection instance at 0x181a950>: Operation ended
+<ppdcache.PPDCache instance at 0x182f998>
refresh
Created subscription 11, events=['printer-added', 'printer-deleted', 'printer-state-changed']
Next notifications fetch in 1s
update_jobs
get_notifications
update_jobs
Next notifications fetch in 60s
Connected as user oirad
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Examining firewall
Firewall data obtained
Using cached firewall data
Using cached firewall data
Asking for permission to adjust firewall:
The firewall may need adjusting in order to detect network printers.  Adjust the firewall now?

- Allow all incoming IPP Browse packets
- Allow all incoming mDNS traffic

Fetching devices after firewall dialog response
Using polkit-1 connection class
+<asyncipp._IPPAuthOperation instance at 0x1832518>
New IPPConnection
+<_IPPConnectionThread(Thread-1, initial daemon)>
+<asyncipp.IPPAuthConnection instance at 0x18322d8>
Awaiting further instructions
DevicesGet new API: True
+<asyncpk1.PK1Connection instance at 0x18324d0>
+<asyncconn.Connection object at 0x1830850>
fetchDevices
+<asyncconn._AsyncMethodCall instance at 0x1832d40>
Converted ()/{'exclude_schemes': ['dnssd', 'snmp', 'bluetooth'], 'reply_handler': <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall instance at 0x1832d40>>, 'error_handler': <bound method _AsyncMethodCall.error_handler of <asyncconn._AsyncMethodCall instance at 0x1832d40>>, 'auth_handler': <bound method _AsyncMethodCall.auth_handler of <asyncconn._AsyncMethodCall instance at 0x1832d40>>} to (0, 0, [], ['dnssd', 'snmp', 'bluetooth'])
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x1832d88>
Calling PK method DevicesGet
DESTROY: <asyncconn._AsyncMethodCall instance at 0x1832d40>
fetchDevices
+<asyncconn._AsyncMethodCall instance at 0x1cb7b90>
Converted ()/{'reply_handler': <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall instance at 0x1cb7b90>>, 'include_schemes': ['dnssd', 'snmp', 'bluetooth'], 'auth_handler': <bound method _AsyncMethodCall.auth_handler of <asyncconn._AsyncMethodCall instance at 0x1cb7b90>>, 'error_handler': <bound method _AsyncMethodCall.error_handler of <asyncconn._AsyncMethodCall instance at 0x1cb7b90>>} to (0, 0, ['dnssd', 'snmp', 'bluetooth'], [])
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x1cb7c20>
Calling PK method DevicesGet
DESTROY: <asyncpk1._PK1AsyncMethodCall instance at 0x1832d88>
-<asyncconn._AsyncMethodCall instance at 0x1832d40>
nextNPTab: need PPDs loaded
+<PPDsLoader object at 0x1cac500 (ppdsloader+PPDsLoader at 0x1c1fb40)>
Asking PackageKit to install drivers
Calling InstallPrinterDrivers (41943268L, ['MFG:HP;MDL:PSC 1600 series;'], 'hide-finished')
D-Bus signal from CUPS... calling update
Next notifications fetch in 200ms (update called)
get_notifications
1 printer-added Printer 'PSC-1600-series' added by directory services.
{'notify-charset': u'utf-8',
 'notify-natural-language': u'en-us',
 'notify-printer-uri': u'ipp://oirad/printers/PSC-1600-series',
 'notify-sequence-number': 1,
 'notify-subscribed-event': u'printer-added',
 'notify-subscription-id': 11,
 'notify-text': u"Printer 'PSC-1600-series' added by directory services.",
 'printer-is-accepting-jobs': False,
 'printer-name': u'PSC-1600-series',
 'printer-state': 5,
 'printer-state-reasons': [u'paused'],
 'printer-up-time': 1319156386}
Deferred populateList by 200ms
update_jobs
<authconn.Connection instance at 0x181a950>: Operation += 'obtaining queue details'
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
<authconn.Connection instance at 0x181a950>: Operation ended
DESTROY: <asyncconn._AsyncMethodCall instance at 0x1cb7b90>
DESTROY: <asyncconn.Connection object at 0x1830850>
DESTROY: <asyncpk1.PK1Connection instance at 0x18324d0>
DESTROY: <asyncipp.IPPAuthConnection instance at 0x18322d8>
DESTROY: <asyncpk1._PK1AsyncMethodCall instance at 0x1cb7c20>
-<asyncconn._AsyncMethodCall instance at 0x1cb7b90>
Putting None on the task queue
Next task: None
Thread exiting
-<asyncipp._IPPAuthOperation instance at 0x1832518>
-<asyncconn.Connection object at 0x1830850>
-<asyncpk1.PK1Connection instance at 0x18324d0>
-<asyncipp.IPPAuthConnection instance at 0x18322d8>
-<_IPPConnectionThread(Thread-1, stopped daemon 140090986182400)>
ERROR:dbus.proxies:Introspect error on :1.96:/org/freedesktop/PackageKit: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
DESTROY: <PPDsLoader object at 0x1cac500 (ppdsloader+PPDsLoader at 0x1c1fb40)>
nextNPTab: need PPDs loaded
+<PPDsLoader object at 0x1cac5f0 (ppdsloader+PPDsLoader at 0x1c97560)>
Asking PackageKit to install drivers
Calling InstallPrinterDrivers (41943268L, ['MFG:HP;MDL:PSC 1600 series;'], 'hide-finished')
ERROR:dbus.proxies:Introspect error on :1.96:/org/freedesktop/PackageKit: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

brb on how i interacted later baby calls!

Comment 14 dario 2011-10-21 14:20:43 UTC
it shows a windows with an add button I pressed it and then the regular add a printer dialog, where i selected from a database, it took hours to show the list of available printers and mine was not there... 

finally this morning I pressed the search and entered the model HP PSC 1600 series
the search button got disabled and I waited while on the command line I get this

Asking CUPS for PPDs
Using polkit-1 connection class
+<asyncipp._IPPAuthOperation instance at 0x1cb7b90>
New IPPConnection
+<_IPPConnectionThread(Thread-2, initial daemon)>
+<asyncipp.IPPAuthConnection instance at 0x18322d8>
+<asyncpk1.PK1Connection instance at 0x18324d0>
+<asyncconn.Connection object at 0x1cab790>
Awaiting further instructions
+<asyncconn._AsyncMethodCall instance at 0x1832368>
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x1cbd170>
+<asyncipp._IPPAuthOperation instance at 0x1cbd0e0>
Next task: (<method 'getPPDs2' of 'cups.Connection' objects>, (), {}, <bound method _PK1AsyncMethodCall._ipp_reply_handler of <asyncpk1._PK1AsyncMethodCall instance at 0x1cbd170>>, <bound method _IPPAuthOperation.error_handler of <asyncipp._IPPAuthOperation instance at 0x1cbd0e0>>, <bound method _IPPAuthOperation.auth_handler of <asyncipp._IPPAuthOperation instance at 0x1cbd0e0>>)
-<asyncipp._IPPAuthOperation instance at 0x1cb7b90>
Call <method 'getPPDs2' of 'cups.Connection' objects>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x1832d88>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x1cb7c20>
-<PPDsLoader object at 0x1cac500 (ppdsloader+PPDsLoader at 0x1c1fb40)>
...success
Awaiting further instructions
DESTROY: <asyncconn._AsyncMethodCall instance at 0x1832368>

HP PSC 1600 series
Trying make/model names
init_makes: 0.173s
mfgl: hp
mdll: psc 1600 series
make: HP
re-split mdll: psc 1600
Trying best match
PSC 950xi <= PSC 1600 <= PSC 2110
PSC 950xi: match length 4
Searching for model ID '1600', '%d' % 1600
Ignoring 0 of 4 digits, trying 1600
Ignoring 1 of 4 digits, trying 1600
Ignoring 2 of 4 digits, trying 1600
Ignoring 3 of 4 digits, trying 1000
Checking CMD field
Trying best match
text-only <= PCL 3 <= PCL 4
PCL 4: match length 4
Trying best match
PCL 6/PCL XL LF <= PCL Laser <= PCL Laser
PCL 6/PCL XL LF: match length 4
PCL Laser: match length 9
generic: drv:///sample.drv/generpcl.ppd
No ID match for device usb://HP/PSC%201600%20series?serial=MY57PF41B4L0:
MFG:HP;MDL:PSC 1600 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;DES:5740;
Asking Jockey to install drivers
Got Jockey error: org.freedesktop.DBus.Error.ServiceUnknown: The name com.ubuntu.DeviceDriver was not provided by any .service files
DESTROY: <asyncconn.Connection object at 0x1cab790>
DESTROY: <asyncpk1.PK1Connection instance at 0x18324d0>
DESTROY: <asyncipp.IPPAuthConnection instance at 0x18322d8>
DESTROY: <PPDsLoader object at 0x1cac5f0 (ppdsloader+PPDsLoader at 0x1c97560)>
Loaded PPDs this time; try nextNPTab again...

HP PSC 1600 series
Trying make/model names
mfgl: hp
mdll: psc 1600 series
make: HP
re-split mdll: psc 1600
Trying best match
PSC 950xi <= PSC 1600 <= PSC 2110
PSC 950xi: match length 4
Searching for model ID '1600', '%d' % 1600
Ignoring 0 of 4 digits, trying 1600
Ignoring 1 of 4 digits, trying 1600
Ignoring 2 of 4 digits, trying 1600
Ignoring 3 of 4 digits, trying 1000
Checking CMD field
Trying best match
text-only <= PCL 3 <= PCL 4
PCL 4: match length 4
Trying best match
PCL 6/PCL XL LF <= PCL Laser <= PCL Laser
PCL 6/PCL XL LF: match length 4
PCL Laser: match length 9
generic: drv:///sample.drv/generpcl.ppd
No ID match for device usb://HP/PSC%201600%20series?serial=MY57PF41B4L0:
MFG:HP;MDL:PSC 1600 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;DES:5740;
ID matched PPDs: [u'drv:///sample.drv/generpcl.ppd']
Will fetch ppd? 0
-<PPDsLoader object at 0x1cac5f0 (ppdsloader+PPDsLoader at 0x1c97560)>
-<asyncconn.Connection object at 0x1cab790>
DESTROY: <asyncpk1._PK1AsyncMethodCall instance at 0x1cbd170>
-<asyncconn._AsyncMethodCall instance at 0x1832368>
-<asyncpk1.PK1Connection instance at 0x18324d0>
Putting None on the task queue
Next task: None
Thread exiting
-<asyncipp._IPPAuthOperation instance at 0x1cbd0e0>
-<asyncipp.IPPAuthConnection instance at 0x18322d8>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x1cbd170>
-<_IPPConnectionThread(Thread-2, stopped daemon 140090760230656)>
D-Bus signal from CUPS... calling update
Next notifications fetch in 200ms (update called)
get_notifications
2 printer-deleted Printer 'PSC-1600-series' deleted by directory services (timeout).
{'notify-charset': u'utf-8',
 'notify-natural-language': u'en-us',
 'notify-printer-uri': u'ipp://192.168.1.108:631/printers/PSC-1600-series',
 'notify-sequence-number': 2,
 'notify-subscribed-event': u'printer-deleted',
 'notify-subscription-id': 11,
 'notify-text': u"Printer 'PSC-1600-series' deleted by directory services (timeout).",
 'printer-is-accepting-jobs': True,
 'printer-name': u'PSC-1600-series',
 'printer-state': 5,
 'printer-state-reasons': [u'paused'],
 'printer-up-time': 1319178936}
Deferred populateList by 200ms
update_jobs
<authconn.Connection instance at 0x181a950>: Operation += 'obtaining queue details'
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
<authconn.Connection instance at 0x181a950>: Operation ended
Will fetch ppd? 0
Will fetch ppd? 0
Searching for "HP PSC 1600 series"
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/site-packages/cupshelpers/openprinting.py", line 74, in run
    self.callback (status, self.user_data, result)
  File "/usr/lib/python2.7/site-packages/cupshelpers/openprinting.py", line 143, in parse_result
    callback (status, user_data, result)
  File "/usr/share/system-config-printer/newprinter.py", line 2844, in openprinting_printers_found
    printers)
  File "/usr/share/system-config-printer/newprinter.py", line 2843, in <lambda>
    (x, printers[x]),
TypeError: tuple indices must be integers, not NoneType

Will fetch ppd? 0

HP PSC 1600 series
Trying make/model names
mfgl: hp
mdll: psc 1600 series
make: HP
re-split mdll: psc 1600
Trying best match
PSC 950xi <= PSC 1600 <= PSC 2110
PSC 950xi: match length 4
Searching for model ID '1600', '%d' % 1600
Ignoring 0 of 4 digits, trying 1600
Ignoring 1 of 4 digits, trying 1600
Ignoring 2 of 4 digits, trying 1600
Ignoring 3 of 4 digits, trying 1000
Checking CMD field
Trying best match
text-only <= PCL 3 <= PCL 4
PCL 4: match length 4
Trying best match
PCL 6/PCL XL LF <= PCL Laser <= PCL Laser
PCL 6/PCL XL LF: match length 4
PCL Laser: match length 9
generic: drv:///sample.drv/generpcl.ppd
No ID match for device usb://HP/PSC%201600%20series?serial=MY57PF41B4L0:
MFG:HP;MDL:PSC 1600 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;DES:5740;
ID matched PPDs: [u'drv:///sample.drv/generpcl.ppd']
Will fetch ppd? 0
Searching for "HP PSC 1600 series"
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/site-packages/cupshelpers/openprinting.py", line 74, in run
    self.callback (status, self.user_data, result)
  File "/usr/lib/python2.7/site-packages/cupshelpers/openprinting.py", line 143, in parse_result
    callback (status, user_data, result)
  File "/usr/share/system-config-printer/newprinter.py", line 2844, in openprinting_printers_found
    printers)
  File "/usr/share/system-config-printer/newprinter.py", line 2843, in <lambda>
    (x, printers[x]),
TypeError: tuple indices must be integers, not NoneType

Comment 15 dario 2011-10-21 14:21:24 UTC
then I exit and got to go to work...

Canceled subscription 11
DESTROY: <PrinterPropertiesDialog object at 0x182a230 (printerproperties+PrinterPropertiesDialog at 0x1b0ee40)>
DESTROY: <NewPrinterGUI object at 0x181ecd0 (newprinter+NewPrinterGUI at 0x18d5a80)>

Comment 16 Tim Waugh 2011-10-21 15:02:10 UTC
Thanks for testing.  I think this is another aspect of bug #566437.

Asking PackageKit to install drivers
Calling InstallPrinterDrivers (41943268L, ['MFG:HP;MDL:PSC 1600 series;'],
'hide-finished')
ERROR:dbus.proxies:Introspect error on :1.96:/org/freedesktop/PackageKit:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not
receive a reply. Possible causes include: the remote application did not send a
reply, the message bus security policy blocked the reply, the reply timeout
expired, or the network connection was broken.

The fact that no message is shown after this shows that the call didn't:

a) fail
b) call the reply callback
c) call the error callback

*** This bug has been marked as a duplicate of bug 566437 ***


Note You need to log in before you can comment on or make changes to this bug.