Page 1 of 5

HP printer driver problem (solved)

Posted: Sun Dec 15, 2019 2:40 pm
by Slowpoke47
Dell desktop running Mint Mate 19.2 with network HP M1522nf all-in-one printer. Repo version of driver pkg (3.17.10) does not have needed plugin available to enable scanning. HP site confirms that this model is supported in Linux, and downloads for that plugin, specific to each version of the driver pkg, are available for download here: https://developers.hp.com/hp-linux-imag ... ng/plugins The installation of the current v. 3.19.12 driver pkg goes as expected, but the matching plugin from this link fails to install correctly. Whether via Terminal command or right-click on the download, the result is conflicting text after working through the process, saying both "installation complete" and, in red warning letters, "Binary plugin needed..."

All HP software uninstalled before beginning this effort. Scanner not found by system. Anyone else on the forum have this issue?

Re: HP printer driver problem

Posted: Sun Dec 15, 2019 7:52 pm
by majpooper
Well I am at a loss.

I completely literately cleaned my system of all hplip files and directories except for all the icon files in

Code: Select all

/usr/share/icons/Mint-Y/apps
and

Code: Select all

/home/majpooper/Downloads/hplip-3.19.12.run 
/home/majpooper/Downloads/hplip-3.19.12-plugin.run
I also removed every package associated with hplip in synaptic package manager - I searched on hplip and every package that came up including libs I did a "Remove completely" I then used status and removed completely all residual packages.

Then I did

Code: Select all

sudo apt autoclean
sudo apt update
and rebooted

Then I ran

Code: Select all

chmod +x ~/Downloads/hplip-3.19.12.run

and then with the printer unplugged ran

Code: Select all

./Downloads/hplip-3.19.12.run
everything ran and it completed but I got a bunch of

Code: Select all

warning: Failed to install this Scanjet dependency package. Some Scanjet features will not work
Even so I ran the plugin .run file and it looked to install OK

Code: Select all

majpooper@1150z:~$ ./Downloads/hplip-3.19.12-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.12 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.12)
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.12
Installed HPLIP version: 3.19.12
Number of files to install: 64

 
Done.
Even so I was not happy with the Scanjet warnings so I powered up the printer/scanner and ran for a second time both

Code: Select all

majpooper@1150z:~$ chmod +x ~/Downloads/hplip-3.19.12.run
majpooper@1150z:~$ ./Downloads/hplip-3.19.12.run
The second run went well - no Scanjet warnings and all looked good
1) it asked if I wanted to install/update the plugin and a GUI popped up on which I left at default to get the plugin directly from HP rather than use the .run file I had in Downloads - I ran it that way

Code: Select all

HPLIP PLUGIN UPDATE NOTIFICATION
--------------------------------
HPLIP Plug-in's needs to be installed/updated. Do you want to update plug-in's?. (y=yes*, n=no) : y
Do you want to install plug-in's in GUI mode?. (u=GUI mode*, i=Interactive mode) : u
2) the only thing that came up there was a box that said it could not verify the security key (see the output below) but gave me the option to continue anyway which I did - you can see what happened here but in the end the installer got the plugin and installed it

Code: Select all

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.12-plugin.run]
Receiving digital keys: /usr/bin/gpg --homedir /home/majpooper/.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.12 Plugin Self Extracting Archive
3) then I got a box stating I already had a printer Id and did I want to another - I said I did - and subsequently deleted the extra after the install was complete.

When all was complete printer and scanner function worked just fine.

So I just don't know - the installer obviously reaches out to the printer to see what it is - in my case it has no problems (HP OfficeJet Pro 8610) installing the hplip or plugin. I have to conclude there is something about the HP 1522nf that the plugin just does not like. I will look around on the internet to see if anyone else with an HP1522nf has run into this.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 12:38 am
by pbear
FYI to anyone unfamiliar with the history, this is the OP's third thread on the topic. Earlier was HP all-in-one printer drivers and Permissions. Also, be aware the OP insists on using a download version of HPLIP even though the repo version should support his All-in-One printer. The OP's claim that the repo version doesn't have the plugin he needs is disingenuous (see here). By the way, at last report, he hadn't yet succeeded in installing the download plugin either. In any event, most likely this is either a configuration or network problem.

So, the real question is, Does anyone have experience with the scanner plugin for HPLIP? (I don't.) That person is what the OP needs.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 9:10 am
by Slowpoke47
OP here. Current status is, hplip-3.19.12 installed, printer functional. Per HP, this printer is supported in this (current) version of hplip, but scanner function requires an additional plugin. Have this plugin downloaded, but as yet attempts to install have not completed. As a newbie Mint user, I acknowledge that I have made mistakes, still on the lower end of the learning curve, and Mint OS has significant differences from the Win7 OS I am used to.

I appreciate the time and patience of those who are more familiar with Mint and who are trying to point me straight. I plan to try again to install the plugin that goes with the driver pkg that is now installed and printing as expected.

BTW- this printer is not obsolete. Available now on Amazon. Apparently, they are quite proud of it- cost with shipping is $800+.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 12:18 pm
by jjp2145-oldtimer
Is there a USB port on the printer? If so, why not get a cheap USB thumbdrive, format it to FAT, scan to the thumbdrive, and then bring the scan to your computer on the thumbdrive?

HP does not always write the best drivers. They gave me headaches when I used windows. They would continue to vex me now that I use Linux, but I already learned how to sidestep rather then solve the problem.

And no, I can't scan with the HPLIP in the repository, but I picked the non-technical cross platform solution in the second sentence of this post.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 12:43 pm
by DAMIEN1307
OK...Im going to make a stab at this...i have installed to date since 2016, over 90 Linux operating systems, and have installed many brands of printers, HP all in ones have been the easiest thus far.

Ist off, ive never had to install hplip to make them work.

if this is not a fresh install, undo everything you have ever done to date.

On fresh installs of both Linux Mint as well as Peppermint OS installs, i first download ALL updates available and reboot to pick up the latest kernel in series, etc.

From there, i simply open the "menu" and then click on printers, (be sure the printer is already plugged in ready to go), Then click "add"...there will be a box that has many brands listed and the first one usually says "recommended"...ignore that one and scroll down to HP and click on it...

I have never once seen the series "all in one" numbers match perfectly, but click on whatever most closely matches the series number and install it, then when it says its there and asks you to print a test page, just do it and see if it works. Everything just works including the scanner.

They have always worked for me this way and has not failed once on me.

this has never failed for me, but then again, what do i know...lol...My 2 cents for what its worth...DAMIEN

EDIT...One thing i have found somewhat problematic is the wireless option...I always tell everyone to just use it as wired only.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 12:59 pm
by jglen490
I have used HP printers with Linux for a long time, and have found them to be very reliable. Not without problems, but always problems that are fixable. I have found that it's best to install the printer using the built-in processes of the distro, and then to upgrade by installing the desired version of HPLIP and the GUI, staying pretty close to the repo version. After install, I immediately open a terminal and run

Code: Select all

hp-check
. If any problems are detected, install the indicated packages (if any), and it usually just works. My current HP printer is an HP Deskjet 3755. It's small, but has both print and scan functions. I use the current HP version in the repo with the matching HPLIP and GUI updates from HP (if memory serves,3.17.12).

This past weekend I was having a problem with the print coming out with very strange formatting, and with configurations not staying set. I was about to throw the thing in the trash. But, instead, I uninstalled it completely, and upon the assumption that something was wrong with the USB connection/cable, I re-installed as a wireless printer. That install went well, the hp-check run came back clean, I had to check and fix the permissions on the new ppd file, but it prints like it's supposed to, again.

Sometimes it just takes detective work. I like my printer now!

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 1:11 pm
by Slowpoke47
jglen490 wrote:
Mon Dec 16, 2019 12:59 pm
I have used HP printers with Linux for a long time, and have found them to be very reliable. Not without problems, but always problems that are fixable. I have found that it's best to install the printer using the built-in processes of the distro, and then to upgrade by installing the desired version of HPLIP and the GUI, staying pretty close to the repo version. After install, I immediately open a terminal and run

Code: Select all

hp-check
. If any problems are detected, install the indicated packages (if any), and it usually just works. My current HP printer is an HP Deskjet 3755. It's small, but has both print and scan functions. I use the current HP version in the repo with the matching HPLIP and GUI updates from HP (if memory serves,3.17.12).

This past weekend I was having a problem with the print coming out with very strange formatting, and with configurations not staying set. I was about to throw the thing in the trash. But, instead, I uninstalled it completely, and upon the assumption that something was wrong with the USB connection/cable, I re-installed as a wireless printer. That install went well, the hp-check run came back clean, I had to check and fix the permissions on the new ppd file, but it prints like it's supposed to, again.

Sometimes it just takes detective work. I like my printer now!
Thanks for the info. If my current plan (see above) doesn't work, I'll try your strategy before I go to another hplip version.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 1:23 pm
by DAMIEN1307
Just as a side point here about wired vs wireless printer installation, jglen490 said,
upon the assumption that something was wrong with the USB connection/cable
I ran into a problem with a power supply cable to a laptop charger, found out i had tiny pinholes in it and by moving it would either enable or disable the laptop charging...what was the problem with cable you might ask?

Pretty simple, I have three cats that just love plastics and plastic coatings to chew on...replaced the knawed on cable and all is well.

If you are owned by cats, this could well be a problem for folks with wired cables that no longer work right...lol...DAMIEN

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 2:18 pm
by Slowpoke47
Pretty simple, I have three cats that just love plastics and plastic coatings to chew on...replaced the knawed on cable and all is well.

Good detective work! You just can't make this stuff up.

No pets here. Plenty of critters in our woodsy neighborhood- mice, squirrels, chipmunks, foxes, wild turkeys, skunks, woodchucks, deer, for some. But not invited in.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 2:26 pm
by DAMIEN1307
You should see what they can do with Walmart plastic grocery bags along with used toilet paper cardboards...lol...their favourite toys...My house looks like a good, old fashioned, New York City, tickertape parade...DAMIEN

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 2:54 pm
by jglen490
I never proved my assumption, of course. The action I took, based on that assumption, worked well, but may have had nothing to do with the assumption. I did not, for instance, simply switch the cable to another USB port. Nor did I dig in my parts box for another cable - or both :(

But that's the way assumptions go sometimes ....

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 5:47 pm
by Slowpoke47
jglen490 wrote:
Mon Dec 16, 2019 2:54 pm
I never proved my assumption, of course. The action I took, based on that assumption, worked well, but may have had nothing to do with the assumption. I did not, for instance, simply switch the cable to another USB port. Nor did I dig in my parts box for another cable - or both :(

But that's the way assumptions go sometimes ....
This printer is on a hardwired LAN. Works fine, all functions, both computers, on Win7. Not ready for prime time on Mint yet.

Won't get to this until tomorrow. I'll post back with the grisly details.

Re: HP printer driver problem

Posted: Mon Dec 16, 2019 6:29 pm
by jglen490
If that printer is not ready for prime time, then it would be one of the few HP printers in such a state :oops:

Too bad ...

Re: HP printer driver problem

Posted: Tue Dec 17, 2019 8:41 am
by parkerjohan
I also have to face the same problem when I try to print some thin by HP printer. I think this problem is a printer driver problem. When I try to print the software getting crashed. And the printing process getting slow. usually, it comes to know this type of issue about HP printer. I made a facebook group if anyone wants to participate ping me I will add them. This group is for discussion about this type of techy problem solution.

Re: HP printer driver problem

Posted: Tue Dec 17, 2019 9:27 am
by Slowpoke47
jglen490 wrote:
Mon Dec 16, 2019 12:59 pm
I have used HP printers with Linux for a long time, and have found them to be very reliable. Not without problems, but always problems that are fixable. I have found that it's best to install the printer using the built-in processes of the distro, and then to upgrade by installing the desired version of HPLIP and the GUI, staying pretty close to the repo version. After install, I immediately open a terminal and run

Code: Select all

hp-check
. If any problems are detected, install the indicated packages (if any), and it usually just works. My current HP printer is an HP Deskjet 3755. It's small, but has both print and scan functions. I use the current HP version in the repo with the matching HPLIP and GUI updates from HP (if memory serves,3.17.12).

This past weekend I was having a problem with the print coming out with very strange formatting, and with configurations not staying set. I was about to throw the thing in the trash. But, instead, I uninstalled it completely, and upon the assumption that something was wrong with the USB connection/cable, I re-installed as a wireless printer. That install went well, the hp-check run came back clean, I had to check and fix the permissions on the new ppd file, but it prints like it's supposed to, again.

Sometimes it just takes detective work. I like my printer now!
Ran 'hp-check' which generated more text than fits in the window. Don't know how to copy and save the whole window, so I can't post it, but here's an interesting part near the end:
results of hp-check.png
Where do I go from here?

Re: HP printer driver problem

Posted: Tue Dec 17, 2019 12:18 pm
by Slowpoke47
Here's the full text of the above terminal session. Anyone see where the problem lies?

steve@steve-Inspiron-519:~$ hp-check
Saving output in log file: /home/steve/hp-check.log

HP Linux Imaging and Printing System (ver. 3.19.12)
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.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 GNU/Linux
Host: steve-Inspiron-519
Proc: 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 GNU/Linux
Distribution: 22 19.2
Bitness: 64 bit


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

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

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

[hplip]
version=3.19.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.19.12
html=/usr/share/doc/hplip-3.19.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
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.19.12
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:
[plugin]
installed = 1
eula = 1
version = 3.19.12



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

[installation]
date_time = 12/17/2019 07:53:57
version = 3.19.12


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

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

gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.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.1.1 OK -
python-xml Python XML libraries REQUIRED - 2.2.5 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 - - OK -
pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 5.1.0 OK -
pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.12.1 OK -
libpthread libpthread - POSIX threads library REQUIRED - 2.27 OK -
python-devel Python devel - Python development files REQUIRED 2.2 2.7.17 OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.17 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 - - OK -

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

scanext Scan-SANE-Extension REQUIRED - 3.19.12 OK -
hpaio HPLIP-SANE-Backend REQUIRED - 3.19.12 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.27 OK -
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
network network -wget OPTIONAL - 1.19.4 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.12.2 OK -
avahi-utils avahi-utils OPTIONAL - 0.7 OK -

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

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

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

No Scanner found.

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

No devices found.

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


HP-LaserJet-M1522nf-MFP
-----------------------
Type: Unknown
Device URI: socket://192.168.1.4:9100
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 Sat 07 Dec 2019 07:37:23 AM EST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.


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


-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None


Total Errors: 0
Total Warnings: 1


Done.
steve@steve-Inspiron-519:~$ hp-systray

HP Linux Imaging and Printing System (ver. 3.19.12)
System Tray Status Service ver. 2.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.

warning: No hp: or hpfax: devices found in any installed CUPS queue. Exiting.
steve@steve-Inspiron-519:~$

Re: HP printer driver problem

Posted: Tue Dec 17, 2019 4:09 pm
by jglen490
For the
warning: Failed to read /etc/cups/ppd/HP-LaserJet-M1522nf-MFP.ppd ppd file
warning, enter the following in a terminal:

Code: Select all

cd /etc/cups/ppd
then

Code: Select all

sudo chmod a+rwx HP-LaserJet-M1522nf-MFP.ppd ppd

Re: HP printer driver problem

Posted: Tue Dec 17, 2019 4:22 pm
by Slowpoke47
jglen490 wrote:
Tue Dec 17, 2019 4:09 pm
For the
warning: Failed to read /etc/cups/ppd/HP-LaserJet-M1522nf-MFP.ppd ppd file
warning, enter the following in a terminal:

Code: Select all

cd /etc/cups/ppd
then

Code: Select all

sudo chmod a+rwx HP-LaserJet-M1522nf-MFP.ppd ppd
Thanks- does it matter whether the printer is on or off?

Re: HP printer driver problem

Posted: Tue Dec 17, 2019 4:52 pm
by jglen490
Not supposed to ...

Also looks like I copied an extra "ppd" in the suggested chmod command entry. It should be

Code: Select all

sudo chmod a+rwx HP-LaserJet-M1522nf-MFP.ppd