Menu

HPLIP definitely has problems in Debian(SOLVED, SORT OF)

alynur
2022-06-09
2023-04-25
  • alynur

    alynur - 2022-06-09

    I have an HP 3700 model printer scanner that I very seldom use to scan legal size documents. I had forgotten all about it when we were testing Pep 11 Alfas and Betas. Yesterday, I tried to use it in an older computer that has pep OS exclusively installed in it's hard drive. After installing the printer using HPLIP, I get a communications error code 5012. I searched for a solution but none of the suggested fixes worked. I ran 'hp-check -i' and got a bunch of errors, Almost all of them concerned packages that were not installed or were of an earlier version no longer supplied. To make a long story short, I was using this printer prior to yesterday in Pep 10. To verify, I rebooted this machine and logged into Pep 10 and installed the printer as per normal procedure with HPLIP. And of course, the printer works fine, scanning job completed. So what's up Debian?

     
  • KsWoodsMan

    KsWoodsMan - 2022-06-10

    Are you connecting to your printer wirelessly or by USB for print and scan services ?

     
  • alynur

    alynur - 2022-06-11

    Hi KsWoodsMan, this is a usb connected printer.

     
  • KsWoodsMan

    KsWoodsMan - 2022-06-11

    I did a few searches and it might be because the initial user wasn't add to the "lp" group.
    https://askubuntu.com/questions/1012562/device-communication-error-5012-hp-printer

    Partway down the page there are instructions for this
    with $USER being the user name for the account to add
    sudo usermod -a -G lp $USER
    sudo usermod -a -G lpadmin $USER

    This may take care of it for you.
    Otherwise it could be a configuration issue when setting up the printer/scanner that it is expecting to find your printer at an IP address instead of at the end of a USB cable, identifying with a serial # .

    Either way, the link I gave has some other things to check for.
    I regularly use system-config-printer with the cups backend to add a system printer and have good success this way.

    I don't scan documents often.
    If scanning doesn't come up when the printer is added this way I'll look into that for you too.

    Thanks
    KsWoodsMan

     
  • alynur

    alynur - 2022-06-13

    Those two codes didn't do anything noticeable.
    Here is the output from "hp-check -i"

    | 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.53.3          OK         -
     xsane                xsane - Graphical scanner frontend for SANE OPTIONAL 0.9             0.999           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         -
     libavahi-dev         libavahi-dev                                                 REQUIRED        -               -               OK         -
     error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           -               MISSING    'libnetsnmp-devel needs to be installed'
     error: libcrypto     libcrypto - OpenSSL cryptographic library                    REQUIRED        -               1.1.1           MISSING    'libcrypto needs to be installed'
     python3X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             3.9.2           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         -
    
    
    
    
    | SUMMARY |
    -----------
    
    Missing Required Dependencies
    -----------------------------
    error: 'libcups2' package is missing/incompatible 
    

    libnetsnmp-devel is not available in synaptics and libcups2 is installed, version 2.3.3op2-3+deb11.

    Even if I do manage to find all that is needed, why? Why is debian so difficult whereas Pep 10 was simple?

     
  • alynur

    alynur - 2022-06-13

    I think I found out what happened to Debian that screwed everything up.

    2.2.2.1. CUPS and driverless printing
    Modern printers connected by ethernet or wireless can already use driverless printing, implemented via CUPS and cups-filters, as was described in the Release Notes for buster. Debian 11 bullseye brings the new package ipp-usb, which is recommended by cups-daemon and uses the vendor-neutral IPP-over-USB protocol supported by many modern printers. This allows a USB device to be treated as a network device, extending driverless printing to include USB-connected printers. The specifics are outlined on the wiki.
    

    Not sure what to do with this though.

     
  • KsWoodsMan

    KsWoodsMan - 2022-06-13

    In one of the first lines of the output from hp-check -i , to the far right it says

    INCOMPAT 'CUPS may not be installed or not running'

    Using system-config-printer to install the printer should take care of starting cups, plus finding the printer and setting it up to use on your system.
    For a printer connected directly to the printer or for a networked printer , it has never failed me.
    At least it always finds my networked printer when it is in the same network subnet.

    Using Print Settings from the menu to add a printer may give better results.
     Print Settings

    Thanks
    KsWoodsMan

     

    Last edit: KsWoodsMan 2022-06-13
  • alynur

    alynur - 2022-06-14
    The systemd service file included in the ipp-usb package starts the ipp-usb daemon when a USB-connected printer is plugged in,
    

    Didn't we dump systemd?

     
  • KsWoodsMan

    KsWoodsMan - 2022-06-14

    No, not entirely.
    We haven't dumped systemd but we are near the point we can offer an alternative.

    We have an amd64 version based on Debian stable that uses systemd.
    We have the Intel x86_32 version also based on Debian stable that uses systemd.

    In the final phases of testing, We have a Devuan version for Intel x86_32 CPUs that uses sysinit instead of systemd.
    Following the Devuan_32 version , the 64 bit intel x86 architecture will also be non-systemd.

    We will soon have both publicly available.

    Thanks
    KsWoodsMan

     
  • alynur

    alynur - 2022-06-14

    I've been trying to install the latest version of hplip as a .run file. The installation process does not recognize my password when it asks for root/superuser password. I found a script that I think installs the file using python. Does this look right?
    https://fossies.org/linux/hplip/installer/text_install.py

     
    • To Me

      To Me - 2023-04-25

      i jump in.
      i got that password question to thinking it is my system password but is is not.

      i have tried different installations and i can start the printer options in de hp device manager window but when i try to do a test print nothing works.
      now i am stuck in this and don't know how to get the HP P1102 to work.

       

      Last edit: To Me 2023-04-25
  • alynur

    alynur - 2022-06-15

    So, all the reading I've done suggests that hplip will not enable all printers in debian, but with the printer installed using the hplip backend, the printer will function. The drawback is that no printer information, ie ink levels, are available in hplip. I clicked on a button on the printer that looks like it might be an antenna, and enabled wifi. I don't have wifi in this computer but with the usb cable I think that was a bridge. The printer was printing before but was not scanning. After enabling wifi, in Document Scanner I got an option for this printer as eSCL HPxxxxxx. That wasn't there before and I'm not sure if enabling wifi was the only reason it showed up but it scans. So now I have to see if I can enable this printer in the computer that it will be hooked up to.

     
  • alynur

    alynur - 2022-06-18

    Okay, I now know that the eSCL option is from installing sane-airscan, very important. Printer is now working on the other computer.

     
  • To Me

    To Me - 2023-04-25

    i tried this hp-check -i
    (ps: this is done without the printer because that staid at a friends house where this laptop will go to)
    and got this

    ---------------
    | SYSTEM INFO |
    ---------------
    
     Kernel: 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) GNU/Linux
     Host: fleurigkleurig
     Proc: 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) GNU/Linux
     Distribution: linuxmint 11.6
     Bitness: 64 bit
    
    
    -----------------------
    | HPLIP CONFIGURATION |
    -----------------------
    
    HPLIP-Version: HPLIP 3.21.4
    HPLIP-Home: /usr/share/hplip
    warning: HPLIP-Installation: Auto installation is not supported for linuxmint distro  11.6 version 
    
    Current contents of '/etc/hp/hplip.conf' file:
    # hplip.conf.  Generated from hplip.conf.in by configure.
    
    [hplip]
    version=3.21.4
    
    [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.21.4
    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:
    warning: Could not access file: No such file or directory
     <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.53.3          OK         -
     xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
     scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.0.31          OK         -
     dbus                 DBus - Message bus system                                    REQUIRED        -               1.12.24         OK         -
     policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.105           OK         -
     network              network -wget                                                OPTIONAL        -               1.21            OK         -
     avahi-utils          avahi-utils                                                  OPTIONAL        -               0.8             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         -
     libavahi-dev         libavahi-dev                                                 REQUIRED        -               -               OK         -
     libnetsnmp-devel     libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           5.9             OK         -
     libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               1.1.1           OK         -
     python3X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             3.9.2           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.10          OK         -
     python3-devel        Python devel - Python development files                      REQUIRED        2.2             3.9.2           OK         -
     python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               9.3.0           OK         -
     python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             3.5.59          OK         -
    
    --------------
    | COMPILEDEP |
    --------------
    
     libtool              libtool - Library building support services                  REQUIRED        -               2.4.6           OK         -
     gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               10.2.1          OK         -
     make                 make - GNU make utility to maintain groups of programs       REQUIRED        3.0             4.3             OK         -
    
    ---------------------
    | Python Extentions |
    ---------------------
    
     cupsext              CUPS-Extension                                               REQUIRED        -               3.21.4          OK         -
     hpmudext             IO-Extension                                                 REQUIRED        -               3.21.4          OK         -
    
    ----------------------
    | Scan Configuration |
    ----------------------
    
    '/etc/sane.d/dll.d/hpaio' not found.
     hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.21.4          OK         'hpaio found in /etc/sane.d/dll.conf'
     scanext              Scan-SANE-Extension                                          REQUIRED        -               3.21.4          OK         -
    
    ------------------------------
    | DISCOVERED SCANNER DEVICES |
    ------------------------------
    
    No Scanner found.
    
    --------------------------
    | DISCOVERED USB DEVICES |
    --------------------------
    
    No devices found.
    
    ---------------------------------
    | INSTALLED CUPS PRINTER QUEUES |
    ---------------------------------
    
    
    HP-LaserJet-Professional-P1102
    ------------------------------
    Type: Printer
    Device URI: hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000Q81BMQBSI1c
    PPD: /etc/cups/ppd/HP-LaserJet-Professional-P1102.ppd
    PPD Description: HP LaserJet Professional p1102, hpcups 3.21.4, requires proprietary plugin
    Printer status: printer HP-LaserJet-Professional-P1102 is idle.  enabled since di 25 apr 2023 14:17:58 CEST
    error: Required plug-in status: Not installed
    error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000Q81BMQBSI1c
    error: Device not found
    error: Communication status: Failed
    
    
    --------------
    | PERMISSION |
    --------------
    
    
    -----------
    | SUMMARY |
    -----------
    
    Missing Required Dependencies
    -----------------------------
    error: 'libcups2' package is missing/incompatible 
    
    Missing Optional Dependencies
    -----------------------------
    None
    
    
    Plug-in Status
    --------------
    error: Plug-ins need to be installed
    
    Total Errors: 5
    Total Warnings: 1
    
    • so i see that the plugin ???? is missing
    • libcups2 needs to be installed (but synaptic shows it installed including dev version)
    • python3-pyqt4 PyQt 4- Qt interface for Python is missing
    • error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
      (but this one is installed: 2.3.3op2-3+deb11u2)
      and maybe there is more wrong?
     

    Last edit: To Me 2023-04-25

Log in to post a comment.