Unable to install hplip3.20.8 et subs

Asked by John Gibbons

I need to replace printer: HP OfficeJet 6950
Newer printers require HPLIP later than 3.20.6
Unable to install hplip-3.23.8 Have also tried hplip-3.22.10 hplip-3.21.12 and hplip-3.20.11
All fail with "make". Preceding step "make-clean" is OK
Hardware is Dell Inspiron 530 with 2GiB RAM.
SATA IDE mode limits kernel to 4.4.0 and hence running Xubuntu 16.04 with Ubuntu PRO

Failure to read /etc/cups/ppd/OfficeJet_6950.ppd ppd file appears to be a permissions issue which is reset to
Owner root R/W Group lp R-only Others None
by hplip installer

Any help would be appreciated
tks
jg

Output from hp-check follows ...

jg@jg-Inspiron530:~$ hp-check -t
Saving output in log file: /home/jg/hp-check.log

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

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

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

 Kernel: 4.4.0-251-generic #285-Ubuntu SMP Fri Feb 2 23:04:19 UTC 2024 GNU/Linux
 Host: jg-Inspiron530
 Proc: 4.4.0-251-generic #285-Ubuntu SMP Fri Feb 2 23:04:19 UTC 2024 GNU/Linux
 Distribution: 12 16.04
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.20.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 16.04 version

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

[hplip]
version=3.20.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.20.6
html=/usr/share/doc/hplip-3.20.6
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
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 23/02/24 17:10:02
version = 3.20.6

[upgrade]
notify_upgrade = true
last_upgraded_time = 1708707874
pending_upgrade_time = 0

[last_used]
device_uri = hp:/net/OfficeJet_6950?ip=192.168.1.110

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------
| COMPILEDEP |
--------------

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 5.4.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -

------------------------
| General Dependencies |
------------------------

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.2 OK -
 python-xml Python XML libraries REQUIRED - 2.1.0 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
 sane-devel SANE - Scanning library development files REQUIRED - 1.0.32 OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 6.2.2 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.11.4 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.23 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.12 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.3 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.3.0 OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.1.3 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.12 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 sane SANE - Scanning library REQUIRED - 1.0.32 OK -

----------------------
| Scan Configuration |
----------------------

 scanext Scan-SANE-Extension REQUIRED - 3.20.6 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.20.6 OK 'hpaio found in /etc/sane.d/dll.conf'

-------------------------
| External Dependencies |
-------------------------

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.32 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.3 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.17.1 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 dbus DBus - Message bus system REQUIRED - 1.10.6 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.32 OK -

---------------------
| Python Extentions |
---------------------

 hpmudext IO-Extension REQUIRED - 3.20.6 OK -
 cupsext CUPS-Extension REQUIRED - 3.20.6 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/net/OfficeJet_6950?ip=192.168.1.110' is a Hewlett-Packard OfficeJet_6950 all-in-one

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

OfficeJet_6950
--------------
Type: Printer
Device URI: hp:/net/OfficeJet_6950?ip=192.168.1.110
PPD: /etc/cups/ppd/OfficeJet_6950.ppd
warning: Failed to read /etc/cups/ppd/OfficeJet_6950.ppd ppd file
PPD Description:
Printer ready to printr OfficeJet_6950 is idle. enabled since Fri 23 Feb 2024 14:04:16 GMT
Communication status: Good

OfficeJet_6950_fax
------------------
Type: Fax
Device URI: hpfax:/net/OfficeJet_6950?ip=192.168.1.110
PPD: /etc/cups/ppd/OfficeJet_6950_fax.ppd
PPD Description: HP Fax4 hpcups
Printer File "/usr/lib/cups/filter/hpcupsfax" not available: No such file or directory -
Communication status: Good

--------------
| PERMISSION |
--------------

No errors or warnings.

Done.
jg@jg-Inspiron530:~$

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
John Gibbons (jg1) said :
#1

Since no response to my post and need for printer urgent, I acquired an HP ENVY 6430e All-in One printer scanner as support for 6400 series was supposed to have been provided fro hplip-3.20.5. Sadly this was incomplete and there was a further update at hplip-3.21.4 which enables connection to the HP6430e.
hplip-3.21.4 install fails at the 'make' command - status code 2
Doing a manual install from tarball hplip-3.21.4.tar.gz following the instructions given on the developers.hp.com website ....

jg@jg-Inspiron530:~$ sudo apt-get update - is OK
jg@jg-Inspiron530:~$ sudo apt-get install --assume-yes libcups2 cups libcups2-dev cups-bsd cups-client libcupsimage2-dev libdbus-1-dev build-essential ghostscript openssl libjpeg62-dev libsnmp-dev libtool libusb-1.0-0-dev wget python-imaging policykit-1 policykit-1-gnome python-qt4 python-qt4-dbus python-dbus python-gobject python-dev python-notify python python-reportlab libsane libsane-dev sane-utils xsane - goes OK for a bit but ends ...

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libjpeg-turbo8-dev : Conflicts: libjpeg62-dev but 1:6b2-2ubuntu0.1~esm1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

However, looking at the installed packages via synaptic, I see that libjpeg-turbo8-dev (1.4.2-0ubuntu3.4+esm1) + libjpeg62-dev (1:6b2-2ubuntu0.1~esm1) are both installed with no issues reported by synaptic.

If I press on and expand the tarball ...
jg@jg-Inspiron530:~$ tar xvfz hplip-3.21.4.tar.gz
jg@jg-Inspiron530:~$ cd hplip-3.21.4
jg@jg-Inspiron530:~/hplip-3.21.4$ ./configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-udev-acl-rules --enable-qt4 --disable-libusb01_build --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

but all seems to be OK until ...

jg@jg-Inspiron530:~/hplip-3.21.4$ make
 cd . && /bin/bash /home/jg/hplip-3.21.4/missing --run automake-1.11 --foreign Makefile
/home/jg/hplip-3.21.4/missing: line 52: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system. You should only need it if
         you modified `Makefile.am', `acinclude.m4' or `configure.in'.
         You might want to install the `Automake' and `Perl' packages.
         Grab them from any GNU archive site.
 cd . && /bin/bash ./config.status Makefile depfiles
config.status: creating Makefile
config.status: executing depfiles commands
/bin/bash ./libtool --tag=CC --mode=link gcc -DCONFDIR=\"/etc/hp\" -I/usr/include/avahi-client -I/usr/include/avahi-core -I/usr/include/avahi-common -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DCONFDIR=\"/etc/hp\" -version-info 0:1:0 -L/usr/lib64 -o libhpdiscovery.la -rpath /usr/lib64 libhpdiscovery_la-avahiDiscovery.lo -lnetsnmp -lcrypto -lavahi-client -lavahi-core -lavahi-common -ldbus-1 -lavahi-common -lavahi-client -lcrypto
libtool: link: gcc -shared -fPIC -DPIC .libs/libhpdiscovery_la-avahiDiscovery.o -L/usr/lib64 -lnetsnmp -lavahi-core -ldbus-1 -lavahi-common -lavahi-client -lcrypto -Wl,-soname -Wl,libhpdiscovery.so.0 -o .libs/libhpdiscovery.so.0.0.1
/usr/bin/ld: cannot find -lavahi-core
collect2: error: ld returned 1 exit status
Makefile:5272: recipe for target 'libhpdiscovery.la' failed
make: *** [libhpdiscovery.la] Error 1

Running the same sequence of commands on a laptop with the same distro (Xubuntu 16.04) albeit with a later kernel because of SATA/IDE limitations on the desktop, is OK.

Any help would be much appreciated before I return the printer to HP.

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

Try
sudo apt-get install libavahi-core-dev

or if that tells "already installed"

sudo apt-get install --reinstall libavahi-core-dev

Revision history for this message
John Gibbons (jg1) said :
#3

Manfred, Thank you !
Thanks for going through my problem and providing such a simple and effective answer!

I uninstalled libjpeg-turbo8-dev which removed the conflict in the dependecies and installed libavahi-core-dev. The installer then ran like a dream and automatically updated libjpeg62-dev to libjpeg-turbo8-dev. The new printer was then installed quite happily.

Many thanks
jg

Revision history for this message
John Gibbons (jg1) said :
#4

Thanks Manfred Hampl, that solved my question.