• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] HP Drucker funktioniert nicht - hplip installieren

Cobiweb

Member
Hallo,
Es ist mal wieder soweit, openSUSE 11.4 und ich will mein HP LaserJet Multifunionsgerät einrichten.
Doch die Druckerkonfigurationen über Yast oder Cups wollen nicht funktionieren.
Auch in der Vergangenheit hatte ich immer wieder dieses Problem. Zwar lässt sich die Druckfunktion mit dem foomatic Treiber in Betrieb nehmen, aber scannen soll das Multifunktionsgerät ja auch.

In der Vergangenheit habe ich dieses Problem immer beheben können, indem ich mir die hplip selbst installiert habe und nicht die Variante aus den Suse-Repositories zu verwenden.

Im Normalfall bekommt man dann immer erst mal eine wenig aussagekräftige Fehlermeldung:
Code:
INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 5 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: gcc (gcc - GNU Project C and C++ Compiler)
warning: This installer cannot install 'gcc' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

Das scheint eine Standard Fehlermeldung zu sein, die immer kommt, egal was für Pakete wirklich fehlen. In meinem Fall fehlen offensichtlich 5 Pakete.
Nur welche sind dies?
gcc ist definitiv installiert.

Ich habe das bis jetzt jedes mal wieder hin bekommen, und werde hier auch gewiss bald die Lösung posten, für den Fall, daß noch mal jemand vor diesem Problem steht und danach sucht.
 
OP
Cobiweb

Cobiweb

Member
Also mit der Installation verschiedener Schemata in Yast hat sich die Zahl der fehlenden Pakete deutlich reduziert. Jedenfalls scheinen mit der Installation folgender pattern:
  • Konsolenwerkzeuge
  • Grundlegende Entwicklungsumgebung
  • C/C++ Entwicklung
  • rpm-Build-Umgebung
  • Python-Entwicklung
die mit gcc zusammenhängenden Abhängigkeiten gelöst zu sein.

Jetzt sieht die Fehlermeldung anders aus:
Code:
INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 2 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: This installer cannot install 'libusb' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

Komisch, libusb ist doch installiert.
 

lOtz1009

Moderator
Teammitglied
libusb-1_0-devel gäbe es auch noch. Wobei du evtl. auch libusb-compat-devel benötigen könntest. Gibt es keine dokumentierten Requirements für hplip?
 
OP
Cobiweb

Cobiweb

Member
lOtz1009 schrieb:
libusb-1_0-devel gäbe es auch noch. Wobei du evtl. auch libusb-compat-devel benötigen könntest. Gibt es keine dokumentierten Requirements für hplip?
Ja, genau.
libusb devel Pakete installiert und wieder ein Schritt weiter:
Code:
INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 1 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: libjpeg (libjpeg - JPEG library)
warning: This installer cannot install 'libjpeg' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.
 

lOtz1009

Moderator
Teammitglied
Ich verweise jetzt mal auf selbst zu erbringende Transferarbeit. Kleiner Tipp: Bisher wurden immer die entsprechenden -devel-Pakete zu den bereits installierten Libraries genannt ;)
 
OP
Cobiweb

Cobiweb

Member
lOtz1009 schrieb:
Ich verweise jetzt mal auf selbst zu erbringende Transferarbeit. Kleiner Tipp: Bisher wurden immer die entsprechenden -devel-Pakete zu den bereits installierten Libraries genannt ;)

Ja auch hier wieder, installiert war zwar libjpeg62, also noch libjpeg62-devel installiert und schon wieder sieht die Fehlermeldung anders aus:
Code:
INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 4 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option 'network': libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: This installer cannot install 'libnetsnmp-devel' for your distro/OS and/or version.
warning: Option 'network' has been turned off.
warning: Missing REQUIRED dependency for option 'scan': sane-devel (SANE - Scanning library development files)
warning: This installer cannot install 'sane-devel' for your distro/OS and/or version.
warning: Option 'scan' has been turned off.
warning: Missing OPTIONAL dependency for option 'scan': pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
warning: This installer cannot install 'pil' for your distro/OS and/or version.
warning: Missing OPTIONAL dependency for option 'scan': xsane (xsane - Graphical scanner frontend for SANE)
warning: This installer cannot install 'xsane' for your distro/OS and/or version.

Ups, eben nur 1 Abhängigkeit nicht erfüllt, aufeinmal wieder 4...

Was bitte soll ich auf einem System ohne GUI mit xsane, bei einer Konfiguration ohne Qt4 GUI für die hplip? :irre:
OK, was soll es, also wieder root und:
Code:
slinux:~ # zypper install libnetsnmp-devel sane-devel pil xsane
Aha, gibt nur xsane, den rest muss ich mir zusammensuchen. Und gefunden habe ich:
  • sane-backends-devel
  • python-imaging-sane
ach wie schön, net-snmp-devel wird als Abhängigkeit angeboten es mit zu installieren. :D

Jetzt muss ich nur noch sehen, wo ich pil her bekomme?
Code:
INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 1 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'scan': pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
warning: This installer cannot install 'pil' for your distro/OS and/or version.
 

lOtz1009

Moderator
Teammitglied
Vielleicht ist es https://build.opensuse.org/package/show?package=python-ImagingLib&project=Education
 
OP
Cobiweb

Cobiweb

Member
Ah da steht was von Python Imaging Library, such dich doch mal nach python imaging und tatsächlich, das gibt es ja.

  • python-imaging

Installiert und das Installatioinsskript funktioniert.
 
OP
Cobiweb

Cobiweb

Member
Installiert ist nun die hplip, aber dummerweise druckt immer noch nichts.
Vielleicht ist das Installationsskript für openSUSE 11.4 noch nicht ausgereift.
Doch sollten sich die Fehler irgendwie bereinigen lassen, nur komme ich gerade mal nicht weiter.
Code:
linux # hp-check -r

HP Linux Imaging and Printing System (ver. 3.11.1)
Dependency/Version Check Utility ver. 14.3        

Copyright (c) 2001-9 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).                                                                                                               

Saving output in log file: hp-check.log

Initializing. Please wait...
 
---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux shuttle 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 i686 i686 i386 GNU/Linux

Distribution:
suse 11.4    

Checking Python version...
OK, version 2.7.0 installed

Checking PyQt 4.x version...
OK, version 4.8.3 installed.

Checking for CUPS...
Status: Scheduler ist aktiv
Version: 1.4.6
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.2


------------------------
| RUNTIME DEPENDENCIES |
------------------------


Checking for dependency: CUPS - Common Unix Printing System...
OK, found.                                                    

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.                                                                                     

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.                                                                                               

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.                                                             

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.                                                      

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.                                                        

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: Python XML libraries...
OK, found.                                      

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.                                                                        

Checking for dependency: Reportlab - PDF library for Python...
OK, found.                                                    

Checking for dependency: SANE - Scanning library...
OK, found.                                         

Checking for dependency: scanimage - Shell scanning program...
OK, found.                                                    

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.                                                             


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 3.11.1 currently installed in '/usr/share/hplip'.

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

[hplip]
version=3.11.1

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

# Following values are determined at configure time and cannot be changed.
[configure]                                                               
network-build=yes                                                         
pp-build=no                                                               
gui-build=yes                                                             
scanner-build=yes                                                         
fax-build=no                                                              
dbus-build=no                                                             
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=no                                                         
cups-drv-install=no                                                       
cups-ppd-install=no                                                       
internal-tag=3.11.1.19                                                    
restricted-build=no                                                       
ui-toolkit=no                                                             
qt3=no                                                                    
qt4=no                                                                    
policy-kit=no                                                             
hpijs-only-build=no                                                       
lite-build=no                                                             
udev-acl-rules=no                                                         
hpcups-only-build=no                                                      
hpijs-only-build=no                                                       


Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables. 

[plugin]
installed=0
eula=0     



Current contents of '~/.hplip/hplip.conf' file:
error: Could not access file: No such file or directory

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

  Device URI                                Model                     
  ----------------------------------------  --------------------------
  hp:/usb/HP_LaserJet_M1005?serial=KJ15MZS  HP LaserJet M1005         

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

 
epsonstylusc86
--------------
Type: Unknown 
Device URI: usb://EPSON/Stylus%20C86
PPD: /etc/cups/ppd/epsonstylusc86.ppd
PPD Description: Epson Stylus C86 - CUPS+Gutenprint v5.2.6
Printer status: Drucker „epsonstylusc86“ ist inaktiv; aktiviert seit Do 17 Mär 2011 11:17:04 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

hplaserjetm1005
---------------
Type: Printer  
Device URI: hp:/usb/HP_LaserJet_M1005?serial=KJ15MZS
PPD: /etc/cups/ppd/hplaserjetm1005.ppd              
PPD Description: HP LaserJet m1005 hpijs, 3.11.1.19, requires proprietary plugin
Printer status: Drucker „hplaserjetm1005“ ist inaktiv; aktiviert seit Do 17 Mär 2011 16:44:15 CET
error: Required plug-in status: Not installed                                                   
Communication status: Good                                                                       


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/HP_LaserJet_M1005?serial=KJ15MZS' is a Hewlett-Packard HP_LaserJet_M1005 all-in-one
device `hpljm1005:libusb:001:005' is a Hewlett-Packard LaserJet M1005 multi-function peripheral       


---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.                          

Checking 'pcardext' Photocard extension...
OK, found.                                

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.



-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x3b17 at 001:005:
    Device URI: hp:/usb/HP_LaserJet_M1005?serial=KJ15MZS
    Device node: /dev/bus/usb/001/005
    Mode: 0664
getfacl: Entferne f?hrende '/' von absoluten Pfadnamen
# file: dev/bus/usb/001/005
# owner: root
# group: lp
user::rw-
group::rw-
other::r--



---------------
| USER GROUPS |
---------------

root sys lp shadow


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

error: 3 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.
 

spoensche

Moderator
Teammitglied
Warum? Dir fehlt das Paket python-inotify (Error 1), Fehler zwei ist der Epsondrucker, was kein Fehler ist und Fehler tritt auf, weil das Python-inotify paket nicht installiert ist.
 
OP
Cobiweb

Cobiweb

Member
Hallo spoensche,

Endlich mal wieder Zeit und ich dachte mir, probiere es doch mal wieder mit dem Laserdrucker. Python notify ist installiert:
Code:
linux:~ # zypper search notify
Daten des Repositorys laden ... 
Installierte Pakete lesen ...   

S | Name                            | Zusammenfassung                                               | Typ       
--+---------------------------------+---------------------------------------------------------------+-----------
.......  
  | libnotify                       | Notifications Library                                         | Quellpaket
  | libnotify-debugsource           | Debug sources for package libnotify                           | Paket     
i | libnotify-devel                 | Notifications Library                                         | Paket     
i | libnotify-tools                 | Notifications Library -- Tools                                | Paket     
  | libnotify-tools-debuginfo       | Debug information for package libnotify-tools                 | Paket     
i | libnotify1                      | Notifications Library                                         | Paket
  | libnotify1-debuginfo            | Debug information for package libnotify1                      | Paket
.......
  | python-notify                   | Python bindings for libnotify                                 | Quellpaket
i | python-notify                   | Python bindings for libnotify                                 | Paket
  | python-notify-debuginfo         | Debug information for package python-notify                   | Paket
  | python-notify-debugsource       | Debug sources for package python-notify                       | Paket
i | python-notify-devel             | Python bindings for libnotify                                 | Paket
  | python-pyinotify                | Python module for watching filesystems changes                | Quellpaket
.......

Naja, trotzdem noch folgende Fehlermeldungen auf "hp-check -t":
Code:
Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.   
.......
Current contents of '~/.hplip/hplip.conf' file:
error: Could not access file: No such file or directory
.......
hplaserjetm1005
---------------
Type: Printer  
Device URI: hp:/usb/HP_LaserJet_M1005?serial=KJ15MZS
PPD: /etc/cups/ppd/hplaserjetm1005.ppd              
PPD Description: HP LaserJet m1005, hpcups 3.11.1.19, requires proprietary plugin
Printer ready to printr „hplaserjetm1005“ ist inaktiv; aktiviert seit Di 05 Apr 2011 14:19:08 CEST
error: Required plug-in status: Not installed                                                     
Communication status: Good

Wobei ich den ersten Fehler mit der "Python libnotify" ohnehin für vernachlässigbar halte, da der Rechner ausschließlich im Runlevel 3 läuft.
Der zweite Fehler mit der nicht lesbaren hplip.conf hingegen könnte auch den dritten Fehler, des scheinbar nicht installierten Plugins erklären, oder?

Egal, probiere ich es trotzdem noch mal, diesmal mit der von openSUSE erstellten hplip, über die Repos installiert.
"hp-check -t" liefert die gleichen Fehlermeldungen.
Egal, trotzdem mal ein setup riskieren.

Code:
linux:~ # hp-setup -i -a
.......
---------------------
| PRINTER TEST PAGE |
---------------------

warning: hp-testpage should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.11.1)
Testpage Print Utility ver. 6.0

Copyright (c) 2001-9 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.

warning: No display found.
error: hp-testpage -u/--gui requires Qt4 GUI support. Entering interactive mode.
Printing test page to printer HP_LaserJet_M1005...
Test page has been sent to printer.

note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.

Done.
Done.

Folgende Ausgabe bekommen, die Testseite funktioniert jedoch schon mal.
Jippie!
 
Oben