Article 6CNH0 Raspbian Bookworm not installing my printer

Raspbian Bookworm not installing my printer

by
floppy_stuttgart
from LinuxQuestions.org on (#6CNH0)
dmesg
Code:[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.1.11+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1630 Fri Feb 10 12:01:38 GMT 2023
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
...sudo hp-setup -i

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

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: 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

Setting up device: hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604

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

Please enter a name for this print queue (m=use model name:'Deskjet_2540'*, q=quit) ?m
Using queue name: Deskjet_2540
Locating PPD file... Please wait.
error: No PPD found for model deskjet_2540 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) :/home/pi/HP_piserver.ppd
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 560, in <module>
nickname = nickname.decode('utf-8')
^^^^^^^^^^^^^^^
hp-doctor

Code:HP Linux Imaging and Printing System (ver. 3.22.10)
Self Diagnse Utility and Healing Utility ver. 1.0

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.

HP Linux Imaging and Printing System (ver. 3.22.10)
Self Diagnse Utility and Healing Utility ver. 1.0

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.

warning: raspbian distro is not found in AUTH_TYPES

Checking for Deprecated items....
No Deprecated items are found

Checking for HPLIP updates....
error: Failed to locate hp-upgrade utility

Checking for Dependencies....
warning: unknown-12 version is not supported. Using unknown-0 versions dependencies to verify and install...

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

Kernel: 6.1.11+ #1630 Fri Feb 10 12:01:38 GMT 2023 GNU/Linux
Host: raspberrypi
Proc: 6.1.11+ #1630 Fri Feb 10 12:01:38 GMT 2023 GNU/Linux
Distribution: unknown 12
Bitness: 32 bit

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

HPLIP-Version: HPLIP 3.22.10
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for unknown distro 12 version

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

[hplip]
version=3.22.10

[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.22.10
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:
[last_used]
device_uri = hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604
printer_name = Deskjet_2540

[installation]
date_time = 07/02/23 18:17:02
version = 3.22.10

<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 10.00.0 OK -
error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.1.1 OK -
dbus DBus - Message bus system REQUIRED - 1.14.6 OK -
error: policykit PolicyKit - Administrative policy framework OPTIONAL - - MISSING 'policykit needs to be installed'
network network -wget OPTIONAL - 1.21.3 OK -
avahi-utils avahi-utils OPTIONAL - 0.8 OK -

------------------------
| General Dependencies |
------------------------

libjpeg libjpeg - JPEG library REQUIRED - - OK -
error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed'
cups-image CUPS image - CUPS image development files REQUIRED - - OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.36' 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.3 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 3.0.9 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.11.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.3.2 OK -
python3-xml Python XML libraries REQUIRED - 2.5.0 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.11.2 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 9.4.0 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.6.12 OK -

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

libtool libtool - Library building support services REQUIRED - 2.4.7 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 12.2.0 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.3 OK -

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

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

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

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

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

device `hpaio:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
device `hpaio:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604' is a Hewlett-Packard Deskjet_2540_series all-in-one

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

Device URI Model
------------------------------------------------- ---------------------------------
hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604 HP Deskjet 2540 series

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

lpstat
------
Type: Unknown
Device URI: No destinations added.

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

USB None Required - - OK Node:'/dev/bus/usb/001/004' Perm:' root lp rw- rw- rw- rw- r--'

Checking Permissions....

Checking for Configured Queues....
No Queue added

warning: No Queue(s) configured.

Checking for HP Properitery Plugin's....
No plug-in printers are configured.

Diagnose completed...

More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html

for any reason, hp-doctor and install of the PPD file via hp-setup dont work (see above).
Both are coming from the hplip module.

Has anybody an advice? (no urgency: I can use it as wifi printer but a connection to a raspberry pi as server like above is preferred because more accessible around the house via several pc/notebooks/phones/tablets).
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments