Public bug reported:
I cannot install the HP proprietary plugin, which my printer needs for
scanning. Both hp-plugin -i and the manual installer
hplip-3.24.4-plugin.run fail with:
error: Unable to load pkit...is HPLIP installed?
error: Python gobject/dbus may be not installed
The cause is that the file /usr/share/hplip/base/pkit.py does not exist
on my system. It is not included in the installed hplip-data package:
$ ls -l /usr/share/hplip/base/pkit.py
ls: cannot access '/usr/share/hplip/base/pkit.py': No such file or directory
$ dpkg -L hplip-data | grep pkit
(no output)
apt-file still lists this file as belonging to hplip-data, so it appears
to have been dropped from the current build by mistake. Reinstalling
hplip-data does not help. python3-dbus and python3-gi are installed.
As a result, /var/lib/hp/hplip.state is never created, and scanning
through the hpaio backend fails with “Error during device I/O”. The
system log shows “Plugin version is not matching”.
Steps to reproduce:
Run sudo hp-plugin -i (download, or a local path to hplip-3.24.4-plugin.run).
The installer stops with “Unable to load pkit”.
Expected: The plugin installs and scanning works.
Actual: The plugin cannot be installed, and scanning fails.
System:
Ubuntu 26.04 (resolute), Python 3.14.4
hplip / hplip-data 3.24.4+dfsg0-0ubuntu8.3
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: hplip 3.24.4+dfsg0-0ubuntu8.3
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 12 22:05:08 2026
InstallationDate: Installed on 2026-10-20 (23 days ago)
InstallationMedia: Ubuntu 26.04.1 LTS "Resolute Raccoon" - Release amd64
(20260826)
Lpstat:
device for HP-LaserJet-Tank-MFP-260x:
dnssd://HP%20LaserJet%20Tank%20MFP%202604dw%20(59DCBE)._ipp._tcp.local/?uuid=919c5b3e-9f8a-4b95-8327-a9777fe80f7f
device for HP_LaserJet_Tank_MFP_260x:
hp:/net/HP_LaserJet_Tank_MFP_260x?ip=192.168.2.128
MachineType: LENOVO 21V5002KMH
PpdFiles:
Error: command ['fgrep', '-H', '*NickName',
'/etc/cups/ppd/HP-LaserJet-Tank-MFP-260x.ppd',
'/etc/cups/ppd/HP_LaserJet_Tank_MFP_260x.ppd'] failed with exit code 2: grep:
/etc/cups/ppd/HP-LaserJet-Tank-MFP-260x.ppd: Permission denied
grep: /etc/cups/ppd/HP_LaserJet_Tank_MFP_260x.ppd: Permission denied
ProcEnviron:
LANG=pl_PL.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-7.0.0-43-generic
root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet splash i915.enable_psr=0
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
SourcePackage: hplip
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/03/2026
dmi.bios.release: 1.33
dmi.bios.vendor: LENOVO
dmi.bios.version: N4FET52W (1.33 )
dmi.board.asset.tag: Not Available
dmi.board.name: 21V5002KMH
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76528 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.14
dmi.modalias:
dmi:bvnLENOVO:bvrN4FET52W(1.33):bd07/03/2026:br1.33:efr1.14:svnLENOVO:pn21V5002KMH:pvrThinkPadT16gGen3:rvnLENOVO:rn21V5002KMH:rvrSDK0T76528WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_21V5_BU_Think_FM_ThinkPadT16gGen3:pfaThinkPadT16gGen3:
dmi.product.family: ThinkPad T16g Gen 3
dmi.product.name: 21V5002KMH
dmi.product.sku: LENOVO_MT_21V5_BU_Think_FM_ThinkPad T16g Gen 3
dmi.product.version: ThinkPad T16g Gen 3
dmi.sys.vendor: LENOVO
** Affects: hplip (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174340
Title:
hp-plugin cannot install HP plugin: /usr/share/hplip/base/pkit.py
missing from hplip-data
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/2174340/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs