[SOLVED] Raspbian Bookworm not installing my printer
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[ 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).
What I found about Raspbian was that if something didn't work like this printer, there is zero help available. Further, devs have lost interest in their Arm 32bit OSes. They keep a 32bit OS for download, but do next to nothing with it. You can get Slackware-14.2 in 32bit (from 2016?) I imagine the Debian offering is frozen in time as well. Because an Armv7 on a few hundred MHz is hardly going to be specified to do anything meaningful these days.Use your printer on wifi.
I would suggest you try and install the printer with cups; before you give up. HP's upport for their printer is very good, and since you have a version of hplip installed, try that.
I have a pi 3 running slackware 15, 23 bit. I have a HP LaserJet Pro M203dw. I can print to it either using the pi as a server, or via wifi, both work well. Once the printer is installed, the .ppd file is moved to /etc/cups/ppd/. Before installation, hplip has all the ppd file in /usr/share/ppd/HP/ and they are all ppd.gz ; compressed.
Have a look there and see if you have
Quote:
/usr/share/ppd/HP$ ls hp-deskjet_2540*
hp-deskjet_2540_series.ppd.gz
the .ppd.gz file present. If you can find it, then you should be able to install it through cups.
You did not say which pi you have. If its a pi3 pi4, you should be able to run a gui desktop. In a web browser enter localhost:631 and press enter to access the cups web interface.
Getting a wi-fi connection should also work. There are on-line tutorials on how to do that. Once you have it working via wi-fi, you can connect to the printer with the wi-fi address:631 and manage your printer.
What I found about Raspbian was that if something didn't work like this printer, there is zero help available. Further, devs have lost interest in their Arm 32bit OSes. They keep a 32bit OS for download, but do next to nothing with it. You can get Slackware-14.2 in 32bit (from 2016?) I imagine the Debian offering is frozen in time as well. Because an Armv7 on a few hundred MHz is hardly going to be specified to do anything meaningful these days.Use your printer on wifi.
I believe. Now this is a wifi printer (no server; it can stay like this for long).
I will now put BUSTER again on it (backward install). Any advice for a backward install is welcome. However, I will look at the internet if any recommendation exists anywhere.
Then if it dont work, WIFI repeater of the Printer WIFI in the house.
Then if it dont work, one day, perhaps one day a 64bits small server. This Raspberry PI 1 as printer server was a pain all the years. That was never a solution I enjoyed without acting (SD screwed, update due to security should have not be done, updated clients dont connect anymore etc.).
I have my printer on my router. I know printers do their own dhcp servers but tell it to shut up. Everyone who wants to prints their junk to it. What you're doing is a real PITA.
I don't have a 32bit OS archived. I have a Debian bullseye 2022-09-22 image but it's 64bit. They will have some 32bit OS frozen in time. but no new updates/releases.
Failing that, Slackware Arm also have a 32bit OS frozen in time up for download, afaik.
You'll have to search or ask for them, but they exist.
I have my printer on my router. I know printers do their own dhcp servers but tell it to shut up. Everyone who wants to prints their junk to it. What you're doing is a real PITA.
I don't have a 32bit OS archived. I have a Debian bullseye 2022-09-22 image but it's 64bit. They will have some 32bit OS frozen in time. but no new updates/releases.
Failing that, Slackware Arm also have a 32bit OS frozen in time up for download, afaik.
You'll have to search or ask for them, but they exist.
Thanks. By looking at home for a SD card, I found a "Wheezy" which had
Code:
[ 23.882721] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
I putted it in.. and that worked immediatly..
Conclusion (for me):
- keep a working system preferably on a SD card for a PI (or a clone SD)
- keep a new system on the PI on a second SD (the working system for updates, upgrades..)
- I am not sooo stupid in acting with my painfull raspberry pi server
Good. The error you posted is from the FAT file system on /dev/mmcblk0p1. The solution is to unmount it, and run
Code:
fsck.fat -a /dev/mmcblk0p1
That's in /sbin, iirc. I put the 'noauto' option in /etc/fstab on the line for /boot. You don't need it mounted unless you're updating the system. That saves a lot of messing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.