HPLIp for Debian 12

Asked by Denis Gottardello

Hi, when hplip will support Debian 12?

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

There are adapted hplip packages for all current Debian releases in the Debian repositories, see https://tracker.debian.org/pkg/hplip

Revision history for this message
Denis Gottardello (mrdebug) said :
#2

Hi, hplip version 3.23.8 on Debian 12 requires python3-dbus.mainloop.qt and python3-pyqt4 but these packages are not available on Debian 12.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

There is HPLIP version 3.22.10+dfsg0-2 for Debian 12 in *.deb format in the Debian repositories, to be installed with apt-get.

Revision history for this message
Nicolas Baranger (nbanba) said :
#4

I succeed in building the driver hplip 3.23.12 on Debian11 from the .run package I download here: https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

But I did not succeed in building it for Debian12 whatever adaptations I made on the installer
(refer to my old post where I explane how to get rid of the installer limitation with python packages under debian and how to add a new distro version to the installer, here : https://answers.launchpad.net/hplip/+question/452076)

To make my new printer OfficeJet PRO 9012e work correctly under Debian12 , (hplip 3.22 do not provide all features correctly, specially scanning recto-verso and auto selecting paper format)
And as I didn't succeed with hplip 3.23.12 under debian12 I did use he embed package 'system-config-printer' of debian 12 and 'simple-scan' package
Under system-config-printer I edit the printer after selecting it with its IP address and I did use the ppd file I get in the ppd directory of hplip 3.23.12 tarball as it driver (so it use hplip 3.23.12 ppd).

Since, the printer is working very fine (recto/verso printing, scaling, fast printing, etc...) it's nicely integrated in the Gnome Desktop (Wayland) and 'simple-scan' detect an eSCL scanner from the printer (eSCL is driverless scaning under MacOS and Linux) with the multicast hostname of my scanning printer
It perfectly scan recto-verso without need to resize all pages.
After testing the scan of an 100 recto-verso pages document using this methode, everything was perfect and no need to make change on focus or to resize pages before generating the PDF from the raw scanned image.

I think this workaround could help people who have a very recent printer that oldest hplip releases don't own the driver (or the full feature driver - ppd file)

To proceed :
sudo apt update
sudo apt install system-config-printer simple-scan wget
wget -O ./hplip-3.23.12.tar.gz https://sourceforge.net/projects/hplip/files/hplip/3.23.12/hplip-3.23.12.tar.gz/download
tar -zxf hplip-3.23.12.tar.gz

Now add printer in system-config-printer (network printer and specify it's IP address)
follow the process and when it ask to provide a ppd, you must select the ppd for your printer model from the tarball you've just extract :
./hplip-3.23.12/ppd/

Sure I prefer make the original hplip-3.23.12 driver working from HP installer or tarball but I did spend more than 1 day trying to make it work with no success but I was needed to use the printer and scanner so I find this workaround and it's working perfectly

Kind regards
nbanba

Revision history for this message
Jean (jbernon) said :
#5

I got a HP Deskjet 4200e series printer and try to install it on my Debian 12 PC. The current release of Debian hplip package is 3.22 and the printer needs hplip 3.23. I downloaded the current release of HP website 3.24. There are several issues to install it. I resolved all the required or optionnal dependencies issues except one, the policykit for gui_qt5 (optionnal). Then the script hplip-3.24.4.run works until the make command and abort with an error 2. There is also a weird error series before, which could be easily fixed, but I cannot change the script. At the beginning, the script asks for sudoer pass and scolds using root for the install. Then it launches a series of "su -c" commands, which fails of course because it needs root passwd. Likely no link with the final make error 2, but who knows.

I tried the Denis workaround through system-config-printer and simple-scan. It works for printing :)) but not for scanning :(( . And I need scanning. Exactly, the simple-scan app finds the printer, but then the scan command goes in an endless loop (seems that th printer doesn't receive the scanning order).

Some guess ?
Jean

Revision history for this message
Jean (jbernon) said :
#6

sorry... the workaround is Nicolas's one and not David's.

Revision history for this message
Nicolas Baranger (nbanba) said :
#7

Dear Jean

I remmember I had the same trouble.
I solve it this way :

apt install sane-airscan

next modify : /etc/sane.d/airscan.conf

add your printer / scanner in section : [devices]

here is what I add in my airscan.conf (2 scanner : my printer and my daughter printer):

[devices]
14rv-printer = https://10.0.20.101/eSCL
14rv-printer-mba = https://10.0.5.17/eSCL

Also, here is my the [option] section :

[options]
discovery = disable
model = network
protocol = auto
ws-discovery = off

And you can have some logs (in rsyslogd or journald), just configure the [debug] section
Here is my "full tracing" debug section :

[debug]
trace = ~/airscan/trace
enable = true
#hexdump = false

You can comment the 'trace line" to have logs only in system logs and no debug file.

Hope it will help you to make your scanner working ...

Kind regards,
nbanba

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

(When you are running Debian, then putting this question into the Ubuntu category is wrong. Putting it back to HPLIP)

Revision history for this message
Jean (jbernon) said :
#9

Thank you Nicolas !
I tried your tip, but it doesn't work for me.

I tried again to remove everything I had installed and to download again and install 3.24.4. I got further in the install by running in a root session beside the "su -c" commands which fail in the script. I could perform the final 'make' which failed before because it was not run in the right directory (with makefile) and because a package was missing (libavahi-core-dev). But I don't know how to use the big directory which has been built. I go on further, but I remain interested in every help.

Jean

Revision history for this message
Nicolas Baranger (nbanba) said :
#10

Dear Jean

Did you simply try to connect https://<printer-ip/eSCL ?

also, connect your printer webpage on it's ip and see if services for driverless scanning are enabled ?

What did airscan log says ? (Post here)

For the tarball build, it's a chance I have my corporate debian12 laptop with me (during summer vacation) => I will try to build 3.24.4 and to see which files should be installed and where (/usr/share/hplip ?)
Did you try "sudo make install"?

Kind regards
nbanba

Revision history for this message
Jean (jbernon) said :
#11

Hi Nicolas,

First I made 'sudo make install' and a lot is ok now.

I could run again hp-setup and now 'https://printer_ip' displays a complete menu. Through it, I could activate every function.

But I cannot yet scan, every scanning way (https menu, simplescan menu and xsane menu) tries to scan and stops saying the printer is busy.

I made a shared web directory where you can see more details in three screenshots :
https://nuage.liiib.re/s/r4pPN2rc84tqg7j

I updated airscan.conf according to your indications, but I didn't activated the log. I didn't use the 3.24.4 install tarball, but the 3.24.4 install script "hplip-3.24.4.run" . I join the install log to the screenshots. This log end with the make error 2 and I launched the make and the make install commands after.

Best regards
Jean

Revision history for this message
Jean (jbernon) said :
#12

Hi Nicolas,

A new try. A simple reboot of the printer and the PC. Everything works, scanning too. Thanks you again for your help. The global result is that one's can install hplip 3.24.4 on Debian 12 with script hplip.3.24.4.run, but :
1) there is a lot of packages to be added and the required package list asked by the script is not up to date,
2) the script mixes sudo and su -c commands making the su -c commands to fail and tries to install packages already installed with obsolete apt-get commands (force option),
3) above all, the 'make' is not launched in the good directory and the final 'make install' requires the package libavahi-core-dev.

Here is the list of packages I had to install :
1852 sudo apt install libjpeg-dev
 1855 sudo apt install libtool-bin
 1864 sudo apt install libsane-dev
1874 sudo apt install libcups2-dev libcupsimage2 libcupsimage2-dev
 1876 sudo apt install libavahi-client-dev
 1879 sudo apt install libusb-1.0-0-dev libusb-dev
 1881 sudo apt install libsnmp-base
 1887 sudo apt install libsnmp-dev
 1890 sudo apt install avahi-utils
 1894 sudo apt install libgwengui-qt5-79 libgwengui-qt5-dev
 1897 sudo apt install python3-notify2 python3-pyqt5-dbus
 1898 sudo apt install python3-notify2
 1902 sudo apt install python3-dbus-dev python3-dbus.mainloop.pyqt5
 1903 sudo apt install python-dbus-dev python3-dbus.mainloop.pyqt5
1911 sudo apt install libpolkit-qt5-1-dev
 1917 sudo apt install libcanberra-gtk-module
 1931 sudo apt install python3-dev
 1971 sudo apt install sane-airscan
490 apt install libavahi-core-dev

Best regards
Jean

Revision history for this message
Nicolas Baranger (nbanba) said :
#13

Dear Jean

Thanks for update.

From my side, downloading the tarball (not the .run package) and extract it as a simple user and configure :

nba@lap-nba:/usr/src/hplip-3.24.4$ ./configure --enable-qt5

and make + sudo make install work fine from the first run

Kind regards
nbanba

Can you help with this problem?

Provide an answer of your own, or ask Denis Gottardello for more information if necessary.

To post a message you must log in.