[SOLVED] Broken dependencies in hplip-3.17.4-1

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

[SOLVED] Broken dependencies in hplip-3.17.4-1

Postby billr » Dec 27th, '17, 06:24

Trying to install hplip gives me an error message:

Code: Select all
# urpmi hplip-3.17.4-1.mga6.x86_64
The following packages can't be installed because they depend on packages
that are older than the installed ones:
cups-2.2.3-2.mga6
hplip-3.17.4-1.mga6
Continue installation anyway? (Y/n)


I have cups 2.2.6-1 already installed from updates, which is likely why I get this error since it wants to install 2.2.3. Can the person who built this (or someone else), please rebuild against the newer cups libraries?

-Bill
Last edited by billr on Dec 29th, '17, 05:23, edited 1 time in total.
billr
 
Posts: 45
Joined: Apr 19th, '12, 21:27

Re: Broken dependencies in hplip-3.17.4-1

Postby doktor5000 » Dec 27th, '17, 19:35

Please show the output as root of

Code: Select all
urpmq --list-media active --list-url
rpm -qa|sort|grep -iE "cups|hplip"
urpmi --debug hplip
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15009
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Broken dependencies in hplip-3.17.4-1

Postby billr » Dec 28th, '17, 04:16

Code: Select all
# urpmq --list-media active --list-url
Core Release2 http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/core/release
Core Updates http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/core/updates
Core Backports http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/core/backports
Nonfree Release2 http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/nonfree/release
Nonfree Updates http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/nonfree/updates
Nonfree Backports http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/nonfree/backports
Tainted Release http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/tainted/release
Tainted Backports http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/tainted/backports
Core 32bit Release http://mirrors.kernel.org/mageia/distrib/6/i586/media/core/release
Core 32bit Updates http://mirrors.kernel.org/mageia/distrib/6/i586/media/core/updates
Nonfree 32bit Release http://mirrors.kernel.org/mageia/distrib/6/i586/media/nonfree/release
Nonfree 32bit Updates http://mirrors.kernel.org/mageia/distrib/6/i586/media/nonfree/updates
Tainted 32bit Release http://mirrors.kernel.org/mageia/distrib/6/i586/media/tainted/release
google-chrome http://dl.google.com/linux/chrome/rpm/stable/x86_64


Code: Select all
# rpm -qa|sort|grep -iE "cups|hplip"
cups-common-2.2.6-1.mga6
cups-filesystem-2.2.6-1.mga6
cups-filters-1.13.4-2.1.mga6
cups-pk-helper-0.2.6-1.mga6
hplip-hpijs-3.17.4-1.mga6
hplip-hpijs-ppds-3.17.4-1.mga6
hplip-model-data-3.17.4-1.mga6
lib64cups2-2.2.6-1.mga6
lib64cups-filters1-1.13.4-2.1.mga6
python3-cups-1.9.73-2.mga6


Code: Select all
# urpmi --debug hplip
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Official-6-x86_64
loading mirrors cache
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
using mirror http://mirrors.kernel.org/mageia/distrib/6/x86_64
examining synthesis file [/var/lib/urpmi/Core Release2/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Backports/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Release2/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Backports/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Backports/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core 32bit Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core 32bit Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree 32bit Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree 32bit Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted 32bit Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/google-chrome/synthesis.hdlist.cz]
getting exclusive lock on rpm
search_packages: found hplip-3.17.4-1.mga6.x86_64 matching hplip
found package(s): hplip-3.17.4-1.mga6.x86_64
opening rpmdb (root=, write=)
selecting hplip-3.17.4-1.mga6.x86_64
requiring cups,python3-reportlab,python3-sip[>= 4.1.1],sane-backends-hpaio for hplip-3.17.4-1.mga6.x86_64
selecting cups-2.2.6-1.mga6.x86_64
requiring printer-testpages for cups-2.2.6-1.mga6.x86_64
selecting printer-testpages-2006-12.mga6.noarch
selecting python3-reportlab-3.3.0-1.mga6.x86_64
chosen lib64sane-hpaio1-3.17.4-1.mga6.x86_64 for sane-backends-hpaio
selecting lib64sane-hpaio1-3.17.4-1.mga6.x86_64
chosen python3-sip-4.18.1-1.mga6.x86_64 for python3-sip[>= 4.1.1]
selecting python3-sip-4.18.1-1.mga6.x86_64
requested avahi recommended by cups-2.2.6-1.mga6.x86_64
selecting avahi-0.6.32-1.mga6.x86_64
requiring libavahi-core.so.7()(64bit) for avahi-0.6.32-1.mga6.x86_64
chosen lib64avahi-core7-0.6.32-1.mga6.x86_64 for libavahi-core.so.7()(64bit)
selecting lib64avahi-core7-0.6.32-1.mga6.x86_64
hplip is not in potential orphans
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
(medium "Core Release2")
  avahi                          0.6.32       1.mga6        x86_64  (recommended)
  hplip                          3.17.4       1.mga6        x86_64 
  lib64avahi-core7               0.6.32       1.mga6        x86_64  (recommended)
  lib64sane-hpaio1               3.17.4       1.mga6        x86_64 
  printer-testpages              2006         12.mga6       noarch 
  python3-reportlab              3.3.0        1.mga6        x86_64 
  python3-sip                    4.18.1       1.mga6        x86_64 
(medium "Core Updates")
  cups                           2.2.6        1.mga6        x86_64 
30MB of additional disk space will be used.
14MB of packages will be retrieved.
Proceed with the installation of the 8 packages? (Y/n)


I selected Y to proceed and it actually worked. I don't know what changed between last night and tonight - I haven't done any system updates or anything.

Code: Select all
opening rpmdb (root=, write=)
getting graph of dependencies for sorting
sorting graph of dependencies
rpms sorted by dependencies:
printer-testpages
python3-reportlab
python3-sip
lib64avahi-core7
avahi
lib64sane-hpaio1
cups
hplip
selecting hplip-3.17.4-1.mga6.x86_64
requiring cups,python3-reportlab,python3-sip[>= 4.1.1],sane-backends-hpaio for hplip-3.17.4-1.mga6.x86_64
chosen python3-sip-4.18.1-1.mga6.x86_64 for python3-sip[>= 4.1.1]
selecting python3-sip-4.18.1-1.mga6.x86_64
selecting cups-2.2.6-1.mga6.x86_64
requiring printer-testpages for cups-2.2.6-1.mga6.x86_64
selecting printer-testpages-2006-12.mga6.noarch
selecting python3-reportlab-3.3.0-1.mga6.x86_64
chosen lib64sane-hpaio1-3.17.4-1.mga6.x86_64 for sane-backends-hpaio
selecting lib64sane-hpaio1-3.17.4-1.mga6.x86_64
selecting avahi-0.6.32-1.mga6.x86_64
requiring libavahi-core.so.7()(64bit) for avahi-0.6.32-1.mga6.x86_64
chosen lib64avahi-core7-0.6.32-1.mga6.x86_64 for libavahi-core.so.7()(64bit)
selecting lib64avahi-core7-0.6.32-1.mga6.x86_64
transaction valid: remove= update=printer-testpages,lib64avahi-core7,python3-reportlab,lib64sane-hpaio1,cups,hplip,python3-sip,avahi
scheduled sets of transactions:
remove=0= update=8=printer-testpages,lib64avahi-core7,python3-reportlab,lib64sane-hpaio1,cups,hplip,python3-sip,avahi


retrieving rpm files from medium "Core Release2"...
<download info removed>
starting installing packages
opening rpmdb (root=, write=1)
created transaction for installing on / (remove=0, install=0, upgrade=8)
trans: scheduling update of printer-testpages-2006-12.mga6.noarch (id=2959, file=/var/cache/urpmi/rpms/printer-testpages-2006-12.mga6.noarch.rpm)
trans: scheduling update of lib64avahi-core7-0.6.32-1.mga6.x86_64 (id=13399, file=/var/cache/urpmi/rpms/lib64avahi-core7-0.6.32-1.mga6.x86_64.rpm)
trans: scheduling update of python3-reportlab-3.3.0-1.mga6.x86_64 (id=7385, file=/var/cache/urpmi/rpms/python3-reportlab-3.3.0-1.mga6.x86_64.rpm)
trans: scheduling update of lib64sane-hpaio1-3.17.4-1.mga6.x86_64 (id=22882, file=/var/cache/urpmi/rpms/lib64sane-hpaio1-3.17.4-1.mga6.x86_64.rpm)
trans: scheduling update of cups-2.2.6-1.mga6.x86_64 (id=30033, file=/var/cache/urpmi/rpms/cups-2.2.6-1.mga6.x86_64.rpm)
trans: scheduling update of hplip-3.17.4-1.mga6.x86_64 (id=22884, file=/var/cache/urpmi/rpms/hplip-3.17.4-1.mga6.x86_64.rpm)
trans: scheduling update of avahi-0.6.32-1.mga6.x86_64 (id=12837, file=/var/cache/urpmi/rpms/avahi-0.6.32-1.mga6.x86_64.rpm)
trans: scheduling update of python3-sip-4.18.1-1.mga6.x86_64 (id=9884, file=/var/cache/urpmi/rpms/python3-sip-4.18.1-1.mga6.x86_64.rpm)
Preparing...                     ############################################################
      1/8: python3-sip           ############################################################
      2/8: lib64sane-hpaio1      ############################################################
      3/8: python3-reportlab     ############################################################
      4/8: lib64avahi-core7      ############################################################
      5/8: printer-testpages     ############################################################
      6/8: cups                  warning: /etc/cups/cups-files.conf created as /etc/cups/cups-files.conf.rpmnew
warning: /etc/cups/cupsd.conf created as /etc/cups/cupsd.conf.rpmnew
############################################################
      7/8: hplip                 ############################################################
      8/8: avahi                 ############################################################


-Bill
billr
 
Posts: 45
Joined: Apr 19th, '12, 21:27

Re: Broken dependencies in hplip-3.17.4-1

Postby billr » Dec 28th, '17, 05:48

Ok, the next problem is it's not finding the PyQt5 module(s),

Code: Select all
# hp-setup

HP Linux Imaging and Printing System (ver. 3.17.4)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: GUI Modules PyQt4 and PyQt5 are not installed
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.


So, I installed python-qt5-gui, python-qt5-widgets, python-qt5-core and python-qt5-opengl (since there was no clear indication of what it wanted). I still get the same error message. Here's what's installed with qt5:

Code: Select all
$ rpm -qa |grep qt5
lib64qt5quick5-5.6.2-10.mga6
lib64qt5xcbqpa5-5.6.2-11.mga6
lib64qt5printsupport5-5.6.2-11.mga6
qca-qt5-2.1.1-3.mga6
python-qt5-gui-5.6-8.mga6
lib64qt5webkitwidgets5-5.6.2-2.mga6
lib64qt5xml5-5.6.2-11.mga6
lib64qt5quickwidgets5-5.6.2-10.mga6
lib64qt5webkit5-5.6.2-2.mga6
lib64phonon4qt5_4-4.9.1-1.mga6
lib64qt5gui5-5.6.2-11.mga6
lib64qt5network5-5.6.2-11.mga6
lib64qt5widgets5-5.6.2-11.mga6
lib64dbusmenu-qt5_2-0.9.3-1.20160218.1.mga6
python-qt5-widgets-5.6-8.mga6
lib64qt5qml5-5.6.2-10.mga6
lib64qt5core5-5.6.2-11.mga6
lib64qt5svg5-5.6.2-1.mga6
lib64qt5egldeviceintegration5-5.6.2-11.mga6
python-qt5-core-5.6-8.mga6
lib64qt5opengl5-5.6.2-11.mga6
lib64qt5sql5-5.6.2-11.mga6
lib64qt5dbus5-5.6.2-11.mga6
python-qt5-opengl-5.6-8.mga6
lib64qca-qt5_2-2.1.1-3.mga6
lib64qt5x11extras5-5.6.2-1.mga6
phonon4qt5-4.9.1-1.mga6
lib64phonon4qt5experimental4-4.9.1-1.mga6


Any idea what package I'm missing?

-Bill
billr
 
Posts: 45
Joined: Apr 19th, '12, 21:27

Re: Broken dependencies in hplip-3.17.4-1

Postby doktor5000 » Dec 28th, '17, 21:29

FWIW, you should disable all the backports repositories. And you're missing Tainted 32bit Updates, as you already have Tainted 32bit Release you might as well enable update repo for that too.

For that hp-setup issue, I can take a look at it when I'm back at an mga6 system, probably on the weekend.
But it seems you would need the respective python3 packages, e.g. python3-qt5-core but you installed the python2 modules.
Although it seems that some dependencies are definitely missing or the automatically generated Requires are broken.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15009
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Broken dependencies in hplip-3.17.4-1

Postby billr » Dec 29th, '17, 05:22

I disabled backports and enabled updates on tainted (that was an oversight). The python3 variants of the Qt packages were already installed, so that wasn't it. The missing package I did not have installed was ... python3-qtpy - the abstraction layer for PyQt4/PyQt5 for Python3. There's also a python-qtpy, as well, for Python2 but it wasn't installed either. Somehow, I missed that when scrolling through the python[3]-qt* packages. The hpilp GUI works now. Thanks for the suggestions.

Maybe it's not listed as a dependency because you can use hp-setup from the command line, but most people would probably like to have a working gui. Marking this as SOLVED.

-Bill
billr
 
Posts: 45
Joined: Apr 19th, '12, 21:27

Re: [SOLVED] Broken dependencies in hplip-3.17.4-1

Postby doktor5000 » Dec 30th, '17, 13:02

For reference, your problem seems to be different. I don't have any qtpy package installed, and hp-setup GUI works just fine.
As you installed hplip manually (this is usually pulled in by one of the task-printing-* packages which are automatically installed once you setup a printer via MCC) you did not install hplip-gui which contains most of the GUI components.

And hplip-gui pulls in the correct python3-qt packages automatically:

Code: Select all
[doktor5000@Mageia6]─[11:55:38]─[~] urpmq --requires hplip-gui
--requires behaviour changed, use --requires-recursive to get the old behaviour
hplip[== 3.17.4-1.mga6]
polkit-agent
python(abi)
python3-qt5-core
python3-qt5-dbus
python3-qt5-gui
python3-qt5-widgets
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15009
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Broken dependencies in hplip-3.17.4-1

Postby billr » Dec 30th, '17, 18:34

Thanks, doktor. I do have hplip-gui installed, but it appears it was installed later and I may not have retried hp-setup prior to installing the python3-qtpy package.
billr
 
Posts: 45
Joined: Apr 19th, '12, 21:27


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest

cron