Installing hplip 3.16.11 in Ubuntu 16.10 - printer M104w
I am trying to make my HP printer M104w work in my ubuntu 16.10. As I have noticed from HP website (http://
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@
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
|
#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
|
#2 |
Also, what is the output of:
lsb_release -a; uname -a; apt-cache policy hplip
Thanks
Revision history for this message
|
#3 |
Dear Manfred,
I tried:
#######
rmondaini@
[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@
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+
Candidate: 3.16.7+
Version table:
*** 3.16.7+
500 http://
100 /var/lib/
#######
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:/
>
> 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:/
> question/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#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
|
#5 |
rmondaini@
-e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64
(20160420.1)]/ xenial main restricted
2 deb-src http://
#Added by software-properties
3
4 # See http://
upgrade to
5 # newer versions of the distribution.
6 deb http://
7 deb-src http://
#Added by software-properties
8
9 ## Major bug fix updates produced after the final release of the
10 ## distribution.
11 deb http://
12 deb-src http://
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://
20 # deb-src http://
21 deb http://
22 deb-src http://
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://
30 # deb-src http://
31 deb http://
32 # deb-src http://
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://
restricted universe multiverse
40 deb-src http://
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://
47 deb-src http://
48
49 deb http://
50 deb-src http://
main multiverse restricted #Added by software-properties
51 deb http://
52 # deb-src http://
53 deb http://
54 # deb-src http://
multiverse
55 deb http://
56 deb-src http://
/etc/apt/
/etc/apt/
1 deb http://
disabled on upgrade to yakkety
2 # deb-src http://
main
/etc/apt/
1 # deb-src http://
main
2 # deb-src http://
main
/etc/apt/
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://
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://
/etc/apt/
/etc/apt/
1 deb http://
/etc/apt/
1 # This file makes sure that Opera Browser is kept up-to-date
2 # as part of regular system upgrades
3
/etc/apt/
/etc/apt/
1 deb http://
disabled on upgrade to yakkety
/etc/apt/
/etc/apt/
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://
# disabled on upgrade to yakkety
/etc/apt/
On Thu, Mar 23, 2017 at 6:44 PM, Mark Rijckenberg <
<email address hidden>> wrote:
> Your question #584525 on hplip in Ubuntu changed:
> https:/
>
> 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:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#6 |
What is the full Terminal output of these commands?
sudo apt update
sudo apt install -f
sudo apt install snmp-mibs-
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-
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:/
bash hplip-3.16.11.run
# Still same error messages after running these commands?
Revision history for this message
|
#7 |
>
>
> Mark Rijckenberg requested more information:
> What is the full Terminal output of these commands?
>
> sudo apt update
>
>> rmondaini@
>
> Hit:1 http://
>>
>>
>
> Hit:2 http://
>>
>>
>
> Hit:3 http://
>>
>>
>
> Ign:4 http://
>>
>>
>
> Hit:5 http://
>>
>>
>
> Hit:6 http://
>>
>
> Hit:7 http://
>>
>
> Hit:8 http://
>>
>
> Ign:9 http://
>>
>
> Hit:11 http://
>>
>
> Get:12 http://
>
> Hit:13 http://
>
> Get:15 http://
>> kB]
>
> Get:16 http://
>> 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@
>
> 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-
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> snmp-mibs-
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install libsane-dev
>
>> rmondaini@
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> libsane-dev is already the newest version (1.0.25+
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install libsensors4-dev
>
>> rmondaini@
>
> 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@
>
> 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@
>
> 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@
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> libpci-dev is already the newest version (1:3.3.
>
> libpci-dev set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install python-
>
>> rmondaini@
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> python-
>
> python-
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> sudo apt install python-reportlab
>
>> rmondaini@
>
> 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@
>
> 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@
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@
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsnmp-dev is already the newest version (5.7.3+
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
> sudo apt install libcupsfilters-dev
>
>> rmondaini@
>
> Reading package lists... Done
>
> Building dependency tree
>
> Reading state information... Done
>
> libcupsfilters-dev is already the newest version (1.11.4-
>
> libcupsfilters-dev set to manually installed.
>
> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
>
>
> cd /tmp
>
> wget
> https:/
> 11/hplip-
rmondaini@
https:/
--2017-03-23 19:36:38--
https:/
Resolving downloads.
216.34.181.59
Connecting to downloads.
(downloads.
connected.
HTTP request sent, awaiting response... 302 Found
Location:
https:/
[following]
--2017-03-23 19:36:44--
https:/
Resolving superb-
209.61.193.20
Connecting to superb-
(superb-
connected.
HTTP request sent, awaiting response... 200 OK
Length: 23105644 (22M) [application/
Saving to: ‘hplip-3.16.11.run’
hplip-3.16.11.run
50%[==
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@
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_
/
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@
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_
/
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:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#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
|
#9 |
Hi Manfred, thanks.
I have the python-qt4-dbus:
#######
rmondaini@
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@
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_
/
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@
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_
/
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-
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y gtk2-engines-
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:/
>
> 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:/
> question/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#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:
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_
Revision history for this message
|
#11 |
Super thanks for helping, Manfred (and apologies for the late reply).
Regarding the python test, I tried:
#######
rmondaini@
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-
----> 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[
hplip-install[
3.16.11)[0m
hplip-install[
hplip-install[
hplip-install[
LP
hplip-install[
WARRANTY.
hplip-install[
distribute it
hplip-install[
more details.
hplip-install[
hplip-install[
[01mhplip-
hplip-install[
hplip-install[
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[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
solution with the most common options.
hplip-install[
options to fit specific requirements.
hplip-install[
Initializing. Please wait...
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
3.16.11 on your computer.
hplip-install[
systems now (YaST, Adept, Synaptic, Up2date, etc).
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
Choose the name of the distro/OS that most closely matches your system:
[0m
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
Choose the version of "Ubuntu" that most closely matches your system:
[0m
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
[Unsupported]
hplip-install[
hplip-install[
[Unsupported]
hplip-install[
hplip-install[
hplip-install[
hplip-install[
Distro set to: Ubuntu 16.10
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
external intrusion attempts making the application secure
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
hplip-install[
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[
Required/Optional
hplip-install[
REQUIRED
hplip-install[
REQUIRED
hplip-install[
REQUIRED
hplip-install[
OPTIONAL
hplip-install[
REQUIRED
hplip-install[
REQUIRED
hplip-install[
OPTIONAL
hplip-install[
hplip-install[
hplip-install[
hplip-install[
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:/
>
> 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_
> what are its contents?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https:/
> question/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#12 |
What output do you get for the commands
ls -l /usr/lib/
dpkg -l | grep ' python-qt'
Revision history for this message
|
#13 |
rmondaini@
/usr/lib/
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_
-rw-r--r-- 1 root root 23488 May 26 2016 qt.x86_
rmondaini@
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:/
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What output do you get for the commands
>
> ls -l /usr/lib/
> 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:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#14 |
This is unexpected:
The file qt.x86_
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
|
#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:/
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> This is unexpected:
> The file qt.x86_
> 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:/
> question/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#16 |
Thanks Manfred Hampl, that solved my question.