Unable to install hplip 3.18.12 on linux mint 19.1

Bug #1812582 reported by FN
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned
hplip (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

RESTART OR RE-PLUG IS REQUIRED
------------------------------
If you are installing a USB connected printer, and the printer was plugged in when you started this installer, you
will need to either restart your PC or unplug and re-plug in your printer (USB cable only). If you choose to restart,
run this command after restarting: hp-setup (Note: If you are using a parallel connection, you will have to restart
your PC. If you are using network/wireless, you can ignore and continue).

Restart or re-plug in your printer (r=restart, p=re-plug in*, i=ignore/continue, q=quit) : i

PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
Do you want to setup printer in GUI mode? (u=GUI mode*, i=Interactive mode) : u

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

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

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
Segmentation fault
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.

Segmentation fault
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.

Done.

RE-STARTING HP_SYSTRAY
----------------------

HP Linux Imaging and Printing System (ver. 3.18.12)
System Tray Status Service ver. 2.0

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

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)

:~/Downloads$ hp-plugin

HP Linux Imaging and Printing System (ver. 3.18.12)
Plugin Download and Install Utility ver. 2.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.

HP Linux Imaging and Printing System (ver. 3.18.12)
Plugin Download and Install Utility ver. 2.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.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /<HOME_DIR>/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.18.12 Plugin Self Extracting Archive.........................................................

HP Linux Imaging and Printing System (ver. 3.18.12)
Plugin Installer ver. 3.0

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

Plug-in version: 3.18.12
Installed HPLIP version: 3.18.12
Number of files to install: 55

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.

From kernel log

hplip/plugin.py" name="/etc/xdg/Trolltech.conf" pid=4238 comm="python" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
[ 9015.754212] audit: type=1400 audit(1548011993.816:100): apparmor="DENIED" operation="file_lock" profile="/usr/share/hplip/plugin.py" name="/run/sudo/ts/<USER>" pid=4240 comm="sudo" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[ 9015.862631] audit: type=1400 audit(1548011993.924:101): apparmor="DENIED" operation="file_lock" profile="/usr/share/hplip/plugin.py" name="/run/utmp" pid=4240 comm="sudo" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[ 9015.995294] audit: type=1400 audit(1548011994.056:102): apparmor="DENIED" operation="file_lock" profile="/usr/share/hplip/plugin.py" name="/run/sudo/ts/<USER>" pid=4242 comm="sudo" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[ 9016.106213] audit: type=1400 audit(1548011994.168:103): apparmor="DENIED" operation="file_lock" profile="/usr/share/hplip/plugin.py" name="/run/utmp" pid=4242 comm="sudo" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[ 9016.114315] audit: type=1400 audit(1548011994.176:104): apparmor="DENIED" operation="open" profile="/usr/share/hplip/plugin.py" name="/home/.ecryptfs/<USER>/.Private/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920ecJj9Pt4lU9dfOWMTFwQYvk--/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eHjAxQuUSzNFFOdW3jm3H7k--/ECRYPTFS_FNEK_ENCRYPTED.FXZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eaW2zvma1kEIjAS0cwDBZOKA9gPAlivefjKuXjwidMp2-" pid=4243 comm="python" requested_mask="w" denied_mask="w" fsuid=0 ouid=1000
[ 9016.114378] audit: type=1400 audit(1548011994.176:105): apparmor="DENIED" operation="open" profile="/usr/share/hplip/plugin.py" name="/home/.ecryptfs/<USER>/.Private/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920ecJj9Pt4lU9dfOWMTFwQYvk--/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eHjAxQuUSzNFFOdW3jm3H7k--/ECRYPTFS_FNEK_ENCRYPTED.FXZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eaW2zvma1kEIjAS0cwDBZOKA9gPAlivefjKuXjwidMp2-" pid=4243 comm="python" requested_mask="w" denied_mask="w" fsuid=0 ouid=1000
[ 9016.186780] audit: type=1400 audit(1548011994.248:106): apparmor="DENIED" operation="open" profile="/usr/share/hplip/plugin.py" name="/home/.ecryptfs/<USER>/.Private/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920ecJj9Pt4lU9dfOWMTFwQYvk--/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eHjAxQuUSzNFFOdW3jm3H7k--/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920e1RYG.lYwop-QFddC5DZWIk--" pid=4243 comm="python" requested_mask="w" denied_mask="w" fsuid=0 ouid=1000
[ 9016.190209] audit: type=1400 audit(1548011994.252:107): apparmor="DENIED" operation="open" profile="/usr/share/hplip/plugin.py" name="/home/.ecryptfs/<USER>/.Private/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920ecJj9Pt4lU9dfOWMTFwQYvk--/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eHjAxQuUSzNFFOdW3jm3H7k--/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920e1RYG.lYwop-QFddC5DZWIk--" pid=4243 comm="python" requested_mask="w" denied_mask="w" fsuid=0 ouid=1000
[ 9016.199871] audit: type=1400 audit(1548011994.260:108): apparmor="DENIED" operation="open" profile="/usr/share/hplip/plugin.py" name="/home/.ecryptfs/<USER>/.Private/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920ecJj9Pt4lU9dfOWMTFwQYvk--/ECRYPTFS_FNEK_ENCRYPTED.FWZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eHjAxQuUSzNFFOdW3jm3H7k--/ECRYPTFS_FNEK_ENCRYPTED.FXZXLgkUO3wJxkRDnmEPEkMeOnALnTtt920eaW2zvma1kEIjAS0cwDBZOTmtNSeLXbLHjbwAeADKu-2-" pid=4243 comm="python" requested_mask="w" denied_mask="w" fsuid=0 ouid=1000
[ 9016.199977] audit: type=1400 audit(1548011994.260:109): apparmor="DENIED" operation="mknod" profile="/usr/share/hplip/plugin.py" name="/etc/udev/rules.d/S99-2000S1.rules" pid=4243 comm="python" requested_mask="c" denied_mask="c" fsuid=0 ouid=0

Can you not deal with encrypted home dirs?

Revision history for this message
FN (francesconorth) wrote :

HP Check log

Revision history for this message
Feris-juan (feris-juan) wrote :
Download full text (10.6 KiB)

Hi, I've got the same problem, I've got:
error: Python gobject/dbus may be not installed
error: Plug-in install failed.
 then the script stops and a widow with: lug-In install failed appears.

My Python 2.7.15rc1

My hp-check log:

-desktop:~$ hp-check log
Saving output in log file: /home/juan/hp-check.log

HP Linux Imaging and Printing System (ver. 3.18.12)
Dependency/Version Check Utility ver. 15.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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

warning: 22-19.1 version is not supported. Using 22-19 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 GNU/Linux
 Host: juan-desktop
 Proc: 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 GNU/Linux
 Distribution: 22 19.1
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.18.12
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 22 distro 19.1 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.18.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.18.12
html=/usr/share/doc/hplip-3.18.12
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cu...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
Revision history for this message
FN (francesconorth) wrote :

Just to say tried hplip 3.19.1. I know it doesn't say Mint 19.1 is supported in the release notes, but I thought I might as well give it a try.

Revision history for this message
Feris-juan (feris-juan) wrote :

I also tried hplip 3.19.1, it just can't download the plugin, so I've downloaded and installed without problems, however, the hplip installation stops at the plugin installation.

Revision history for this message
FN (francesconorth) wrote :

Yes you are correct, its just the plugin that doesn't install.
Will hplip support Mint 19.1 officially? I see in the latest release you have added support for other distros.

Revision history for this message
Martin Assarsson (assar63) wrote :

This problem also apply to Ubuntu Bionic Beaver.

:~$ hp-plugin

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Download and Install Utility ver. 2.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.

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Download and Install Utility ver. 2.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.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/martin/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.1 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Installer ver. 3.0

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

Plug-in version: 3.19.1
Installed HPLIP version: 3.19.1
Number of files to install: 64

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.

Revision history for this message
FN (francesconorth) wrote :

Just tried 3.19.3 - same issue as before

HP Linux Imaging and Printing System (ver. 3.19.3)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 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.

HP Linux Imaging and Printing System (ver. 3.19.3)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 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.

Checking for network connection...
Downloading plug-in from:
Plugin is not accessible. Trying to download it from fallback location: [https://developers.hp.com/sites/default/files/hplip-3.19.3-plugin.run]
Receiving digital keys: /usr/bin/gpg --homedir /home/fen/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.3 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.3)
Plugin Installer ver. 3.0

Copyright (c) 2001-18 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.

Plug-in version: 3.19.3
Installed HPLIP version: 3.19.3
Number of files to install: 64

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Revision history for this message
FN (francesconorth) wrote :

Note that's with Mint 19.1 which 3.19.3 is supposed to supoprt

Revision history for this message
FN (francesconorth) wrote :

HP check log

So as before I had to install the plugin manually and that's when the error occurred

Revision history for this message
Umesh Mahindrakar (umesh.mahindrakar) wrote :

Hi Francesconorth,

You can install plugin manually by executing
sh hplip-3.119.3-plugin.run file.

Thanks,
Umesh

Revision history for this message
Umesh Mahindrakar (umesh.mahindrakar) wrote :

sh hplip-3.19.3-plugin.run file

Changed in hplip:
status: New → In Progress
Revision history for this message
FN (francesconorth) wrote :

So did that and then tried to print a test page.

Gota print error

I then hit diagnose and get the attached log

sudo journalctl -u cups.service --since="2019-04-16 22:00" --until="2019-04-16 22:37:17"
-- Logs begin at Sat 2019-01-19 18:54:40 GMT, end at Tue 2019-04-16 22:38:57 BST. --
Apr 16 22:08:56 xps13 systemd[1]: Stopping CUPS Scheduler...
Apr 16 22:08:56 xps13 systemd[1]: Stopped CUPS Scheduler.
-- Reboot --
Apr 16 22:10:46 xps13 systemd[1]: Started CUPS Scheduler.
Apr 16 22:28:58 xps13 hpcups[6234]: prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2
Apr 16 22:29:54 xps13 hpcups[6324]: prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2
Apr 16 22:34:03 xps13 hpcups[6720]: prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2

And the attached log

Revision history for this message
Umesh Mahindrakar (umesh.mahindrakar) wrote :

Hi Francesconorth,

Could you check the hplip version
dpkg -l | grep hplip
uninstall the default hplip package which come default with distro.
sudo apt-get remove <output of dpkg -l>

Then do fresh install of hplip-3.19.3 and install plugin manually using sh for the same hplip version.

Thanks,
Umesh

Revision history for this message
FN (francesconorth) wrote :

1) Uninstalled hplip-3.17.1
2) Did a fresh install of hplip-3.19.3
3) Installed the plugin

Still getting

-- Reboot --
Apr 17 20:28:21 xps13 systemd[1]: Started CUPS Scheduler.
Apr 17 20:33:22 xps13 systemd[1]: Stopping CUPS Scheduler...
Apr 17 20:33:22 xps13 systemd[1]: Stopped CUPS Scheduler.
Apr 17 20:33:22 xps13 systemd[1]: Started CUPS Scheduler.
Apr 17 22:48:38 xps13 hpcups[24442]: prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2
Apr 17 22:49:23 xps13 hpcups[24471]: prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2
Apr 17 22:51:08 xps13 hpcups[24526]: prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2

When I print a test page

Revision history for this message
Umesh Mahindrakar (umesh.mahindrakar) wrote :

Hi Francesconorth,

Could you remove the cups and re-install cups with the following commands

apt-get remove --purge cups
apt-get install cups

Thanks,
Umesh

Revision history for this message
FN (francesconorth) wrote :

Get the following error see attached

Revision history for this message
Umesh Mahindrakar (umesh.mahindrakar) wrote :

Hi Francesconorth,

I think hplip got uninstalled due to that hpcups filter is missing and you are seeing the error. Could you install hplip.

Thanks,
Umesh

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.