cannot install network printer opensuse 15.2

Asked by Dexter Foster

Printer: HP LaserJet Pro 200 Color MFP m276nw
OS: Opensuse Leap 15.2
hplib version: 3.20.6 (version claimed by Opensuse, however, hp-check claims version 3.19.12)

Have been unable to successfully install drivers for a network attached printer with a fixed ip address on Opensuse Leap 15.2. On previous versions of Opensuse (Leap 15.1, Leap 15.0, Leap 42.x) there were no issues installing/using the printer. The usual installation method is to run hp-setup from Yast.

For this installation the following are true:

- The printer requires proprietary drivers, hence, hplip.
- Cups is running.
- Network Manager is running.
- firewalld is running.
- Ports 161, 162, and 9100 (both tcp and udp) are opened in the firewall.

Installation proceeds as follows:

1. From Yast -> Hardware -> Printer click the "Add" button, then at the next screen click the "hp-setup" button to launch hp-setup.
2. From the hp-setup menu Step 1 the option "Network/Ethernet..." is selected.
3. Again from the hp-setup menu Step 1, click the "Show Advanced Options" button, check the "Manual Discovery" checkbox and enter the printer's ip address, then click the "Next" button.
4. The printer is found and listed in the hp-setup menu Step 2, select the printer and click the "Next" button.
5. At the point hp-setup hangs forever (with occasional disk thrashing) and fails to complete setup.

Running hp-setup from the command line (sudo hp-setup) results in the same failure.

Running "hp-check -r" (results below) reveals a number of required packages are not installed. Three of the required packages are not in the Opensuse distribution: libusb, sane-devel, and libnetsnmp-devel. For giggles, the available missing packages were installed and hp-setup retried without success. Clearly hplip has package requirements that Opensuse does not provide.

So the question is simple, how to install this printer with hplip on Opensuse 15.2?

hp-check -r output:

hp-check[2976]: info: :
hp-check[2976]: info: :[01mHP Linux Imaging and Printing System (ver. 3.19.12)[0m
hp-check[2976]: info: :[01mDependency/Version Check Utility ver. 15.1[0m
hp-check[2976]: info: :
hp-check[2976]: info: :Copyright (c) 2001-18 HP Development Company, LP
hp-check[2976]: info: :This software comes with ABSOLUTELY NO WARRANTY.
hp-check[2976]: info: :This is free software, and you are welcome to distribute it
hp-check[2976]: info: :under certain conditions. See COPYING file for more details.
hp-check[2976]: info: :
hp-check[2976]: info: :[01mNote: hp-check can be run in three modes:[0m
hp-check[2976]: info: :1. Compile-time check mode (-c or --compile): Use this mode before compiling the
hp-check[2976]: info: :HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
hp-check[2976]: info: :are installed to successfully compile HPLIP.
hp-check[2976]: info: :2. Run-time check mode (-r or --run): Use this mode to determine if a distro
hp-check[2976]: info: :supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
hp-check[2976]: info: :has the proper dependencies installed to successfully run.
hp-check[2976]: info: :3. Both compile- and run-time check mode (-b or --both) (Default): This mode
hp-check[2976]: info: :will check both of the above cases (both compile- and run-time dependencies).
hp-check[2976]: info: :
hp-check[2976]: info: :Check types:
hp-check[2976]: info: :a. EXTERNALDEP - External Dependencies
hp-check[2976]: info: :b. GENERALDEP - General Dependencies (required both at compile and run time)
hp-check[2976]: info: :c. COMPILEDEP - Compile time Dependencies
hp-check[2976]: info: :d. [All are run-time checks]
hp-check[2976]: info: :PYEXT SCANCONF QUEUES PERMISSION
hp-check[2976]: info: :
hp-check[2976]: info: :Status Types:
hp-check[2976]: info: : OK
hp-check[2976]: info: : MISSING - Missing Dependency or Permission or Plug-in
hp-check[2976]: info: : INCOMPAT - Incompatible dependency-version or Plugin-version
hp-check[2976]: info: :
warning: [01m3-15.2 version is not supported. Using 3-15.1 versions dependencies to verify and install...[0m
hp-check[2976]: info: :
hp-check[2976]: info: :---------------
hp-check[2976]: info: :| SYSTEM INFO |
hp-check[2976]: info: :---------------
hp-check[2976]: info: :
hp-check[2976]: info: : Kernel: 5.3.18-lp152.26-default #1 SMP Mon Jun 29 14:58:38 UTC 2020 (2a0430f) GNU/Linux
 Host: orange
 Proc: 5.3.18-lp152.26-default #1 SMP Mon Jun 29 14:58:38 UTC 2020 (2a0430f) GNU/Linux
 Distribution: 3 15.2
hp-check[2976]: info: : Bitness: 64 bit

hp-check[2976]: info: :
hp-check[2976]: info: :-----------------------
hp-check[2976]: info: :| HPLIP CONFIGURATION |
hp-check[2976]: info: :-----------------------
hp-check[2976]: info: :
hp-check[2976]: info: :HPLIP-Version: HPLIP 3.19.12
hp-check[2976]: info: :HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 3 distro 15.2 version
hp-check[2976]: info: :
hp-check[2976]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[2976]: info: :# 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/cups/model/manufacturer-PPDs/hplip
ppdbase=/usr/share/cups/model/manufacturer-PPDs
doc=/usr/share/doc/packages/hplip
html=/usr/share/doc/packages/hplip
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/lib/cups/driver
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=yes
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=no
cups-ppd-install=yes
internal-tag=3.19.12
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=no
class-driver=no

hp-check[2976]: info: :
hp-check[2976]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[2976]: info: :Plugins are not installed. Could not access file: No such file or directory
hp-check[2976]: info: :
hp-check[2976]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[2976]: info: :[installation]
date_time = 07/24/20 04:25:45
version = 3.19.12

hp-check[2976]: info: : <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
hp-check[2976]: info: :
hp-check[2976]: info: :-------------------------
hp-check[2976]: info: :| External Dependencies |
hp-check[2976]: info: :-------------------------
hp-check[2976]: info: :
hp-check[2976]: info: : cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
hp-check[2976]: info: : gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.52 OK -
hp-check[2976]: info: :[31;01m error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'[0m
hp-check[2976]: info: : scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
hp-check[2976]: info: : dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
hp-check[2976]: info: : policykit PolicyKit - Administrative policy framework OPTIONAL - 0.116 OK -
hp-check[2976]: info: : network network -wget OPTIONAL - 1.20.3 OK -
hp-check[2976]: info: :[31;01m error: avahi-utils avahi-utils OPTIONAL - - MISSING 'avahi-utils needs to be installed'[0m
hp-check[2976]: info: :
hp-check[2976]: info: :------------------------
hp-check[2976]: info: :| General Dependencies |
hp-check[2976]: info: :------------------------
hp-check[2976]: info: :
hp-check[2976]: info: : libjpeg libjpeg - JPEG library REQUIRED - - OK -
hp-check[2976]: info: :[31;01m error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 MISSING 'cups-devel needs to be installed'[0m
hp-check[2976]: info: :[31;01m error: cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 MISSING 'cups-image needs to be installed'[0m
hp-check[2976]: info: : libpthread libpthread - POSIX threads library REQUIRED - b'2.26' OK -
hp-check[2976]: info: :[31;01m error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'[0m
hp-check[2976]: info: : sane SANE - Scanning library REQUIRED - - OK -
hp-check[2976]: info: :[31;01m error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel needs to be installed'[0m
hp-check[2976]: info: :[31;01m error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 MISSING 'libnetsnmp-devel needs to be installed'[0m
hp-check[2976]: info: : libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
hp-check[2976]: info: : python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.6.10 OK -
hp-check[2976]: info: :[31;01m error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python3-notify2 needs to be installed'[0m

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

> Have been unable to successfully install drivers for a network attached
> printer with a fixed ip address on Opensuse Leap 15.2.

Why ever would you want vendor drivers?

  https://wiki.debian.org/CUPSDriverlessPrinting

--
Brian.

Revision history for this message
Dexter Foster (dexter-1234) said :
#2

Hahaha...I'm with you on vendor drivers!

However, sometimes there's no alternative to vendor drivers. In this case, no vendor driver, no scanner...so no choice since the scanner is needed - see here:

https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html

Anyhow, seems the hplip package is borked for Opensuse 15.2 so a solution is needed from HP.

Thanks for the link to the CUPS info, very useful to have in the notes folder!

Revision history for this message
brian_p (claremont102) said :
#3

> However, sometimes there's no alternative to vendor drivers. In this
> case, no vendor driver, no scanner...

We will see about that :). These days brings an alternative. You have the
device on the network. Please give what you get for

  avahi-browse -rt _ipp._tcp

and

  avahi-browse -rt _uscan._tcp

Revision history for this message
Dexter Foster (dexter-1234) said :
#4

foo@foobar:~> avahi-browse -rt _ipp._tcp
+ eth0 IPv4 HP LaserJet 200 colorMFP M276nw (02E853) Internet Printer local
= eth0 IPv4 HP LaserJet 200 colorMFP M276nw (02E853) Internet Printer local
   hostname = [NPI02E853.local]
   address = [XXX.XXX.XXX.100]
   port = [631]
   txt = ["mac=XX:XX:XX:XX:XX:XX" "usb_MDL=HP LaserJet 200 colorMFP M276nw" "usb_MFG=Hewlett-Packard" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=434e4638-4742-5832-5347-3863bb02e853" "Fax=T" "Scan=T" "Duplex=F" "Color=T" "note=" "adminurl=http://NPI02E853.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP LaserJet 200 colorMFP M276nw)" "ty=HP LaserJet 200 colorMFP M276nw" "URF=V1.3,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,IS1-4,MT1-2-3-5-12,RS600" "rp=ipp/print" "pdl=image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream" "qtotal=1" "txtvers=1"]

foo@foobar:~> avahi-browse -rt _uscan._tcp

IP and MAC obsfucated by moi. There was no output from avahi-browse -rt _uscan._tcp

Revision history for this message
brian_p (claremont102) said :
#5

> There was no output from avahi-browse -rt _uscan._tcp

That's a blow! The device does not use the eSCL scanning protocol. I'm still
going to recommend taking a look at sane-airscan:

  https://github.com/alexpevzner/sane-airscan

sane-airscan has a WSD mode and it is possible the device supports that
protocol. You can find out if it does by running

  airscan-discover

and/or

  scanimage -L

There is only a Leap 15.1 package offered, but maybe it will work for you. If
not, raise an issue and request a 15.2 package be built. Alexander Pevzner
is very co-operative.

Cheers,

Brian.

Revision history for this message
Dexter Foster (dexter-1234) said :
#6

According to Apple, eSCL is supported on this printer. However, with 2+ weeks invested in attempting to get a functional Leap 15.2 installation without success it is time to throw in the towel and revert back to 15.1. Sniffing around, there are problems in other distros with hplip 3.20.6 similar to the problems I've experienced with basic radio silence from HP. This was a test exercise to determine whether to upgrade all the other systems here to 15.2 - the answer is no, this release currently has way too many flaws. Clearly testing and quality control lacked on this release.

Remember, "Why ever would you want vendor drivers?" Because nouveau SUCKS, not due to the project team, but rather NVidia's obstruction of their efforts. As it turns out, the machine I chose to test 15.2 with has an NVidia graphics card - I forgot three systems had not been upgraded to AMD graphics. A few days ago NVidia updated the relevant driver for 15.2 which now prevents system booting, so the reversion to nouveau which is just like time travel...back to the days of MSDOS graphics performance. I join Torvalds in the one-finger salute to NVidia! Sorry for the rant.

BTW, if forgot to mention, I did try connecting the printer directly via USB and hp-setup fails to install, just walk of into the weeds.

Anyhow, I will definitely check out sane-airscan in the 15.1 environment, that is much appreciated input. If I can do without hplip without loss of scanner functionality I will do so!

Thanks much for your assistance!!!

enjoy...

Revision history for this message
shivani mandora (shivani1708) said :
#7

Hi ,

Open Suse 15.2 is not supported by HPLIP still.
We will provide support in our next release.

Revision history for this message
brian_p (claremont102) said :
#8

> According to Apple, eSCL is supported on this printer.

Really? According to your 'avahi-browse -rt _uscan._tcp' output the
device does not support the eSCL protocol. This has nothing to do
with HPLIP.

The device being supported by HPLIP is a completely different issue,
so awaiting the next release is to be looked forward to. It's the only
way you will be able to scan.

Printing is no problem. It can be done now.

Revision history for this message
shan sh (jimimome2233) said :
#9

As it turns out, the machine I selected to check 15.2 with has an NVidia snap shots card - I forgot 3 systems had now not been upgraded to AMD pics. A few days in the past NVidia updated the relevant motive force for 15.2 which now prevents machine booting, so the reversion to nouveau that's much like time travel on this blog https://theskateshoe.com/

Can you help with this problem?

Provide an answer of your own, or ask Dexter Foster for more information if necessary.

To post a message you must log in.