HPLIP install revisited (SOLVED)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Slowpoke47
Level 5
Level 5
Posts: 517
Joined: Sun Aug 07, 2016 12:41 pm

HPLIP install revisited (SOLVED)

Post by Slowpoke47 »

Recently moved onto new desktop, Dell Optiplex 5060, running Mint Mate 20.3. Network printer is HP Laser Jet M1522nf multifunction. Previous PC, older Dell Inspiron, ran hplip 3.22.4, installed when released April 2022. This driver pkg supported all printer functions- print, copy, fax, scan.

New pc had hplip 3.21.8 pre-installed, but was unable to fax files from directories, a needed function. Several attempts made to replace this software, various glitches encountered, documented here: viewtopic.php?f=51&t=381212 No need to recount chapter and verse again.

Running hp-check earlier today confirmed installed hplip 3.22.4 (one of my efforts) but as mentioned, fax function did not work. BUT- a crucial piece of info in that terminal output- "Mint 20.3 is not compatible with automatic hplip installation" (.run file). V. 3.22.4 is my preferred version because I had already used it in the old pc with no drama, it had just performed as expected.

Next move was to follow this link: https://www.edoardovignati.it/how-to-in ... on-ubuntu/ while substituting my preferred version for the 3.22.6 shown in the tutorial. Started with the appropriate tarball file downloaded from SourceForge, followed the steps carefully, and now hp-check confirms a fully realized install, all dependencies included.

Note: Device Manager function not established until restart, no advice to that effect, just a lucky guess.
Last edited by LockBot on Fri May 12, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
1000
Level 6
Level 6
Posts: 1040
Joined: Wed Jul 29, 2020 2:14 am

Re: HPLIP install revisited

Post by 1000 »

.run file is for advanced user.
Are you unable to just copy important files to a separate medium and install Linux Mint 21 with newer hplip from repository ?
Slowpoke47
Level 5
Level 5
Posts: 517
Joined: Sun Aug 07, 2016 12:41 pm

Re: HPLIP install revisited

Post by Slowpoke47 »

1000 wrote: Sun Nov 13, 2022 8:57 pm .run file is for advanced user.
Are you unable to just copy important files to a separate medium and install Linux Mint 21 with newer hplip from repository ?
.run file required for the HP automatic installer, which I used on my old computer to install hplip. That was not advanced at all, actually simpler than the recent "manual" install using the tarball. Could have saved myself some head scratching if I had thought to run

Code: Select all

 hp-check
sooner.

No reason to update from 20.3, in fact there have been some rollout issues with 21. When 20.3 nears EOS I'll update to a newer OS.
1000
Level 6
Level 6
Posts: 1040
Joined: Wed Jul 29, 2020 2:14 am

Re: HPLIP install revisited

Post by 1000 »

I tried to put everything together.
printer = Laser Jet M1522nf.

new = Optiplex 5060 = Mint Mate 20.3 = hplip 3.21.8 , hplip 3.22.4 = unable to fax files from directories,
old = Dell Inspiron = system ? = hplip 3.22.4 = worked


Linux Mint 20 is based on Ubuntu 20.04.
https://packages.ubuntu.com/search?suit ... ords=hplip
3.20.3 hplip


But 3.22.4 is not listed in Synaptic, which shows just 4 elements of v. 3.17.10 as being installed, this driver pkg came with the Mate 19.2 OS.
3.21.8, included with the new Mate 20.3 OS, returns an error message

#========================{
Printer status: printer HP_LaserJet_M1522nf_MFP_fax disabled since Mon 12 Sep 2022 03:20File "/usr/lib/cups/filter/hpcupsfax" not available: No such file or directory
#========================}

Code: Select all

$ apt-file search hpcupsfax
printer-driver-hpcups: /usr/lib/cups/filter/hpcupsfax
Can you check if you have installed printer-driver-hpcups ?
From command " apt-cache show printer-driver-hpcups "
I guess it's part of the hplip package ( Source: hplip )

Edited

I tried also search file HP_LaserJet_M1522nf_MFP_fax.ppd
on https://packages.ubuntu.com/search?suit ... n=contents
but without result.
File name I get from :
Type: Fax
Device URI: hpfax:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.4
PPD: /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax.ppd ppd file
Slowpoke47
Level 5
Level 5
Posts: 517
Joined: Sun Aug 07, 2016 12:41 pm

Re: HPLIP install revisited

Post by Slowpoke47 »

hplip 3.22.4 was not the default pkg in that Inspiron. I installed it to replace the default (don't remember what that was) when it was released by HP earlier this year (22= year 4=month). The goal then, same as now, was the ability to fax files from home directories. Since that install was the new release, all I did was to download the file and start the install on the HP site. That was a .run file, and the old OS was able to handle automatic installation.

Since that hplip version ran all printer functions- print, copy, fax, scan- it was a known quantity. The new OS, 20.3, has 3.21.8 preinstalled in Synaptic, but fax wasn't in its repertoire. I tried to duplicate my successful effort with 3.22.4, only to have all kinds of errors. Once it dawned on me to run <hp-check> the problem was identified, as mentioned. As of a couple of days ago, all functions up and running. I started this followup thread in case there are others who might want to follow this lead.

Your posted code did not work. Not sure whether the hpcups pkg is installed or not, but as stated, everything is tested and works 100%.

If you want to upgrade your hplip pkg, it's not especially difficult. My confidence level with CLI is just medium.
1000
Level 6
Level 6
Posts: 1040
Joined: Wed Jul 29, 2020 2:14 am

Re: HPLIP install revisited

Post by 1000 »

As of a couple of days ago, all functions up and running. I started this followup thread in case there are others who might want to follow this lead.
- Cool 8)

apt-file command may not work. (probably not installed by default)
Then you should get a message that you can install. ( for example from Synaptic package manager )
I used apt-file to find the file in the entire repository ( probably Ubuntu and Mint if are active )
If it found, it returns the name of the package the file is in.
Advantage: i don't need to have package or file installed and I can find it.

apt-cache with option show returns information about package from repository.
Also package doesn't need to be installed and it will always return the information.

The mentioned search engine https://packages.ubuntu.com/
is a bit better than apt-file because it can be found in various repositories (for older and newer systems)
Slowpoke47
Level 5
Level 5
Posts: 517
Joined: Sun Aug 07, 2016 12:41 pm

Re: HPLIP install revisited

Post by Slowpoke47 »

Here's the output from <hp-check>. There are 2 lines referencing cups but final line says "no errors or warnings". Nothing further to be done with this.
steve@steve-OptiPlex-5060:~$ hp-check
/usr/bin/hp-check:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if 'getfacl' not in g and '' is not g and 'file' not in g:
Saving output in log file: /home/steve/hp-check.log

HP Linux Imaging and Printing System (ver. 3.22.4)
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: 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 GNU/Linux
Host: steve-OptiPlex-5060
Proc: 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 GNU/Linux
Distribution: 22 20.3
Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.22.4
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for linuxmint distro 20.3 version

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

[hplip]
version=3.22.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.22.4
html=/usr/share/doc/hplip-3.22.4
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.22.4
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
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:
[plugin]
installed = 1
eula = 1
version = 3.22.4



Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1668266330
pending_upgrade_time = 0

[installation]
date_time = 11/15/22 08:33:10
version = 3.22.4


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

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

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

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

libjpeg libjpeg - JPEG library REQUIRED - - OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.3.1 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.3.1 OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane SANE - Scanning library REQUIRED - - OK -
sane-devel SANE - Scanning library development files REQUIRED - - OK -
libavahi-dev libavahi-dev REQUIRED - - OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.8 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.10 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
python3-pyqt5-dbus PyQt 5 DBus - DBus Support for PyQt5 OPTIONAL 5.0 5.14.1 OK -
python3-pyqt5 PyQt 5- Qt interface for Python (for Qt version 4.x) REQUIRED 5.0 5.14.1 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
python3-xml Python XML libraries REQUIRED - 2.2.9 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.8.10 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 9.2.0 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.6.11 OK -

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

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

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

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

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

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

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

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


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

No devices found.

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


HP_LaserJet_M1522nf_MFP
-----------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.4
PPD: /etc/cups/ppd/HP_LaserJet_M1522nf_MFP.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_M1522nf_MFP.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_M1522nf_MFP is idle. enabled since Tue 08 Nov 2022 12:53:16 PM EST
Required plug-in status: Installed
Communication status: Good

HP_LaserJet_M1522nf_MFP_2
-------------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.4
PPD: /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_2.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_2.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_M1522nf_MFP_2 is idle. enabled since Mon 07 Nov 2022 03:33:57 PM EST
Required plug-in status: Installed
Communication status: Good

HP_LaserJet_M1522nf_MFP_3
-------------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.4
PPD: /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_3.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_3.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_M1522nf_MFP_3 is idle. enabled since Sat 12 Nov 2022 10:22:04 AM EST
Required plug-in status: Installed
Communication status: Good

HP_LaserJet_M1522nf_MFP_fax
---------------------------
Type: Fax
Device URI: hpfax:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.4
PPD: /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_M1522nf_MFP_fax is idle. enabled since Tue 08 Nov 2022 06:58:46 AM EST
Required plug-in status: Installed
Communication status: Good

HP_LaserJet_M1522nf_MFP_fax_2
-----------------------------
Type: Fax
Device URI: hpfax:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.4
PPD: /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax_2.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax_2.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_M1522nf_MFP_fax_2 is idle. enabled since Mon 07 Nov 2022 03:33:58 PM EST
Required plug-in status: Installed
Communication status: Good

HP_LaserJet_M1522nf_MFP_fax_3
-----------------------------
Type: Fax
Device URI: hpfax:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.4
PPD: /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax_3.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax_3.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_M1522nf_MFP_fax_3 is idle. enabled since Sat 12 Nov 2022 10:22:04 AM EST
Required plug-in status: Installed
Communication status: Good


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

No errors or warnings.

Done.
steve@steve-OptiPlex-5060:~$
Locked

Return to “Printers & Scanners”