hp-setup findet keine PPD-Datei für HP LaserJet 1018

Asked by Tim Knecht

Hallo,

ich weiß nicht ob dies nur eine Frage oder sogar schon ein Bug-Report ist:

Für den Laptop eines Freundes habe ich hplip-3.17.6 auf Linux-Mint 18.1 installiert und will damit einen HP LaserJet 1018 betreiben.
Die autoamtische Installation mit hplip-3.17.6.run funktioniert einwandfrei. Auf den Drucker wird bei Anschließen des USB-Kabels seine Firmware hochgeladen. Das Problem taucht erst bei hp-setup auf:

Es wird zwar die richtige URI ermittelt: hp:/usb/HP_LaserJet_1018?serial=KP203FE
(Das weiß ich, da ich HPLIP 3.16.11 gerade mit dem selben Drucker auf meinem Raspberry Pi 3 mit Raspbian (Jessie) erfolgreich installiert habe, nachdem ich das Kernel-Modul usblp ge"blacklisted" habe.)

Aber es wird keine PPD-Datei für diesen Drucker gefunden! Weder mit dem neuen noch mit dem alten Such-Algorithmus. Siehe dazu die Debug-Ausgaben von hp-setup -i -g und hp-check -t am Ende der Mail.
Verdächtig groß kommt mir die Minimale Distanz vor ("Min. dist = 9223372036854775807"), die beim Suchen angewendet wird (oder sie ist als negative Zahl zu verstehen?)

Ich habe probehalber den PPD-Dateipfad aus meiner Raspbian Installion angegeben (drv:///hpcups.drv/hp-laserjet_1018.ppd) Aber die wird nicht akzeptiert (Siehe dazu ebenfalls die Debug-Ausgabe von hp-setup).
Ich weiß leider nicht, was das Prefix "drv://" bedeutet und konnte auch leider nichts im Internet finden :-(

Da ich keine PPD-Datei angeben kann, kann keine Drucker-Warteschlange angelegt werden. Also kann ich mit dem Drucker nicht drucken.

Da der Drucker mit der älteren HPLIP Version auf meinem Raspberry läuft, weiß ich schon mal, dass der Ducker unter Linux funktioniert, und dass unter Mint 18.1 die Firmware in den Drucker geladen wird. Das Problem liegt also eher an der neueren Version von HPLIP, vielleicht auch im Zusammenhang mit Linux Mint 18.1 Dieses Betriebssystem wird ja erst seit kurzem unterstützt und HPLIP 13.17.6 beinhaltet ja schon einen Bug-Fix dafür.

hp-setup hat scheinbar auch Probleme mit dem Paket system-config-printer-udev. Wenn es installiert ist erkennt hp-setup keine USB-Device.nach Deinstallation und aus-/ein-Schalten des Druckers wird er von hp-setup erkannt. Die Idee dieses Paket zu entfernen entstand dadurch, dass ich versucht habe den foomatic-Trieber foo2zjs für diesen Drucker zu installieren und die Installationsroutine das Entfernen dieses Paketes verlangt hat.

Bitte schauen Sie sich das Problem an.
Ich freue mich auf eine Antwort.

Mit freundlichen Grüßen

Tim Knecht

Anhang: Debug Ausgaben
1. hp-setup -i -g
2. hp-check -t

--------------------------------------------------------------------------------------------------------------------------------------------------
$ hp-setup -i -g

HP Linux Imaging and Printing System (ver. 3.17.6)
Printer/Fax Setup Utility ver. 9.0

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.

hp-setup[4539]: debug: param=
hp-setup[4539]: debug: selected_device_name=None
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ?

Using connection type: usb

hp-setup[4539]: debug:
DEVICE CHOOSER setup_fax=True, setup_print=True
hp-setup[4539]: debug: Cache miss: hp_laserjet_1018
hp-setup[4539]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[4539]: debug: Searching for section [hp_laserjet_1018] in file /usr/share/hplip/data/models/models.dat
hp-setup[4539]: debug: Found section [hp_laserjet_1018] in file /usr/share/hplip/data/models/models.dat
hp-setup[4539]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-setup[4539]: debug: Mode=0

Setting up device: hp:/usb/HP_LaserJet_1018?serial=KP203FE

hp-setup[4539]: debug: Model=HP_LaserJet_1018
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/lj.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/lj.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library status: 1
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/lj.so library file present.
hp-setup[4539]: debug: /usr/share/hplip/prnt/plugins/lj.so library status: 1
hp-setup[4539]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[4539]: debug: CUPS PPD base path = /usr/share/cups/model
hp-setup[4539]: debug: Foomatic PPD base path = /usr/share/ppd

---------------------
| PRINT QUEUE SETUP |
---------------------

Please enter a name for this print queue (m=use model name:'HP_LaserJet_1018'*, q=quit) ?
Using queue name: HP_LaserJet_1018
Locating PPD file... Please wait.
hp-setup[4539]: debug: Matching PPD list to model laserjet_1018...
hp-setup[4539]: debug: []
hp-setup[4539]: debug: No PPD found for model laserjet_1018 using new algorithm. Trying old algorithm...
hp-setup[4539]: debug: 1st stage edit distance match
hp-setup[4539]: debug: Determining edit distance from laserjet_1018 (only showing edit distances < 4)...
hp-setup[4539]: debug: Min. dist = 9223372036854775807
hp-setup[4539]: debug: {}
hp-setup[4539]: debug: []
hp-setup[4539]: debug: []
error: No PPD found for model laserjet_1018 using old algorithm.
error: Unable to find an appropriate PPD file.

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y

Please enter the full filesystem path to the PPD file to use (q=quit) :drv:///hpcups.drv/hp-laserjet_1018.ppd
error: File not found or not an appropriate (PPD) file.

Please enter the full filesystem path to the PPD file to use (q=quit) :

------------------------------------------------------------------------------------------------------------------------------------------------
/usr/bin $ hp-check -t
Saving output in log file: /usr/bin/hp-check.log

HP Linux Imaging and Printing System (ver. 3.17.6)
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.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 GNU/Linux
 Host: bernhard-HP-G7000-Notebook-PC
 Proc: 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 GNU/Linux
 Distribution: 22 18.1
 Bitness: 64 bit

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

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

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

[hplip]
version=3.17.6

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

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.17.6

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

[last_used]
device_uri = hp:/usb/HP_LaserJet_1018?serial=KP203FE

[installation]
date_time = 01.07.2017 23:43:50
version = 3.17.6

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

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

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 5.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.0.2 OK -
 python-xml Python XML libraries REQUIRED - 2.1.0 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 - 1.0.25 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.11.4 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.23 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.12 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.3 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.3.0 OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.1.3 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.12 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 - 1.0.25 OK -

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

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

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

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.18 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.3 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.17.1 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.25 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.10.6 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.32 OK -

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

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

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

No Scanner found.

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

No devices found.

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

lpstat
------
Type: Unknown
Device URI: Keine Druckziele hinzugefügt.

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

No errors or warnings.

Done.

Question information

Language:
German Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Tim Knecht
Solved:
Last query:
Last reply:
Revision history for this message
Tim Knecht (knecht) said :
#1

Ich habe die Lösung selbst gefunden:
Das Paket cups ist standardmäßig nicht installiert. Dies scheint erst die PPD-Dateipfade beginnend mit drv:// zur Verfügung zu stellen. Mit Paket cups installiert findet hp-setup die PPD-Datei drv:///hp/hpcups.drv/hp-laserjet_1018.ppd und kann die Druckerwarteschlange anlegen. Das Drucken der Test-Seite funktioniert!

Revision history for this message
Tim Knecht (knecht) said :
#2

Die oben erwähnte Lösung reicht nur für das Problem der PPD-Datei.

Um den Drucker HP LaserJet 1018 unter Linux Mint 18.1 mit hPLIP 3.17.6 erfolgreich einzurichten, muss man außer das Paket cups zu installieren noch folgende zwei Veränderungen:

1. Das Kernel-Modul usblp muss auf die Blacklist gesetzt werden:
Wie in der Frage schon erwähnt darf auf Raspbian das Kernel Modul usblp nicht geladen werden. Dies ist auch unter Linux Mint 18.1 der Fall. usblp legt die Pfade /dev/usb/lp[0-9] an, die möglicherweise falsche Dateirechte haben. Die Folge ist das die Kommunikation von HPLIP /CUPS mit dem Drucker gestört ist und man nicht drucken kann. Erst ein Aus- und wieder Einschalten des Druckers löst das Problem. Dann wird keine Datei /dev/usb/lp0 angelegt unjd die Komunikation funktioniert wieder.
Um usblp auf die Blacklist zu setzen benötigt man den Eintrag:

blacklist usblp

in /etc/modprobe.d/blacklist.conf.

2. Das standardmäßig installierte Paket system-config-printer-udev muss entfernt werden.
Wie schon in der Frage vermutet, stört dieses Paket ebenfalls die Kommunikation von HPLIP /CUPS mit dem Drucker (hier liegt es jedoch nicht an /dev/usb/lp0, genauer Grund unbekannt). Dies konnte ich reproduzieren.. Um das Paket zu deinstallieren benötigt man

sudo apt-get remove system-config-printer-udev