Printer HP DeskJet 4100 not working on Ubuntu 20.04

Asked by Dennis Adelhuette

Hello,

I have troubles with my printer (which works perfectly fine when I print with my IPhone). I have updated on Ubuntu 20.04 just yesterday (in the hope of making it work). My printer is a HP DeskJet Plus 4100 All-in-One.

hp-check -t provides the following :

HP Linux Imaging and Printing System (ver. 3.20.3)
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

warning: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...

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

 Kernel: 5.4.0-60-generic #67-Ubuntu SMP Tue Jan 5 18:31:36 UTC 2021 GNU/Linux
 Host: adelhuette-ThinkPad-T570
 Proc: 5.4.0-60-generic #67-Ubuntu SMP Tue Jan 5 18:31:36 UTC 2021 GNU/Linux
 Distribution: ubuntu 20.04
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.20.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 20.04 version

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

[hplip]
version=3.20.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
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=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.3
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=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:
[installation]
date_time = 01/12/21 12:44:59
version = 3.20.3

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

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

 error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not 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.13.14 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 - - OK -
 cups-image CUPS image - CUPS image development files REQUIRED - - 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 -
 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.7.7 OK -
 python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
 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.7.7 OK -
 python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 7.0.0 OK -
 python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.34 OK -

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

 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 9.3.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.20.3 OK -
 hpmudext IO-Extension REQUIRED - 3.20.3 OK -

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

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

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

device `escl:https://192.168.1.158:443' is a ESCL HP DeskJet Plus 4100 series [C68B87] SSL flatbed scanner
device `escl:http://192.168.1.158:8080' is a ESCL HP DeskJet Plus 4100 series [C68B87] flatbed scanner

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

No devices found.

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

BureauPrinter382
----------------
Type: Unknown
Device URI: lpd://lp382.mi.uni-erlangen.de/PASSTHRU
PPD: /etc/cups/ppd/BureauPrinter382.ppd
warning: Failed to read /etc/cups/ppd/BureauPrinter382.ppd ppd file
PPD Description:
Printer status: printer BureauPrinter382 is idle. enabled since Di 22 Sep 2020 16:25:03 CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

HP_DeskJet_Plus_4100_series_C68B87_
-----------------------------------
Type: Unknown
Device URI: implicitclass://HP_DeskJet_Plus_4100_series_C68B87_/
PPD: /etc/cups/ppd/HP_DeskJet_Plus_4100_series_C68B87_.ppd
warning: Failed to read /etc/cups/ppd/HP_DeskJet_Plus_4100_series_C68B87_.ppd ppd file
PPD Description:
Printer Rendering completedDeskJet_Plus_4100_series_C68B87_ disabled since Di 12 Jan 2021 12:13:02 CET -
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

<email address hidden>
--------------------------------------------------------
Type: Unknown
Device URI: implicitclass://HP_DeskJet_Plus_4100_series_C68B87_%40HPB05CDAC68B87.local/
PPD: /<email address hidden>
warning: Failed to read /<email address hidden> ppd file
PPD Description:
Printer status: printer <email address hidden> now printing <email address hidden>. enabled since Di 12 Jan 2021 12:21:01 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

Lexmark-CS510de
---------------
Type: Unknown
Device URI: dnssd://Lexmark%20CS510de%20(lpc350,%20Druckerraum)._ipp._tcp.local/?uuid=43e21c7a-53e0-409c-a193-45b5fd2d26b8
PPD: /etc/cups/ppd/Lexmark-CS510de.ppd
warning: Failed to read /etc/cups/ppd/Lexmark-CS510de.ppd ppd file
PPD Description:
Printer status: printer Lexmark-CS510de is idle. enabled since Fr 18 Dez 2020 19:38:38 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

Lexmark-CX410de
---------------
Type: Unknown
Device URI: dnssd://Lexmark%20CX410de%20(lpcopy350,%20Druckerr.)._ipp._tcp.local/?uuid=242ae486-ff87-498c-a00d-d3769ac462fa
PPD: /etc/cups/ppd/Lexmark-CX410de.ppd
warning: Failed to read /etc/cups/ppd/Lexmark-CX410de.ppd ppd file
PPD Description:
Printer status: printer Lexmark-CX410de is idle. enabled since Fr 18 Dez 2020 19:43:33 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

Lexmark-CX622ade
----------------
Type: Unknown
Device URI: dnssd://Lexmark%20CX622ade._ipp._tcp.local/?uuid=6fccd607-ba9f-44c8-9c44-a37ae1d239d6
PPD: /etc/cups/ppd/Lexmark-CX622ade.ppd
warning: Failed to read /etc/cups/ppd/Lexmark-CX622ade.ppd ppd file
PPD Description:
Printer status: printer Lexmark-CX622ade is idle. enabled since Fr 23 Okt 2020 16:14:14 CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

OfficeJet-3830
--------------
Type: Unknown
Device URI: dnssd://HP%20OfficeJet%203830%20series%20%5B2E7F83%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-ace2d32e7f83
PPD: /etc/cups/ppd/OfficeJet-3830.ppd
warning: Failed to read /etc/cups/ppd/OfficeJet-3830.ppd ppd file
PPD Description:
Printer status: printer OfficeJet-3830 is idle. enabled since Mi 08 Jul 2020 16:03:58 CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

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

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

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 3
Total Warnings: 7

Done.

- The printer itself is detected by the computer but cannot be setup (also not by stating the IP address) - it states that the network cannot find it although it is connected to the same network (since my phone is connected as well)

- when I try to print testpages via cups, it does not work (

- when I try to update to hp-3.20.11, it does not work (because it wants my root/superuser-password which is not possible on Ubuntu?)

- sudo sh hp-3.20.11. does not work

- the missing requirements cannot be installed (I tried to do it manually)

- system tray can also not be found (shows at every new start of the computer)

- yesterday, I managed ot print via "Wi-Fi Direct", connecting my printer and my computer and that also did not work.

Google could not help me and I am ont an expert, so I hope that my problems can be solved here (without me being an expert in Ubuntu).

Thank you very much in advance!! :)

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

I am disinclined to debug this by using HPLIP. You have have a wireless
connectio and we will use that in the same way your IPhone does.

A URI for your device is

  ipp://192.168.1.158:631/ipp/print

The URI gets substituted is this command:

  lpadmin -p PRINTER_NAME -v "URI" -E -m everywhere

PRINTER_NAME can be anything that makes sense to you. Test printing
with

  lp -d PRINTER_NAME /etc/nsswitch.conf

How do you go on?

Revision history for this message
Dennis Adelhuette (da2708) said :
#2

Thanks for your answer! I performed your suggestion

lpadmin -p home_printer -v "ipp://192.168.1.158:631/ipp/print" -E -m everywhere

lp -d home_printer /etc/nsswitch.conf

request id is home_printer-1647 (1 file(s))

And the printer keeps on processing the request and nothing happens.

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

home_printer should be ok as underscores are allowed in printer
names and the lpadmin command completed without error. But
you could try homeprinter instead.

The IP address is from the info you provided. A more reliable URI
is obtained from the command

  driverless

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

Also, please give what you get for

  avahi-browse -rt _ipp._tcp

and

  avahi-browse -rt _usan._tcp

Revision history for this message
Dennis Adelhuette (da2708) said :
#5

OK, so I did this now:

driverless
ipp://HP%20DeskJet%20Plus%204100%20series%20%5BC68B87%5D._ipp._tcp.local/

lpadmin -p homeprinter -v "ipp://HP%20DeskJet%20Plus%204100%20series%20%5BC68B87%5D._ipp._tcp.local/" -E -m everywhere

lp -d homeprinter /etc/nsswitch.conf
request id is homeprinter-1650 (1 file(s))

avahi-browse -rt _ipp._tcp
+ wlp4s0 IPv6 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
+ wlp4s0 IPv4 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
= wlp4s0 IPv6 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
   hostname = [HPB05CDAC68B87.local]
   address = [192.168.1.158]
   port = [631]
   txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=6db3db2b-c2be-5ed4-9ed0-bd4f1d14840a" "Fax=F" "TLS=1.2" "note=" "adminurl=http://HPB05CDAC68B87.local./#hId-pgAirPrint" "mac=b0:5c:da:c6:8b:87" "priority=20" "usb_MDL=DeskJet Plus 4100 series" "usb_MFG=HP" "product=(HP DeskJet Plus 4100 series)" "ty=HP DeskJet Plus 4100 series" "mopria-certified=2.0" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,FN3,IS1,V1.4" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "qtotal=1" "txtvers=1"]
= wlp4s0 IPv4 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
   hostname = [HPB05CDAC68B87.local]
   address = [192.168.1.158]
   port = [631]
   txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=6db3db2b-c2be-5ed4-9ed0-bd4f1d14840a" "Fax=F" "TLS=1.2" "note=" "adminurl=http://HPB05CDAC68B87.local./#hId-pgAirPrint" "mac=b0:5c:da:c6:8b:87" "priority=20" "usb_MDL=DeskJet Plus 4100 series" "usb_MFG=HP" "product=(HP DeskJet Plus 4100 series)" "ty=HP DeskJet Plus 4100 series" "mopria-certified=2.0" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,FN3,IS1,V1.4" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "qtotal=1" "txtvers=1"]

avahi-browse -rt _usan._tcp

With the last one, nothing happened

(for the first attempt,home_printer, I received

+ wlp4s0 IPv6 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
+ wlp4s0 IPv4 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
= wlp4s0 IPv6 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
   hostname = [HPB05CDAC68B87.local]
   address = [192.168.1.158]
   port = [631]
   txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=6db3db2b-c2be-5ed4-9ed0-bd4f1d14840a" "Fax=F" "TLS=1.2" "note=" "adminurl=http://HPB05CDAC68B87.local./#hId-pgAirPrint" "mac=b0:5c:da:c6:8b:87" "priority=20" "usb_MDL=DeskJet Plus 4100 series" "usb_MFG=HP" "product=(HP DeskJet Plus 4100 series)" "ty=HP DeskJet Plus 4100 series" "mopria-certified=2.0" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,FN3,IS1,V1.4" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "qtotal=1" "txtvers=1"]
= wlp4s0 IPv4 HP DeskJet Plus 4100 series [C68B87] Internet Printer local
   hostname = [HPB05CDAC68B87.local]
   address = [192.168.1.158]
   port = [631]
   txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=6db3db2b-c2be-5ed4-9ed0-bd4f1d14840a" "Fax=F" "TLS=1.2" "note=" "adminurl=http://HPB05CDAC68B87.local./#hId-pgAirPrint" "mac=b0:5c:da:c6:8b:87" "priority=20" "usb_MDL=DeskJet Plus 4100 series" "usb_MFG=HP" "product=(HP DeskJet Plus 4100 series)" "ty=HP DeskJet Plus 4100 series" "mopria-certified=2.0" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,FN3,IS1,V1.4" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "qtotal=1" "txtvers=1"]

)

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

Sorry,

  avahi-browse -rt _usan._tcp

should be

  avahi-browse -rt _uscan._tcp

The new URI looks ok but the first one is also fine. I am unclear on whether

  lp -d homeprinter /etc/nsswitch.conf

resulted in printing for you.

Revision history for this message
Dennis Adelhuette (da2708) said :
#7

No, unfortunately, it also didn't print something.

The output of avahi-browse -rt _uscan._tcp is

+ wlp4s0 IPv6 HP DeskJet Plus 4100 series [C68B87] _uscan._tcp local
+ wlp4s0 IPv4 HP DeskJet Plus 4100 series [C68B87] _uscan._tcp local
= wlp4s0 IPv6 HP DeskJet Plus 4100 series [C68B87] _uscan._tcp local
   hostname = [HPB05CDAC68B87.local]
   address = [192.168.1.158]
   port = [8080]
   txt = ["duplex=F" "is=platen,adf" "cs=binary,color,grayscale" "rs=eSCL" "representation=images/printer.png" "UUID=6db3db2b-c2be-5ed4-9ed0-bd4f1d14840a" "note=" "adminurl=http://HPB05CDAC68B87.local." "ty=HP DeskJet Plus 4100 series" "pdl=application/octet-stream,application/pdf,image/jpeg" "mopria-certified-scan=1.2" "vers=2.63" "txtvers=1"]
= wlp4s0 IPv4 HP DeskJet Plus 4100 series [C68B87] _uscan._tcp local
   hostname = [HPB05CDAC68B87.local]
   address = [192.168.1.158]
   port = [8080]
   txt = ["duplex=F" "is=platen,adf" "cs=binary,color,grayscale" "rs=eSCL" "representation=images/printer.png" "UUID=6db3db2b-c2be-5ed4-9ed0-bd4f1d14840a" "note=" "adminurl=http://HPB05CDAC68B87.local." "ty=HP DeskJet Plus 4100 series" "pdl=application/octet-stream,application/pdf,image/jpeg" "mopria-certified-scan=1.2" "vers=2.63" "txtvers=1"]

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

> No, unfortunately, it also didn't print something.

The -p option is ok. Either URI is also ok so the printing system knows
where the printer is. Your iPhone also knows where the printer is (it will
be using a URI similar to the one given by driverless).

You appear to have a network issue. Possibly a firewall rule. Do either
of these work

  ping 192.168.1.158
  ping HPB05CDAC68B87.local ?

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

Also try printing a PDF file.

Revision history for this message
Dennis Adelhuette (da2708) said :
#10

PDFs unfortunately also don't work...

I guess the output of the pings is OK?

ping 192.168.1.158
PING 192.168.1.158 (192.168.1.158) 56(84) bytes of data.
64 bytes from 192.168.1.158: icmp_seq=1 ttl=255 time=8.87 ms
64 bytes from 192.168.1.158: icmp_seq=2 ttl=255 time=52.9 ms
64 bytes from 192.168.1.158: icmp_seq=3 ttl=255 time=47.1 ms
64 bytes from 192.168.1.158: icmp_seq=4 ttl=255 time=50.8 ms
64 bytes from 192.168.1.158: icmp_seq=5 ttl=255 time=29.2 ms
64 bytes from 192.168.1.158: icmp_seq=6 ttl=255 time=8.32 ms
64 bytes from 192.168.1.158: icmp_seq=7 ttl=255 time=26.9 ms
64 bytes from 192.168.1.158: icmp_seq=8 ttl=255 time=74.4 ms
64 bytes from 192.168.1.158: icmp_seq=9 ttl=255 time=29.9 ms
64 bytes from 192.168.1.158: icmp_seq=10 ttl=255 time=8.97 ms
64 bytes from 192.168.1.158: icmp_seq=11 ttl=255 time=58.0 ms
64 bytes from 192.168.1.158: icmp_seq=12 ttl=255 time=11.8 ms
64 bytes from 192.168.1.158: icmp_seq=13 ttl=255 time=18.9 ms
64 bytes from 192.168.1.158: icmp_seq=14 ttl=255 time=67.3 ms
64 bytes from 192.168.1.158: icmp_seq=15 ttl=255 time=188 ms
64 bytes from 192.168.1.158: icmp_seq=16 ttl=255 time=16.0 ms
64 bytes from 192.168.1.158: icmp_seq=17 ttl=255 time=53.9 ms
64 bytes from 192.168.1.158: icmp_seq=18 ttl=255 time=14.3 ms
64 bytes from 192.168.1.158: icmp_seq=19 ttl=255 time=8.48 ms
^C
--- 192.168.1.158 ping statistics ---
19 packets transmitted, 19 received, 0% packet loss, time 18022ms
rtt min/avg/max/mdev = 8.323/40.716/187.536/40.608 ms

ping HPB05CDAC68B87.local
PING HPB05CDAC68B87.local (192.168.1.158) 56(84) bytes of data.
64 bytes from o2.box (192.168.1.158): icmp_seq=1 ttl=255 time=40.3 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=2 ttl=255 time=89.3 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=3 ttl=255 time=14.8 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=4 ttl=255 time=52.6 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=5 ttl=255 time=84.0 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=6 ttl=255 time=9.90 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=7 ttl=255 time=70.2 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=8 ttl=255 time=7.59 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=9 ttl=255 time=79.7 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=10 ttl=255 time=8.42 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=11 ttl=255 time=46.2 ms
64 bytes from o2.box (192.168.1.158): icmp_seq=12 ttl=255 time=5.38 ms
^C
--- HPB05CDAC68B87.local ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11016ms
rtt min/avg/max/mdev = 5.380/42.374/89.348/31.331 ms

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

ping is OK. No firewall?

You will have a PPD in /etc/cups/ppd for the printer' it is probably
named home_printer.ppd

Do (substituting the full path for PPD)

 sudo cupsfilter -p PPD -m printer/foo -e /etc/nsswitch.conf > out.dat 2>log

The contents of log are needed.

Also, open out.dat and say whether it says UNIRAST in the top lefthand
corner.

Revision history for this message
Dennis Adelhuette (da2708) said :
#12

OK, that's what I got after the cupsfilter (without the 2 in the end):

DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="nsswitch.conf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/etc/nsswitch.conf"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=text/plain"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_US.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/homeprinter.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=image/urf"
INFO: texttopdf (PID 22523) started.
INFO: pdftopdf (PID 22524) started.
INFO: gstoraster (PID 22525) started.
INFO: rastertopwg (PID 22526) started.
DEBUG: Page = 595x842; 8,36 to 587,833
DEBUG: pdftopdf: Last filter determined by the PPD: -; FINAL_CONTENT_TYPE: image/urf => pdftopdf will not log pages in page_log.
DEBUG: OUTFORMAT="(null)", so output format will be CUPS/PWG Raster
INFO: texttopdf (PID 22523) exited with no errors.
DEBUG: PDF interactive form and annotation flattening done via QPDF
INFO: pdftopdf (PID 22524) exited with no errors.
DEBUG: Color Manager: Calibration Mode/Off
DEBUG: Calling FindDeviceById(cups-cupsfilter)
DEBUG: Failed to send: org.freedesktop.ColorManager.NotFound:device id 'cups-cupsfilter' does not exist
DEBUG: Failed to get find device cups-cupsfilter
DEBUG: Calling FindDeviceById(cups-cupsfilter)
DEBUG: Failed to send: org.freedesktop.ColorManager.NotFound:device id 'cups-cupsfilter' does not exist
DEBUG: Failed to get device cups-cupsfilter
INFO: Color Manager: no profiles specified in PPD
DEBUG: Color Manager: ICC Profile: None
DEBUG: Ghostscript using Any-Part-of-Pixel method to fill paths.
DEBUG: Ghostscript command line: gs -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Stationery -r300x300 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=19 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c '<</.HWMargins[8.390552 36.000000 8.390564 8.390564] /Margins[0 0]>>setpagedevice' -f -_
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=text/plain"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_US.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/homeprinter.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=image/urf"
INFO: Start rendering...
INFO: Processing page 1...
DEBUG: Duplex = 0
DEBUG: HWResolution = [ 300 300 ]
DEBUG: ImagingBoundingBox = [ 8 36 587 833 ]
DEBUG: Margins = [ 8 36 ]
DEBUG: ManualFeed = 0
DEBUG: MediaPosition = 0
DEBUG: NumCopies = 1
DEBUG: Orientation = 0
DEBUG: PageSize = [ 595 842 ]
DEBUG: cupsWidth = 2410
DEBUG: cupsHeight = 3323
DEBUG: cupsMediaType = 0
DEBUG: cupsBitsPerColor = 8
DEBUG: cupsBitsPerPixel = 24
DEBUG: cupsBytesPerLine = 7230
DEBUG: cupsColorOrder = 0
DEBUG: cupsColorSpace = 19
DEBUG: cupsCompression = 0
PAGE: 1 1
INFO: Processing page 2...
INFO: Rendering completed
INFO: gstoraster (PID 22525) exited with no errors.
INFO: rastertopwg (PID 22526) exited with no errors.

And no, out.dat is empty.

Revision history for this message
Dennis Adelhuette (da2708) said :
#13

And with the firewall: How can I check it? Or did that happen with the ping?

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

> INFO: texttopdf (PID 22523) started.
> INFO: pdftopdf (PID 22524) started.
> INFO: gstoraster (PID 22525) started.
> INFO: rastertopwg (PID 22526) started.

These are all the correct filters to use. Nothing wrong there.

If you search for "error" we see they all complete successfully.
Nothing wrong there.

But out.dat is empty! I have never met this. Your problem appears
to be with the printing system and I don't have any immediate ideas
how to debug it. I'll think.

Revision history for this message
Dennis Adelhuette (da2708) said :
#15

I apologize, it seems I made a mistake: My above message was returned after

 sudo cupsfilter -p PPD -m printer/foo -e /etc/nsswitch.conf > out.dat >log

but after

 sudo cupsfilter -p PPD -m printer/foo -e /etc/nsswitch.conf > out.dat 2>log

I didn't get the above in the terminal but out.dat was not empty and I got UNIRAST in the top left corner. Sorry!

Revision history for this message
Dennis Adelhuette (da2708) said :
#16

(I used my ppd-path instead of PPD)

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

If out.dat is empty, 'ls -l out.dat' should show zero size. Sorry to be
so questioning, but does it? I am having great trouble in understanding
why the cupsfilter command does this.

Revision history for this message
Dennis Adelhuette (da2708) said :
#18

This was returned

-rw-rw-r-- 1 adelhuette adelhuette 172983 Jan 12 19:19 out.dat

But out.dat is not empty after I have not left out the 2 (or do I have the wrong one...? Now I am confused. Even more than before.)

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

> -rw-rw-r-- 1 adelhuette adelhuette 172983 Jan 12 19:19 out.dat

You must have 2>log for the output of the command to go into log. Your
file size is about the same as I get. I view it with

  less out.dat

and see UNIRAST at the top.

The printing system is behaving correctly but the file printed with lp still
 does not get to the printer. Why, oh why?

Does this print?

 nc 192.168.1.158 9100 < out.dat

Revision history for this message
Dennis Adelhuette (da2708) said :
#20

I have absolutely no clue - should I delete the jobs and try nc ... < out.dat? Because after typing it into the terminal, nothing happens (still processes it, can only quit with strg/c)

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

nc ... < out.dat

out.dat is a printer-ready file. In other words, it is a file the printer understands
and should print without question. It does not use the printing system. It is like
taking a letter round to to a friend's house instead of letting the postal system
do it for you. What would you think if your friend said she didn't receive the letter?

netcat (nc) is not working? I haven't any more suggestions

Revision history for this message
Dennis Adelhuette (da2708) said :
#22

Well, I'd be pissed ;)

But yes, the printer doesn't even react and it doesn't show up in any queue or something... :(

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

> But yes, the printer doesn't even react ...

The only reason I can think of for that to happen is that the device
does not have an open port 9100. Check with

  nmap 192.168.1.158

Revision history for this message
Dennis Adelhuette (da2708) said :
#24

This came out after nmap:

Starting Nmap 7.91 ( https://nmap.org ) at 2021-01-13 09:09 CET
Nmap scan report for HPC68B87 (192.168.1.158)
Host is up (0.054s latency).
Not shown: 995 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
631/tcp open ipp
8080/tcp open http-proxy
9100/tcp open jetdirect

Nmap done: 1 IP address (1 host up) scanned in 0.82 seconds

And - don't ask me why - after turning the printer off for the night, it printed out one "etc/sswitch-vonf", reacted on nc with printing an empty page and is printing pdfs - so I guess some things worked over night...??? :D But thank you very much, I am really happy now!! :)

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

Thank you for your very helpful co--operation. Glad you are now printing.
The issue should now be marked as solved.

I would appreciate a favour, Dennis. Would you install
sane-airscan. Thie software is in Ubuntu 20.10 but not
in 20.04, so get it from

  https://github.com/alexpevzner/sane-airscan (Project page)
  https://download.opensuse.org/repositories/home:/pzz/xUbuntu_20.04/amd64/ (Debian package)

Then give

  scanimage -L

and

  airscan-discover

Can you help with this problem?

Provide an answer of your own, or ask Dennis Adelhuette for more information if necessary.

To post a message you must log in.