hplip-3.16.11 installation give me a message that debian 8.7 is not supported
i have installed a debian 8.7 in my PC, but when i am trying to install hplip-3.16.11 it give a message that debian 8.7 is not supported
Question information
- Language:
- Lithuanian Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Nicolas Baranger
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hi
maybe i van help you.
this morning i had the same problem after apt get upgrade.
So i "hack" hplip installer To make hplip work on deb 8.7 and To solve dependency problems with pyqt4.
I recommand you to install kernel 4.9 from jessie-backports before installing hplip.
If you are interrest on how To hack your hplip installer to make hplip work on deb 8.7 ask me and Wen i go back home I will post you all change i made To hplip installer.
Regards
Nicolas
Revision history for this message
|
#2 |
thank you for reply
ok can you post what you did?
because i installed this verson hplip-3.16.11 anyway then installed hplip using "apt-get install hplip" then installed hpijs-ppds then installed the plugin "hp-plugin" and now it is working good
Revision history for this message
|
#3 |
Hi,
The problem with apt is that hplip version is not 3.16.11 (generaly 3.14.9 in jessie and 3.16.9 in jessie-backports), and if you have a too recent printer (like me), ppd files are not available in version less than 3.16.11
So, I will post what I did :
So first run extract hplip-3.16.11 in /usr/src/
get error :
DEPENDENCY AND CONFLICT RESOLUTION
-------
error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
and error :
error: debian-8.7 version is not supported, so all dependencies may not be installed. However trying to install using debian-8.6 version packages.
So, I had to solve dependencies problems because packages:
pyqt4
pyqt4-dbus
had different names in 8.7:
python-qt4
python-qt4-dbus
So in file hplip-3.
I change :
'pyqt4-dbus' : (True, ['gui_qt4'], QT4DBUS_STR, self.check_
by
'
and
'pyqt4': (True, ['gui_qt4'], QT4_STR, self.check_pyqt4, DEPENDENCY_
by
After doing this, I add version 8.7 to hplip installer :
in file :
hplip-3.
I change line 4112 by adding 8.7 to the list of debian versions :
versions=
by
versions=
And after doing this, I had the configuration of the new version to the same file, starting at line 5028 until line 5146 :
[debian:8.7]
code_name=Jessie
supported=1
scan_supported=1
fax_supported=1
pcard_supported=1
network_
parallel_
usb_supported=1
packaged_
release_
notes=NOTE: Disable the CD Sources in your apt sources.list or the install will fail and hang.
ppd_install=drv
udev_mode_fix=1
ppd_dir=
fix_ppd_symlink=0
drv_dir=
ui_toolkit=qt5
native_cups=1
policykit=0
# This libdir_path will be used only for 64 bit machine.
libdir_
[debian:8.7:cups]
packages=
[debian:
packages=
[debian:8.7:gcc]
packages=g++
[debian:8.7:gs]
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=libc6
[debian:
packages=
[debian:
packages=
[debian:8.7:make]
packages=make
[debian:8.7:pil]
packages=
[debian:8.7:ppdev]
packages=
commands=su -c "modprobe ppdev",su -c cp -f /etc/modules /etc/modules.
[debian:8.7:pyqt]
packages=
[debian:
packages=
[debian:8.7:pyqt4]
packages=
[debian:
packages=
[debian:
packages=python
[debian:
packages=python
[debian:
packages=
[debian:8.7:sane]
packages=sane
[debian:
packages=
[debian:
packages=
[debian:8.7:xsane]
packages=xsane
[debian:
packages=
[debian:
packages=
[debian:8.7:dbus]
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=wget
[debian:
packages=
[debian:8.7:gtk]
packages=
[debian:
packages=
[debian:
[debian:
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=
[debian:
packages=
[debian:
[debian:
packages=
[debian:8.7:pyqt5]
packages=
[debian:
So after adding those lines, debian 8.7 is recognized as a supported version for hplip-3.16.11
I run the hplip-install script in hplip-3.16.11/ and successfully install hplip-3.16.11 on debian 8.7.
When running, I had the message :
DISTRO/OS CONFIRMATION
-------
Distro appears to be Debian 8.7.
Is "Debian 8.7" your correct distro/OS and version (y=yes*, n=no, q=quit) ?
and no dependencies errors :
CHECKING DEPENDENCIES
-------
OK
After the install everythings work fine:
My printer had been detected and sucessfully add
The fax was configured sucessfully too
and features like scan, double side printing, hplip-toolbox (hp-systray) etc... are also working fine
Hope it could help you and other people.
Enjoy,
Regards,
Nicolas
Revision history for this message
|
#5 |
Thanks Nicolas Baranger, that solved my question.
Revision history for this message
|
#6 |
Pleasure !
Hope it could help other people too...
I will try to make a .deb package for debian 8.7 including those changes to the installer to make install easier for non sysadmin people
Revision history for this message
|
#7 |
Nicolas Baranger (nbanba), thank you very much!
I installed this driver on debian 10.1!
Revision history for this message
|
#8 |
HI,
Happy it was helpfull for you and it can be used with Debian Buster , 2 major upgrades after the post of this walkthrough...
For my part, now on Debian 10, I'm using hplip directly from apt :
(I don't need a special version if the version is higher than hplip-3.16.11 , I bought my printer in 2017 ...)
But don't worry, I'm still loving compiling the program source myself !
Here is what I'm currently using with debian Buster :
09:07:41 nba@14RV-
Linux 14RV-SERVER-163 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2 (2019-08-28) x86_64 GNU/Linux
09:07:43 nba@14RV-
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_
ID=debian
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
09:07:48 nba@14RV-
ii hplip 3.18.12+dfsg0-2 amd64 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.18.12+dfsg0-2 all HP Linux Printing and Imaging - data files
rc hplip-gui 3.16.11+repack0-3 all HP Linux Printing and Imaging - GUI utilities (Qt-based)
09:07:48 nba@14RV-
Kind reagrds,
nbanba
Revision history for this message
|
#9 |
Hi everyone
I've just bought a new printer HP 9012e and I get the same trouble this morning with HPLIP 3.22.10 on :
- Debian 10.13 (the maximum value is 10.9 in installer/
- Debian 11.6 (the maximum value is 11 in distro.dat)
So I replay the describes hack and it work !
For Debian 10.13, I did use a shorter hack :
modifying installer/
line 8906 adding debian 10.13
versions=
and line 11613 I add :
# *******
[debian:10.13]
same_as_
# *******
This hack work fine for debian 10.13 but not for debian 11.6 where I also have troubles with python-qt* so I replay the first hack I post on this forum for debian 8.7
I did those 2 hacks only for the FUN this morning, beacuse now it's possible do download hplip-3.
I have already test to build hplip-3.22.10 from hplip-3.
./configure
make
sudo make install
Tested on ~ 10 different machine from debian 10.5 to debian 11.6 (latest stable on 2023-03-23)
Regards
nbanba
PS: Now I'm able to scan recto/verso automagically (and to copy too) with the last version of HPLIP !