HP M1132 MFP not printing with ubuntu 18.04.1

Asked by ermina meli on 2018-10-23

I have ubuntu 18.04.1
my printer is HP laserjet M1132 MFP
this is the outcome of the hp-check

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

Copyright (c) 2001-15 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-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 GNU/Linux
 Host: ermi-HP-ProBook-450-G3
 Proc: 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 GNU/Linux
 Distribution: 12 18.04
 Bitness: 64 bit

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

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

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

[hplip]
version=3.18.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.18.9
html=/usr/share/doc/hplip-3.18.9
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.18.9
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.18.9

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

[installation]
date_time = 23/10/2018 15:27:43
version = 3.18.9

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4JJSPPR1a"
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

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

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

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

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

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.3.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.0 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 - 1.1.7 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.15 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.15 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.18.9 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.18.9 OK 'hpaio found in /etc/sane.d/dll.conf'

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

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.25 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.18.9 OK -
 cupsext CUPS-Extension REQUIRED - 3.18.9 OK -

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

device `hpaio:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4JJSPPR1a' is a Hewlett-Packard HP_LaserJet_Professional_M1132_MFP all-in-one

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

  Device URI Model
  -------------------------------- --------------------------------
  hp:/usb/HP_LaserJet_Professional HP LaserJet Professional M1132
  _M1132_MFP?serial=000000000QH4JJ MFP
  SPPR1a

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

HP-LaserJet-Professional-M1132-MFP
----------------------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4JJSPPR1a
PPD: /etc/cups/ppd/HP-LaserJet-Professional-M1132-MFP.ppd
warning: Failed to read /etc/cups/ppd/HP-LaserJet-Professional-M1132-MFP.ppd ppd file
PPD Description:
Printer status: printer HP-LaserJet-Professional-M1132-MFP is idle. enabled since mar 2ready to print05:32 CEST
Required plug-in status: Installed
Communication status: Good

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

USB HP-LaserJet-Professional-M1132-MFP Required - - OK Node:'/dev/bus/usb/001/015' Perm:' root lp rw- rw- rw- rw- r--'
No errors or warnings.

Everything seems ok, but the printer doesn't print, nor the scanner works, when I try to scan I get the message "scanner not detected"
when I give the "print" command the jobs are processed, I can see them in the queue processing, then after a couple of seconds the jobs are stopped
I can't print the test page either
I tried to do everything as in the troubleshooting guide, but nothing
Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
ermina meli
Solved:
2018-10-25
Last query:
2018-10-25
Last reply:
2018-10-25
srinivas (srinivas5) said : #1

Hi,
This issue looks like ghostscript problem. Can you try the solution suggested in the below link and confirm if it works?
https://askubuntu.com/questions/924915/broken-ghostscript-configuration

ermina meli (ermina) said : #2

I have removed the directory and reinstalled libgs9-common. the problem
persists.
The printer still behaves the same
Thank you very much for the suggestion, anyway
ermina

Il giorno gio 25 ott 2018 alle ore 06:47 srinivas <
<email address hidden>> ha scritto:

> Your question #675485 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/675485
>
> Status: Open => Answered
>
> srinivas proposed the following answer:
> Hi,
> This issue looks like ghostscript problem. Can you try the solution
> suggested in the below link and confirm if it works?
> https://askubuntu.com/questions/924915/broken-ghostscript-configuration
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/hplip/+question/675485/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/hplip/+question/675485
>
> You received this question notification because you asked the question.
>

ermina meli (ermina) said : #3

For someone having the same issue: stick to the package provided in ubuntu repository: I manually installed the package from HPs page (3.18.9) and this was the result.
Removed as instructed here:
https://askubuntu.com/questions/1056077/how-to-install-latest-hplip-on-my-ubuntu-to-support-my-hp-printer-and-or-scanner
and reinstalled hplip from ubuntu repo
then simply run hp-setup

Thank you srinivas for your assistance :)

Ondrej Pacay (bq5) said : #4

Hi,
I can confirm that the default provided package from 18.0.4.1 works even that
1) hp-check displays a tons of missing/incomaptible dependencies like

"error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
error: dbus DBus - Message bus system REQUIRED - 1.12.2 MISSING 'DBUS may not be installed or not running'
"
....

2) hp-testpage does NOT print successfully. A device is busy error is returned. Instead use your desktop environment GUI for printers to print a test page.

In fact I have tried today (of course I may have messed with something so this info is IMHO):
1) Kubuntu 18.10 - not working, even with latest hplip downloaded and installed
2) Kubuntu 18.0.4.1 - not working when I used hplip downloaded from SourceForge. I have tried the newest version and also the same version 3.17.10 as provided by Ubuntu.

Moreover, once I started to mess with the downloaded version of the hplip from SourceForge I could not restore the functionality of the printing/scanning of the HP LaserJet Professional M1132 MFP even when I tried to purge and reinstall the hplip package. Probably the hplip-3.*.run file downloaded from SourceForge stored the hp provided deb package on the system and that one was then re-used when I tried to reinstall the package... I am not sure, maybe I have missed something.

My successful approach was:
1) Reinstall the system while keeping my personal data in the home partition (except ~/.hplip) , which means
1.0) Step that i did not take , but I could (should) : Backup my data
1.1) Making a bootable usb installation key
1.2) Cleaning all system files in the / partition. That means :
1.2.1) Running the system installation from the usb, first in the 'Try' mode
1.2.2) Mounting my root disk partition and deleting everything BUT the /home folder. Note: If this is not done then the installer tried to re-use my list of installed packages which can result in non-pristine state of the system, which can mean again a non-functional HP printing. In my case it even failed to complete the installation.
1.2.3) Deleting also /home/myuser/.hplip folder
1.3) Installing the system to the same partition by using partitioning option 'Other' and re-using my root partition with 2 conditions
- using the same ext4 filesystem that I had until now
- NOT checking 'format partition' checkbox. Note: I have also reused my swap partition that I have used before to be the new swap, but that is just a detail.
1.4) When prompted the user details during the installation I have used the same username, password as previously

2) Once the freshly installed system started I proceeded with the printer installation
2.1) I ran hp-plugin (not as root) to install the hp specific firmware (or whatever it is). During the installation I accepted that it could not download keys - I continued with the installation
2.2) Plugged in the printer. The printer was then installed automagically by the desktop environment (in my case KDE, but I think it will be the same for Gnome)

... and voila printing and scanning works.