Installing hplip 3.16.11 in Ubuntu 16.10 - printer M104w

Asked by Rubem Mondaini

I am trying to make my HP printer M104w work in my ubuntu 16.10. As I have noticed from HP website (http://hplipopensource.com/hplip-web/release_notes.html) this is only supported with hplip 3.16.11. The version I have installed is 3.16.7+repack0-1ubuntu1 . I tried installing the version HP provides, by following their installation process, specifying the right distribution and so on but I get missing dependencies that I cannot install.

The error code looks like:
 #####################################################################################
MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 REQUIRED
pyqt4-dbus gui_qt4 REQUIRED
python-dbus fax REQUIRED
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
pyqt4 gui_qt4 REQUIRED
python-notify gui_qt5 OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: This installer cannot install 'pyqt4-dbus' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

######################################################################################

I tried to manually install the dependencies:

rmondaini@rmondaini-hp:~/Downloads/hplip-3.16.11+repack0$ sudo apt install pyqt4-dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pyqt4-dbus

But that doesn´t work as well... How can I make my printer work in Ubuntu then?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu hplip Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Issue the command

sudo apt-get install python-qt4-dbus

and then try installing hplip again.
Do you still receive the same error, or what do you get now?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Also, what is the output of:

lsb_release -a; uname -a; apt-cache policy hplip

Thanks

Revision history for this message
Rubem Mondaini (rmondaini) said :
#3

Dear Manfred,

I tried:

######################################################
rmondaini@rmondaini-hp:~$ sudo apt-get install python-qt4-dbus
[sudo] password for rmondaini:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-qt4-dbus is already the newest version (4.11.4+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
######################################################

but I already have the package.

So trying to reinstall gives me the same error:

######################################################
MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all
REQUIRED dependencies are not installed and some of the HPLIP features will
not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 REQUIRED
pyqt4-dbus gui_qt4 REQUIRED
python-dbus fax REQUIRED
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
pyqt4 gui_qt4 REQUIRED
python-notify gui_qt5 OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus
Support for PyQt4)
warning: This installer cannot install 'pyqt4-dbus' for your distro/OS
and/or version.
error: Installation cannot continue without this dependency. Please
manually install this dependency and re-run this installer.
######################################################

As per actionparsnip request:

######################################################
rmondaini@rmondaini-hp:~/Downloads/hplip-3.16.11$ lsb_release -a; uname -a;
apt-cache policy hplip
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety
Linux rmondaini-hp 4.8.0-42-generic #45-Ubuntu SMP Wed Mar 8 20:06:06 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux
hplip:
  Installed: 3.16.7+repack0-1ubuntu1
  Candidate: 3.16.7+repack0-1ubuntu1
  Version table:
 *** 3.16.7+repack0-1ubuntu1 500
        500 http://mirrors.yun-idc.com/ubuntu yakkety/main amd64 Packages
        100 /var/lib/dpkg/status
######################################################

Thanks,
Rubem

On Thu, Mar 23, 2017 at 5:49 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #584525 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Issue the command
>
> sudo apt-get install python-qt4-dbus
>
> and then try installing hplip again.
> Do you still receive the same error, or what do you get now?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/hplip/+
> question/584525/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> You received this question notification because you asked the question.
>

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

Before executing the hplip script, the Ubuntu "Main", "Universe" and "Multiverse" repositories need to be enabled first.

What is the full Terminal output of this command?

find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

Revision history for this message
Rubem Mondaini (rmondaini) said :
#5

rmondaini@rmondaini-hp:~$ find /etc/apt -name '*.list' -exec bash -c 'echo
-e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64
(20160420.1)]/ xenial main restricted
     2 deb-src http://archive.ubuntu.com/ubuntu yakkety main restricted
#Added by software-properties
     3
     4 # See http://help.ubuntu.com/community/UpgradeNotes for how to
upgrade to
     5 # newer versions of the distribution.
     6 deb http://archive.ubuntu.com/ubuntu yakkety main restricted
     7 deb-src http://archive.ubuntu.com/ubuntu yakkety universe multiverse
#Added by software-properties
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu yakkety-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu yakkety-updates universe
main multiverse restricted #Added by software-properties
    13
    14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the
Ubuntu
    15 ## team, and may not be under a free licence. Please satisfy
yourself as to
    16 ## your rights to use the software. Also, please note that software
in
    17 ## universe WILL NOT receive any review or updates from the Ubuntu
security
    18 ## team.
    19 deb http://archive.ubuntu.com/ubuntu yakkety universe
    20 # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universe
    21 deb http://archive.ubuntu.com/ubuntu yakkety-updates universe
    22 deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
    23
    24 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the
Ubuntu
    25 ## team, and may not be under a free licence. Please satisfy
yourself as to
    26 ## your rights to use the software. Also, please note that software
in
    27 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    28 ## security team.
    29 deb http://archive.ubuntu.com/ubuntu yakkety multiverse
    30 # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
    31 deb http://archive.ubuntu.com/ubuntu yakkety-updates multiverse
    32 # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates
multiverse
    33
    34 ## N.B. software from this repository may not have been tested as
    35 ## extensively as that contained in the main release, although it
includes
    36 ## newer versions of some applications which may provide useful
features.
    37 ## Also, please note that software in backports WILL NOT receive any
review
    38 ## or updates from the Ubuntu security team.
    39 deb http://archive.ubuntu.com/ubuntu yakkety-backports main
restricted universe multiverse
    40 deb-src http://archive.ubuntu.com/ubuntu yakkety-backports main
restricted universe multiverse #Added by software-properties
    41
    42 ## Uncomment the following two lines to add software from Canonical's
    43 ## 'partner' repository.
    44 ## This software is not part of Ubuntu, but is offered by Canonical
and the
    45 ## respective vendors as a service to Ubuntu users.
    46 deb http://archive.canonical.com/ubuntu yakkety partner
    47 deb-src http://archive.canonical.com/ubuntu yakkety partner
    48
    49 deb http://archive.ubuntu.com/ubuntu yakkety-security main restricted
    50 deb-src http://archive.ubuntu.com/ubuntu yakkety-security universe
main multiverse restricted #Added by software-properties
    51 deb http://archive.ubuntu.com/ubuntu yakkety-security universe
    52 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    53 deb http://archive.ubuntu.com/ubuntu yakkety-security multiverse
    54 # deb-src http://security.ubuntu.com/ubuntu xenial-security
multiverse
    55 deb http://archive.canonical.com/ yakkety partner
    56 deb-src http://archive.canonical.com/ yakkety partner

/etc/apt/sources.list.d/mono-xamarin.list

/etc/apt/sources.list.d/wine-ubuntu-wine-builds-xenial.list

     1 deb http://ppa.launchpad.net/wine/wine-builds/ubuntu yakkety main #
disabled on upgrade to yakkety
     2 # deb-src http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial
main

/etc/apt/sources.list.d/webupd8team-ubuntu-java-yakkety.list

     1 # deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu yakkety
main
     2 # deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu yakkety
main

/etc/apt/sources.list.d/mendeleydesktop.list

     1 # This file lists the repositories for Mendeley Desktop.
     2 #
     3 # These repositories should work with most recent
Debian/Ubuntu-based Linux
     4 # distributions.
     5 #
     6 # If you have any problems with Mendeley's Debian/Ubuntu
repositories,
     7 # you can let us know at http://feedback.mendeley.com
     8 #
     9 # The distribution name sets the release channel you want to use,
    10 # which can be either "stable" or "preview"
    11
    12 deb http://desktop-download.mendeley.com/download/apt stable main

/etc/apt/sources.list.d/fcitx-team-ubuntu-stable-xenial.list

/etc/apt/sources.list.d/opera.list

     1 deb http://deb.opera.com/opera-stable/ stable non-free

/etc/apt/sources.list.d/opera-stable.list

     1 # This file makes sure that Opera Browser is kept up-to-date
     2 # as part of regular system upgrades
     3

/etc/apt/sources.list.d/libdvdcss.list

/etc/apt/sources.list.d/webupd8team-ubuntu-java-xenial.list

     1 deb http://ppa.launchpad.net/webupd8team/java/ubuntu yakkety main #
disabled on upgrade to yakkety

/etc/apt/sources.list.d/fcitx-team-ubuntu-nightly-xenial.list

/etc/apt/sources.list.d/google-chrome.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be
lost.
     3 deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
# disabled on upgrade to yakkety

/etc/apt/sources.list.d/colingille-ubuntu-freshlight-yakkety.list

On Thu, Mar 23, 2017 at 6:44 PM, Mark Rijckenberg <
<email address hidden>> wrote:

> Your question #584525 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> Status: Open => Needs information
>
> Mark Rijckenberg requested more information:
> Before executing the hplip script, the Ubuntu "Main", "Universe" and
> "Multiverse" repositories need to be enabled first.
>
> What is the full Terminal output of this command?
>
> find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n
> "$1"' _ '{}' \;
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> You received this question notification because you asked the question.
>

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6

What is the full Terminal output of these commands?

sudo apt update

sudo apt install -f

sudo apt install snmp-mibs-downloader

sudo apt install libsane-dev

sudo apt install libsensors4-dev

sudo apt install smistrip

sudo apt install python-qt4-dbus

sudo apt install libpci-dev

sudo apt install python-reportlab-accel

sudo apt install python-reportlab

sudo apt install python-renderpm

sudo apt install libcupsimage2-dev

sudo apt install libsnmp-dev

sudo apt install libcupsfilters-dev

cd /tmp

wget https://downloads.sourceforge.net/project/hplip/hplip/3.16.11/hplip-3.16.11.run

bash hplip-3.16.11.run

# Still same error messages after running these commands?

Revision history for this message
Rubem Mondaini (rmondaini) said :
#7

>
>
> Mark Rijckenberg requested more information:
> What is the full Terminal output of these commands?
>
> sudo apt update
>
>> rmondaini@rmondaini-hp:~$ sudo apt update
>
> Hit:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
>>
>>
>
> Hit:2 http://archive.canonical.com/ubuntu yakkety InRelease
>>
>>
>
> Hit:3 http://deb.opera.com/opera-stable stable InRelease
>>
>>
>
> Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
>>
>>
>
> Hit:5 http://ppa.launchpad.net/webupd8team/java/ubuntu yakkety InRelease
>>
>>
>
> Hit:6 http://archive.ubuntu.com/ubuntu yakkety InRelease
>>
>
> Hit:7 http://archive.canonical.com yakkety InRelease
>>
>
> Hit:8 http://dl.google.com/linux/chrome/deb stable Release
>>
>
> Ign:9 http://desktop-download.mendeley.com/download/apt stable InRelease
>>
>
> Hit:11 http://ppa.launchpad.net/wine/wine-builds/ubuntu yakkety InRelease
>>
>
> Get:12 http://archive.ubuntu.com/ubuntu yakkety-updates InRelease [102 kB]
>
> Hit:13 http://desktop-download.mendeley.com/download/apt stable Release
>
> Get:15 http://archive.ubuntu.com/ubuntu yakkety-backports InRelease [102
>> kB]
>
> Get:16 http://archive.ubuntu.com/ubuntu yakkety-security InRelease [102
>> kB]
>>
>
> Fetched 306 kB in 8s (37.6 kB/s)
>>
>>
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> 7 packages can be upgraded. Run 'apt list --upgradable' to see them.
>
>
> sudo apt install -f
>
>> rmondaini@rmondaini-hp:~$ sudo apt install -f
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install snmp-mibs-downloader
>
       rmondaini@rmondaini-hp:~$ sudo apt install snmp-mibs-downloader

> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> snmp-mibs-downloader is already the newest version (1.1).
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install libsane-dev
>
>> rmondaini@rmondaini-hp:~$ sudo apt install libsane-dev
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> libsane-dev is already the newest version (1.0.25+git20150528-1ubuntu2).
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install libsensors4-dev
>
>> rmondaini@rmondaini-hp:~$ sudo apt install libsensors4-dev
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> libsensors4-dev is already the newest version (1:3.4.0-3).
>
> libsensors4-dev set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install smistrip
>
>> rmondaini@rmondaini-hp:~$ sudo apt install smistrip
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> smistrip is already the newest version (0.4.8+dfsg2-12).
>
> smistrip set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install python-qt4-dbus
>
>> rmondaini@rmondaini-hp:~$ sudo apt install python-qt4-dbus
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> python-qt4-dbus is already the newest version (4.11.4+dfsg-2).
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install libpci-dev
>
>> rmondaini@rmondaini-hp:~$ sudo apt install libpci-dev
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> libpci-dev is already the newest version (1:3.3.1-1.1ubuntu4.1).
>
> libpci-dev set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install python-reportlab-accel
>
>> rmondaini@rmondaini-hp:~$ sudo apt install python-reportlab-accel
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> python-reportlab-accel is already the newest version (3.3.0-1).
>
> python-reportlab-accel set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install python-reportlab
>
>> rmondaini@rmondaini-hp:~$ sudo apt install python-reportlab
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> python-reportlab is already the newest version (3.3.0-1).
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install python-renderpm
>
>> rmondaini@rmondaini-hp:~$ sudo apt install python-renderpm
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> python-renderpm is already the newest version (3.3.0-1).
>
> python-renderpm set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install libcupsimage2-dev
>
rmondaini@rmondaini-hp:~$ sudo apt install libcupsimage2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcupsimage2-dev is already the newest version (2.2.0-2ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

>
> sudo apt install libsnmp-dev
>
 rmondaini@rmondaini-hp:~$ sudo apt install libsnmp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsnmp-dev is already the newest version (5.7.3+dfsg-1ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

> sudo apt install libcupsfilters-dev
>
>> rmondaini@rmondaini-hp:~$ sudo apt install libcupsfilters-dev
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> libcupsfilters-dev is already the newest version (1.11.4-0ubuntu2.1).
>
> libcupsfilters-dev set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>

> cd /tmp
>
> wget
> https://downloads.sourceforge.net/project/hplip/hplip/3.16.
> 11/hplip-3.16.11.run

rmondaini@rmondaini-hp:/tmp$ wget
https://downloads.sourceforge.net/project/hplip/hplip/3.16.11/hplip-3.16.11.run
--2017-03-23 19:36:38--
https://downloads.sourceforge.net/project/hplip/hplip/3.16.11/hplip-3.16.11.run
Resolving downloads.sourceforge.net (downloads.sourceforge.net)...
216.34.181.59
Connecting to downloads.sourceforge.net
(downloads.sourceforge.net)|216.34.181.59|:443...
connected.
HTTP request sent, awaiting response... 302 Found
Location:
https://superb-dca2.dl.sourceforge.net/project/hplip/hplip/3.16.11/hplip-3.16.11.run
[following]
--2017-03-23 19:36:44--
https://superb-dca2.dl.sourceforge.net/project/hplip/hplip/3.16.11/hplip-3.16.11.run
Resolving superb-dca2.dl.sourceforge.net (superb-dca2.dl.sourceforge.net)...
209.61.193.20
Connecting to superb-dca2.dl.sourceforge.net
(superb-dca2.dl.sourceforge.net)|209.61.193.20|:443...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 23105644 (22M) [application/x-makeself]
Saving to: ‘hplip-3.16.11.run’

hplip-3.16.11.run
 50%[=========================================================>
                                            ] 11.21M 774KB/s eta 34s
  hplip-3.16.11.run
100%[================================================================================================================>]
 22.04M 381KB/s in 50s

2017-03-23 19:37:39 (452 KB/s) - ‘hplip-3.16.11.run’ saved
[23105644/23105644]

>
>
> bash hplip-3.16.11.run
>
> # Still same error messages after running these commands?

Yes, same error. I am copying the whole thing here just in case.

rmondaini@rmondaini-hp:/tmp$ bash hplip-3.16.11.run
Creating directory hplip-3.16.11
Verifying archive integrity... All good.
Uncompressing HPLIP 3.16.11 Self Extracting
Archive...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.16.11)
HPLIP Installer ver. 5.1

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.

Installer log saved in: hplip-install_Thu-23-Mar-2017_19:37:49.log

/
note: Defaults for each question are maked with a '*'. Press <enter> to
accept the default.
error: debian-stretch/sid version is not supported, so all dependencies may
not be installed. However trying to install using debian-8.6 version
packages.

Press 'y' to continue auto installation. Press 'n' to quit auto
instalation(y=yes, n=no*): n
Installation exit
rmondaini@rmondaini-hp:/tmp$ bash hplip-3.16.11.run
Creating directory hplip-3.16.11
Verifying archive integrity... All good.
Uncompressing HPLIP 3.16.11 Self Extracting
Archive...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.16.11)
HPLIP Installer ver. 5.1

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.

Installer log saved in: hplip-install_Thu-23-Mar-2017_19:38:01.log

/
note: Defaults for each question are maked with a '*'. Press <enter> to
accept the default.
error: debian-stretch/sid version is not supported, so all dependencies may
not be installed. However trying to install using debian-8.6 version
packages.

Press 'y' to continue auto installation. Press 'n' to quit auto
instalation(y=yes, n=no*): y

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common
options.
Custom mode allows you to choose installation options to fit specific
requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) :

Initializing. Please wait...

INTRODUCTION
------------
This installer will install HPLIP version 3.16.11 on your computer.
Please close any running package management systems now (YaST, Adept,
Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Debian stretch/sid.

Is "Debian stretch/sid" your correct distro/OS and version (y=yes*, n=no,
q=quit) ? n

DISTRO/OS SELECTION
-------------------

Choose the name of the distro/OS that most closely matches your system:

Num. Distro/OS Name
---- ------------------------
0 Mepis
1 Debian
2 SUSE Linux
3 Mandriva Linux
4 Fedora
5 Red Hat
6 Red Hat Enterprise Linux
7 Ubuntu
8 PCLinuxOS
9 Linux Mint
10 gOS
11 Linpus Linux
12 IGOS
13 Boss
14 Linux From Scratch

Enter number 0...14 (q=quit) ?7

Choose the version of "Ubuntu" that most closely matches your system:

Num. Distro/OS Version
---- ----------------------------------------
0 Unknown or not listed
1 12.04 ("Precise", Released 28/04/2012)
2 13.10 ("Saucy", Released 17/10/2013)
      [Unsupported]
3 14.04 ("Trusty", Released 17/04/2014)
4 15.04 ("Vivid", Released 17/04/2015)
      [Unsupported]
5 15.10 ("Willy", Released 22/10/2015)
6 16.04 ("Xenial", Released 17/04/2016)
7 16.10 ("Yakkety", Released 13/10/2016)

Enter number 0...7 (q=quit) ?7

Distro set to: Ubuntu 16.10

ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making
the application secure

Would you like to have this installer install the hplip specific
policy/profile (y=yes, n=no*, q=quit) ?

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all
REQUIRED dependencies are not installed and some of the HPLIP features will
not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 REQUIRED
pyqt4-dbus gui_qt4 REQUIRED
python-dbus fax REQUIRED
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
pyqt4 gui_qt4 REQUIRED
python-notify gui_qt5 OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus
Support for PyQt4)
warning: This installer cannot install 'pyqt4-dbus' for your distro/OS
and/or version.
error: Installation cannot continue without this dependency. Please
manually install this dependency and re-run this installer.

> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Maybe the missing package is
python-dbus-dev

What puzzle me is the following:
Normally the HPLIP installer correctly identifies the operating system and version, but in your case the first guess is "Debian stretch/sid". Something must be very special with your installation, that the automatic identification fails. Maybe this is also the cause that the identification and installation of the dependencies fails.

Revision history for this message
Rubem Mondaini (rmondaini) said :
#9

Hi Manfred, thanks.

I have the python-qt4-dbus:

############################################################################
rmondaini@rmondaini-hp:~$ sudo apt install python-dbus-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dbus-dev is already the newest version (1.2.4-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
#######################################################################

I try to install but I get the same error:

#######################################################################
rmondaini@rmondaini-hp:/tmp$ bash hplip-3.16.11.run
Creating directory hplip-3.16.11
Verifying archive integrity... All good.
Uncompressing HPLIP 3.16.11 Self Extracting
Archive...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.16.11)
HPLIP Installer ver. 5.1

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.

Installer log saved in: hplip-install_Fri-24-Mar-2017_11:15:43.log

/
note: Defaults for each question are maked with a '*'. Press <enter> to
accept the default.
error: debian-stretch/sid version is not supported, so all dependencies may
not be installed. However trying to install using debian-8.6 version
packages.

Press 'y' to continue auto installation. Press 'n' to quit auto
instalation(y=yes, n=no*): y

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common
options.
Custom mode allows you to choose installation options to fit specific
requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) :

Initializing. Please wait...

INTRODUCTION
------------
This installer will install HPLIP version 3.16.11 on your computer.
Please close any running package management systems now (YaST, Adept,
Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Debian stretch/sid.

Is "Debian stretch/sid" your correct distro/OS and version (y=yes*, n=no,
q=quit) ? n

DISTRO/OS SELECTION
-------------------

Choose the name of the distro/OS that most closely matches your system:

Num. Distro/OS Name
---- ------------------------
0 Mepis
1 Debian
2 SUSE Linux
3 Mandriva Linux
4 Fedora
5 Red Hat
6 Red Hat Enterprise Linux
7 Ubuntu
8 PCLinuxOS
9 Linux Mint
10 gOS
11 Linpus Linux
12 IGOS
13 Boss
14 Linux From Scratch

Enter number 0...14 (q=quit) ?7

Choose the version of "Ubuntu" that most closely matches your system:

Num. Distro/OS Version
---- ----------------------------------------
0 Unknown or not listed
1 12.04 ("Precise", Released 28/04/2012)
2 13.10 ("Saucy", Released 17/10/2013)
      [Unsupported]
3 14.04 ("Trusty", Released 17/04/2014)
4 15.04 ("Vivid", Released 17/04/2015)
      [Unsupported]
5 15.10 ("Willy", Released 22/10/2015)
6 16.04 ("Xenial", Released 17/04/2016)
7 16.10 ("Yakkety", Released 13/10/2016)

Enter number 0...7 (q=quit) ?7

Distro set to: Ubuntu 16.10

ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making
the application secure

Would you like to have this installer install the hplip specific
policy/profile (y=yes, n=no*, q=quit) ?

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all
REQUIRED dependencies are not installed and some of the HPLIP features will
not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 REQUIRED
pyqt4-dbus gui_qt4 REQUIRED
python-dbus fax REQUIRED
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
pyqt4 gui_qt4 REQUIRED
python-notify gui_qt5 OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus
Support for PyQt4)
warning: This installer cannot install 'pyqt4-dbus' for your distro/OS
and/or version.
error: Installation cannot continue without this dependency. Please
manually install this dependency and re-run this installer.
#######################################################################

On the other hand, if I force to install over the "wrong" distribution
(since as you pointed out it recognizes it wrong), I get:

#######################################################################
rmondaini@rmondaini-hp:/tmp$ bash hplip-3.16.11.run
Creating directory hplip-3.16.11
Verifying archive integrity... All good.
Uncompressing HPLIP 3.16.11 Self Extracting
Archive...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.16.11)
HPLIP Installer ver. 5.1

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.

Installer log saved in: hplip-install_Fri-24-Mar-2017_11:18:06.log

/
note: Defaults for each question are maked with a '*'. Press <enter> to
accept the default.
error: debian-stretch/sid version is not supported, so all dependencies may
not be installed. However trying to install using debian-8.6 version
packages.

Press 'y' to continue auto installation. Press 'n' to quit auto
instalation(y=yes, n=no*): y

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common
options.
Custom mode allows you to choose installation options to fit specific
requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) :

Initializing. Please wait...

INTRODUCTION
------------
This installer will install HPLIP version 3.16.11 on your computer.
Please close any running package management systems now (YaST, Adept,
Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Debian stretch/sid.

Is "Debian stretch/sid" your correct distro/OS and version (y=yes*, n=no,
q=quit) ?

ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:

INSTALLATION NOTES
------------------
NOTE: Disable the CD Sources in your apt sources.list or the install will
fail and hang.

Please read the installation notes. Press <enter> to continue or 'q' to
quit:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making
the application secure

Would you like to have this installer install the hplip specific
policy/profile (y=yes, n=no*, q=quit) ?

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all
REQUIRED dependencies are not installed and some of the HPLIP features will
not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 REQUIRED
pyqt4-dbus gui_qt4 REQUIRED
python-dbus fax REQUIRED
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
pyqt4 gui_qt4 REQUIRED
python-notify gui_qt5 OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus
Support for PyQt4)
warning: Missing REQUIRED dependency: pyqt4 (PyQt 4- Qt interface for
Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: pyqt5-dbus (PyQt 5 DBus - DBus
Support for PyQt5)
warning: Missing REQUIRED dependency: pyqt5 (PyQt 5- Qt interface for
Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: python-dbus (Python DBus - Python
bindings for DBus)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt4': python-notify
(Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: Missing OPTIONAL dependency for option 'gui_qt5': python-notify
(Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab
- PDF library for Python)

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
su -c "dpkg --configure -a" (Pre-depend step 1)
su -c "apt-get install -f" (Pre-depend step 2)
su -c "apt-get update" (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "apt-get install --force-yes -y python-qt4-dbus"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-qt4"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-dbus.mainloop.pyqt5"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y gtk2-engines-pixbuf"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-pyqt5"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-dbus"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-gobject"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-notify"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-notify"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-reportlab"'
Please wait, this may take several minutes...
error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for
PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for
Qt version 4.x))' is still missing.
error: A required dependency 'pyqt5-dbus (PyQt 5 DBus - DBus Support for
PyQt5)' is still missing.
error: A required dependency 'python-dbus (Python DBus - Python bindings
for DBus)' is still missing.

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for
PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for
Qt version 4.x))' is still missing.
error: A required dependency 'pyqt5-dbus (PyQt 5 DBus - DBus Support for
PyQt5)' is still missing.
error: A required dependency 'python-dbus (Python DBus - Python bindings
for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.

#######################################################################

Not sure what is the problem...

On Thu, Mar 23, 2017 at 9:08 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #584525 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Maybe the missing package is
> python-dbus-dev
>
> What puzzle me is the following:
> Normally the HPLIP installer correctly identifies the operating system and
> version, but in your case the first guess is "Debian stretch/sid".
> Something must be very special with your installation, that the automatic
> identification fails. Maybe this is also the cause that the identification
> and installation of the dependencies fails.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/hplip/+
> question/584525/+confirm?answer_id=7
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

There is something so specific on your system that the HPLIP installer wrongly identifies your system as Debian instead of Ubuntu, and this probably causes the installer to wrongly state that some packages are missing although they are there.

I suspect that Mendeley-Desktop is the cause for all this. (I see files with names like LibQt5DBus.so in the Mendeley Desktop installer file - files that seem related to the packages that are claimed missing, maybe the Mendeley-provided versions interfere with the Ubuntu-provided ones.)

Sorry, but I do not know anything about that Mendeley Desktop, and have no idea how to proceed with it.

Some remaining ideas:

There is one thing that could still be tested: The HPLIP installer tries to identify whether pyqt4-dbus is present by running the python code:
                from dbus.mainloop.qt import DBusQtMainLoop
What do you get if you run that in python?
(similar verification could be done for the other failing package tests)

There should be a HPLIP installer Debug log file created somewhere ("Installer log saved in: hplip-install_Fri-24-Mar-2017_11:18:06.log"), what are its contents?

Revision history for this message
Rubem Mondaini (rmondaini) said :
#11

Super thanks for helping, Manfred (and apologies for the late reply).

Regarding the python test, I tried:

##############################################################
rmondaini@rmondaini-hp:~$ ipython
Python 2.7.13 |Anaconda 4.3.0 (64-bit)| (default, Dec 20 2016, 23:09:15)
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: from dbus.mainloop.qt import DBusQtMainLoop
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-56bc56240269> in <module>()
----> 1 from dbus.mainloop.qt import DBusQtMainLoop

ImportError: No module named dbus.mainloop.qt
##############################################################
Is that what you meant?

Regarding the log file I don't get anything very new:

###############################################################
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mHP Linux Imaging and Printing System (ver.
3.16.11)[0m
hplip-install[17017]: info: :[01mHPLIP Installer ver. 5.1[0m
hplip-install[17017]: info: :
hplip-install[17017]: info: :Copyright (c) 2001-15 HP Development Company,
LP
hplip-install[17017]: info: :This software comes with ABSOLUTELY NO
WARRANTY.
hplip-install[17017]: info: :This is free software, and you are welcome to
distribute it
hplip-install[17017]: info: :under certain conditions. See COPYING file for
more details.
hplip-install[17017]: info: :
hplip-install[17017]: info: :Installer log saved in:
[01mhplip-install_Fri-24-Mar-2017_17:40:05.log[0m
hplip-install[17017]: info: :
hplip-install[17017]: info: :
note: Defaults for each question are maked with a '*'. Press <enter> to
accept the default.
error: debian-stretch/sid version is not supported, so all dependencies may
not be installed. However trying to install using debian-8.6 version
packages.
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mINSTALLATION MODE[0m
hplip-install[17017]: info: :[01m-----------------[0m
hplip-install[17017]: info: :Automatic mode will install the full HPLIP
solution with the most common options.
hplip-install[17017]: info: :Custom mode allows you to choose installation
options to fit specific requirements.
hplip-install[17017]: info: :
Initializing. Please wait...
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mINTRODUCTION[0m
hplip-install[17017]: info: :[01m------------[0m
hplip-install[17017]: info: :This installer will install HPLIP version
3.16.11 on your computer.
hplip-install[17017]: info: :Please close any running package management
systems now (YaST, Adept, Synaptic, Up2date, etc).
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mDISTRO/OS CONFIRMATION[0m
hplip-install[17017]: info: :[01m----------------------[0m
hplip-install[17017]: info: :Distro appears to be Debian stretch/sid.

hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mDISTRO/OS SELECTION[0m
hplip-install[17017]: info: :[01m-------------------[0m
hplip-install[17017]: info: :[01m
Choose the name of the distro/OS that most closely matches your system:
[0m
hplip-install[17017]: info: :Num. Distro/OS Name
hplip-install[17017]: info: :---- ------------------------
hplip-install[17017]: info: :0 Mepis
hplip-install[17017]: info: :1 Debian
hplip-install[17017]: info: :2 SUSE Linux
hplip-install[17017]: info: :3 Mandriva Linux
hplip-install[17017]: info: :4 Fedora
hplip-install[17017]: info: :5 Red Hat
hplip-install[17017]: info: :6 Red Hat Enterprise Linux
hplip-install[17017]: info: :7 Ubuntu
hplip-install[17017]: info: :8 PCLinuxOS
hplip-install[17017]: info: :9 Linux Mint
hplip-install[17017]: info: :10 gOS
hplip-install[17017]: info: :11 Linpus Linux
hplip-install[17017]: info: :12 IGOS
hplip-install[17017]: info: :13 Boss
hplip-install[17017]: info: :14 Linux From Scratch
hplip-install[17017]: info: :[01m
Choose the version of "Ubuntu" that most closely matches your system:
[0m
hplip-install[17017]: info: :Num. Distro/OS Version
hplip-install[17017]: info: :---- ----------------------------------------
hplip-install[17017]: info: :0 Unknown or not listed
hplip-install[17017]: info: :1 12.04 ("Precise", Released 28/04/2012)
hplip-install[17017]: info: :2 13.10 ("Saucy", Released 17/10/2013)
      [Unsupported]
hplip-install[17017]: info: :3 14.04 ("Trusty", Released 17/04/2014)
hplip-install[17017]: info: :4 15.04 ("Vivid", Released 17/04/2015)
      [Unsupported]
hplip-install[17017]: info: :5 15.10 ("Willy", Released 22/10/2015)
hplip-install[17017]: info: :6 16.04 ("Xenial", Released 17/04/2016)
hplip-install[17017]: info: :7 16.10 ("Yakkety", Released 13/10/2016)
hplip-install[17017]: info: :
Distro set to: Ubuntu 16.10
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mENTER ROOT/SUPERUSER PASSWORD[0m
hplip-install[17017]: info: :[01m-----------------------------[0m
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mSECURITY PACKAGES[0m
hplip-install[17017]: info: :[01m-----------------[0m
hplip-install[17017]: info: :AppArmor is installed.
hplip-install[17017]: info: :AppArmor protects the application from
external intrusion attempts making the application secure
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mRUNNING PRE-INSTALL COMMANDS[0m
hplip-install[17017]: info: :[01m----------------------------[0m
hplip-install[17017]: info: :OK
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mMISSING DEPENDENCIES[0m
hplip-install[17017]: info: :[01m--------------------[0m
hplip-install[17017]: info: :Following dependencies are not installed.
HPLIP will not work if all REQUIRED dependencies are not installed and some
of the HPLIP features will not work if OPTIONAL dependencies are not
installed.
hplip-install[17017]: info: :Package-Name Component
 Required/Optional
hplip-install[17017]: info: :pyqt5-dbus gui_qt5
 REQUIRED
hplip-install[17017]: info: :pyqt4-dbus gui_qt4
 REQUIRED
hplip-install[17017]: info: :python-dbus fax
 REQUIRED
hplip-install[17017]: info: :reportlab fax
 OPTIONAL
hplip-install[17017]: info: :pyqt5 gui_qt5
 REQUIRED
hplip-install[17017]: info: :pyqt4 gui_qt4
 REQUIRED
hplip-install[17017]: info: :python-notify gui_qt5
 OPTIONAL
hplip-install[17017]: info: :
hplip-install[17017]: info: :
hplip-install[17017]: info: :[01mINSTALL MISSING REQUIRED DEPENDENCIES[0m
hplip-install[17017]: info: :[01m-------------------------------------[0m
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus
Support for PyQt4)
warning: This installer cannot install 'pyqt4-dbus' for your distro/OS
and/or version.
error: Installation cannot continue without this dependency. Please
manually install this dependency and re-run this installer.
####################################################################

I have uninstalled Mendeley Desktop (via synaptic) and I still face the
same issues on the dependencies...

On Fri, Mar 24, 2017 at 4:34 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #584525 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> There is something so specific on your system that the HPLIP installer
> wrongly identifies your system as Debian instead of Ubuntu, and this
> probably causes the installer to wrongly state that some packages are
> missing although they are there.
>
> I suspect that Mendeley-Desktop is the cause for all this. (I see files
> with names like LibQt5DBus.so in the Mendeley Desktop installer file -
> files that seem related to the packages that are claimed missing, maybe
> the Mendeley-provided versions interfere with the Ubuntu-provided ones.)
>
> Sorry, but I do not know anything about that Mendeley Desktop, and have
> no idea how to proceed with it.
>
> Some remaining ideas:
>
> There is one thing that could still be tested: The HPLIP installer tries
> to identify whether pyqt4-dbus is present by running the python code:
> from dbus.mainloop.qt import DBusQtMainLoop
> What do you get if you run that in python?
> (similar verification could be done for the other failing package tests)
>
> There should be a HPLIP installer Debug log file created somewhere
> ("Installer log saved in: hplip-install_Fri-24-Mar-2017_11:18:06.log"),
> what are its contents?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/hplip/+
> question/584525/+confirm?answer_id=9
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

What output do you get for the commands

ls -l /usr/lib/python2.7/dist-packages/dbus/mainloop
dpkg -l | grep ' python-qt'

Revision history for this message
Rubem Mondaini (rmondaini) said :
#13

rmondaini@rmondaini-hp:~$ ls -l
/usr/lib/python2.7/dist-packages/dbus/mainloop
total 64
-rw-r--r-- 1 root root 1773 Apr 27 2016 glib.py
-rw-r--r-- 1 root root 807 Nov 4 09:59 glib.pyc
-rw-r--r-- 1 root root 2336 Apr 27 2016 __init__.py
-rw-r--r-- 1 root root 614 Nov 4 09:59 __init__.pyc
-rw-r--r-- 1 root root 23464 Aug 28 2016 pyqt5.x86_64-linux-gnu.so
-rw-r--r-- 1 root root 23488 May 26 2016 qt.x86_64-linux-gnu.so
rmondaini@rmondaini-hp:~$ dpkg -l | grep ' python-qt'
ii python-qt4
 4.11.4+dfsg-2 amd64 Python bindings
for Qt4
ii python-qt4-dbus
4.11.4+dfsg-2 amd64 D-Bus Support
for PyQt4

On Tue, Mar 28, 2017 at 2:53 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #584525 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What output do you get for the commands
>
> ls -l /usr/lib/python2.7/dist-packages/dbus/mainloop
> dpkg -l | grep ' python-qt'
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> You received this question notification because you asked the question.
>

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#14

This is unexpected:
The file qt.x86_64-linux-gnu.so exists in /usr/lib/python2.7/dist-packages/dbus/mainloop but the python instruction "from dbus.mainloop.qt import DBusQtMainLoop" fails with "No module named dbus.mainloop.qt"

My conclusion is that your python installation is not configured the normal way. This might also be the cause that the HPLIP installer does not correctly identify your operating system.

Apparently you are also using anaconda.
Maybe you have to use conda to install the dependent packages, e.g. "conda install -c anaconda pyqt=5.6.0" or whatever the correct command and package might be.

Revision history for this message
Rubem Mondaini (rmondaini) said :
#15

That was it! I uninstalled Anaconda and then I could correctly install
hplip. It did recognize my operational system (Ubuntu 16.10) and everything
went smoothly from there.

Thanks a bunch, Manfred!

Best,
Rubem

On Tue, Mar 28, 2017 at 3:33 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #584525 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> This is unexpected:
> The file qt.x86_64-linux-gnu.so exists in /usr/lib/python2.7/dist-packages/dbus/mainloop
> but the python instruction "from dbus.mainloop.qt import DBusQtMainLoop"
> fails with "No module named dbus.mainloop.qt"
>
> My conclusion is that your python installation is not configured the
> normal way. This might also be the cause that the HPLIP installer does
> not correctly identify your operating system.
>
> Apparently you are also using anaconda.
> Maybe you have to use conda to install the dependent packages, e.g. "conda
> install -c anaconda pyqt=5.6.0" or whatever the correct command and package
> might be.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/hplip/+
> question/584525/+confirm?answer_id=13
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/584525
>
> You received this question notification because you asked the question.
>

Revision history for this message
Rubem Mondaini (rmondaini) said :
#16

Thanks Manfred Hampl, that solved my question.