Public bug reported:
Since the security update hplip 3.24.4+dfsg0-0ubuntu8.3 (also in 8.4),
you can no longer install the HPLIP binary plugin with hp-plugin. This
breaks every printer that needs the plugin. For example, the HP LaserJet
1000/1005/1018/1020 and P100x need it for their firmware upload, so they
stop working on a fresh setup.
The 8.3 changelog says the update removed PolicyKit support: "drop the
removed hp-pkservice, D-Bus and PolicyKit files and the --enable-
policykit configure option". That included
/usr/share/hplip/base/pkit.py. HP's plugin installer, plugin_install.py
inside hplip-3.24.4-plugin.run, still imports that module and exits if
the import fails, before it even shows the license prompt:
try:
from base.pkit import *
...
except ImportError:
log.error("Unable to load pkit...is HPLIP installed?")
sys.exit(1)
hp-plugin (installer/pluginhandler.py, run_plugin()) then reports a
misleading generic error about gobject/dbus.
Steps to reproduce:
1. Ubuntu 26.04.1 LTS with hplip 3.24.4+dfsg0-0ubuntu8.4 installed.
2. Run "sudo hp-plugin -i" and choose to download the plugin.
Expected result:
The plugin downloads, its signature is verified, the license is shown, and the
plugin installs.
Actual result:
The download and verification succeed, then:
error: Unable to load pkit...is HPLIP installed?
error: Python gobject/dbus may be not installed
The plugin is not installed. (python3-gi and python3-dbus are installed.
The second message comes from the generic fallback in run_plugin().)
Additional observations:
- "dpkg -S pkit" returns nothing in 8.4. base/pkit.py was shipped before 8.3.
- /etc/hp/hplip.conf (from libsane-hpaio, unmodified conffile) now contains
"policy-kit=@policykit@", an unsubstituted configure placeholder, because the
configure option was dropped.
Workaround:
Extract the plugin and run its file-copy step directly as root. That step
(installPlugin.py) does not import pkit:
sh hplip-3.24.4-plugin.run --noexec --nox11 --target /tmp/hplip-plugin
cd /tmp/hplip-plugin && sudo python3 installPlugin.py
After that, hp-setup works and an HP LaserJet 1005 prints normally.
Possible fixes:
- Ship a minimal base/pkit.py compatibility stub that provides
policykit_version() (returning 0/None) and a no-op PolicyKit class. With
policy-kit disabled, plugin_install.py already ignores pkit beyond the import.
- Substitute @policykit@ with "no" in hplip.conf.in handling.
Versions:
- Ubuntu 26.04.1 LTS (resolute), amd64
- hplip / hplip-data / libsane-hpaio 3.24.4+dfsg0-0ubuntu8.4
- python3 3.14.4
- HPLIP plugin: hplip-3.24.4-plugin.run (SHA-1
c41c8380cac5db321659df341bf2ffc6315d9c20)
** Affects: hplip (Ubuntu)
Importance: Undecided
Status: New
** Tags: regression-update resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2190889
Title:
hp-plugin fails with "Unable to load pkit...is HPLIP installed?" after
3.24.4+dfsg0-0ubuntu8.3 removed base/pkit.py
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/2190889/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs