HP LaserJet Enterprise M553 does not work on CentOS 7.5

Asked by Henrique Lorran e Silva on 2019-04-17

I have a CentOS 7.5.1804 (Core) operating system and a Color LaserJet Enterprise M553 printer. I downloaded version 3.19.3 of HPLIP on the official site for the Red Hat Enterprise Linux system (Version 7 - Full Package) and when trying to install I used the command:

rpm -ivh hplip-3.19.3_rhel-7.0.x86_64.rpm

I obtained the following return:

error: Failed dependencies:
 libImageProcessor.so()(64bit) is needed by hplipfull-3.19.3-0.x86_64
 libImageProcessor.so(VERS_1.0)(64bit) is needed by hplipfull-3.19.3-0.x86_64
 libsane.so.1()(64bit) is needed by hplipfull-3.19.3-0.x86_64

Is there any way to resolve these issues?

As I could not, I used the following command to install HPLIP:

yum install hplip

The following version has been installed:

hplip-3.15.9-3.el7.x86_64

In the supported printers page (https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index), I found the following information:

HP Color LaserJet Enterprise m553n - 3.15.4 (Min. HPLIP Version)

So, theoretically the package installed by YUM should work, right?

Then I used the following command to configure the printer:

hp-setup

I selected the USB connection and the printer was found, proceeded normally and clicked on Add Printer, I typed the super user credentials and OK. After that, I opened HP Device Manager and entered the Status tab. The current information displays Idle, the current date and time, code 1000. Then click on Print Test Page on the Actions tab, when you return to the Status tab, the current information displays Device communication error, the current date and time, code 5012 and description: Please correct the problem and try again.

How should I proceed?

Linux Distribution and Version: CentOS Linux release 7.5.1804 (Core)
Printer Model: HP Color LaserJet Enterprise M553
Output of the command: hp-check -t

-----------------------------------------------------------------------------------------

Saving output in log file: /home/admin/hp-check.log

HP Linux Imaging and Printing System (ver. 3.15.9)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-15 Hewlett-Packard 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: centos-7.5.1804 version is not supported. Using centos-any versions dependencies to verify and install...

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

 Kernel: 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 GNU/Linux
 Host: HIDDEN
 Proc: 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 GNU/Linux
 Distribution: centos 7.5.1804
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.15.9
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for centos distro 7.5.1804 version

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

[hplip]
version=3.15.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.15.9
html=/usr/share/doc/hplip-3.15.9
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=yes
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=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.15.9
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=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:
[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_Color_LaserJet_M553?serial=XXXXXXXXXX"
printer_name = HP_Color_LaserJet_M553
working_dir = .

[commands]
scan =

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[upgrade]
notify_upgrade = false
last_upgraded_time = 1555449898
pending_upgrade_time = 0

[installation]
date_time = 04/17/2019 10:59:44
version = 3.15.9

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

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

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.07 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.26 OK -
 error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
 cups CUPS - Common Unix Printing System REQUIRED 1.1 1.6.3 OK 'CUPS Scheduler is running'
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.112 OK -
 network network -wget OPTIONAL - 1.14 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
 dbus DBus - Message bus system REQUIRED - 1.10.24 OK -

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

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.2 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.1.1 OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 2.5 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.10.1 OK -
 python-xml Python XML libraries REQUIRED - 2.1.0 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 1.6.3 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.2 OK -
 sane-devel SANE - Scanning library development files REQUIRED - 1.0.24 OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.5 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.10.1 OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.17 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.5 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 1.6.3 OK -
 sane SANE - Scanning library REQUIRED - 1.0.24 OK -

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

 libtool libtool - Library building support services REQUIRED - 2.4.2 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 4.8.5 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 3.82 OK -

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

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

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

error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext.
 error: scanext Scan-SANE-Extension REQUIRED - 3.15.9 MISSING 'scanext needs to be installed'
 hpaio HPLIP-SANE-Backend REQUIRED - 3.15.9 OK 'hpaio found in /etc/sane.d/dll.conf'

-----------------------
| Other Dependencies |
-----------------------

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

No Scanner found.

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

  Device URI Model
  ------------------------------------------------ -----------------------------------------------
  hp:/usb/HP_Color_LaserJet_M553?serial=XXXXXXXXXX HP Color LaserJet M553

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

HP_Color_LaserJet_M553
----------------------
Type: Printer
Device URI: hp:/usb/HP_Color_LaserJet_M553?serial=XXXXXXXXXX
PPD: /etc/cups/ppd/HP_Color_LaserJet_M553.ppd
PPD Description: HP Color LaserJet M553 Postscript (recommended)
Printer status: printer HP_Color_LaserJet_M553 now printing HP_Color_LaserJet_M553-29. enabled since Wed 17 Apr 2019 10:59:24 AM EDT
Communication status: Good

Lexmark-CS521
-------------
Type: Unknown
Device URI: usb://Lexmark/CS520%20Series?serial=XXXXXXXXXXXXX&interface=1
PPD: /etc/cups/ppd/Lexmark-CS521.ppd
PPD Description: Lexmark CS520 Series
Printer status: printer Lexmark-CS521 is idle. enabled since Thu 04 Oct 2018 09:17:31 AM EDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

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

USB HP_Color_LaserJet_M553 Required - - OK Node:'/dev/bus/usb/001/002' Perm:' root scanner rw- rw- rw- rw- r--'

-----------
| SELINUX |
-----------

SELinux disabled Optional - - OK -

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

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

Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible

Total Errors: 2
Total Warnings: 1

Run 'hp-doctor' command to prompt and fix the issues.

Done.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Henrique Lorran e Silva
Solved:
2019-04-17
Last query:
2019-04-17
Last reply:

I found the solution on the Internet, is an existing bug in HPLIP:

https://gist.github.com/maxvt/7b1e32cd28e37a8f8de6cfacae76ae8a

Credits: @maxvt (Max T)

Thanks, Max T!