HPLIp for Debian 12
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
|
#1 |
There are adapted hplip packages for all current Debian releases in the Debian repositories, see https:/
Revision history for this message
|
#2 |
Hi, hplip version 3.23.8 on Debian 12 requires python3-
Revision history for this message
|
#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
|
#4 |
I succeed in building the driver hplip 3.23.12 on Debian11 from the .run package I download here: https:/
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:/
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-
Under system-
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-
wget -O ./hplip-
tar -zxf hplip-3.
Now add printer in system-
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-
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
|
#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-
Some guess ?
Jean
Revision history for this message
|
#6 |
sorry... the workaround is Nicolas's one and not David's.
Revision history for this message
|
#7 |
Dear Jean
I remmember I had the same trouble.
I solve it this way :
apt install sane-airscan
next modify : /etc/sane.
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:/
14rv-printer-mba = https:/
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
|
#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
|
#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-
Jean
Revision history for this message
|
#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
|
#11 |
Hi Nicolas,
First I made 'sudo make install' and a lot is ok now.
I could run again hp-setup and now 'https:/
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:/
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
|
#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-
1903 sudo apt install python-dbus-dev python3-
1911 sudo apt install libpolkit-qt5-1-dev
1917 sudo apt install libcanberra-
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
|
#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-
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.