HPLIP inside a distrobox (HP printer, printing works but scanning doesn't)

Printer model: HP LaserJet Pro MFP M127fs Without the hplip drivers I can print but cannot scan, so I am trying to get scanning to work. Overlaying hplip with rpm-ostree does not work since the hplip gui wants to do the installation of drivers itself, which due to bazzite being an atomic distro is not an allowed operation, therefore hplip must go inside a container. I have created a debian:stable container and installed the hplip-gui package in it. Here is what happens when I try to run hp-toolbox (printer is connected over usb): https://pastebin.com/f9wbHFY0 (pastebin due to being too long). The key error seems to be error: Unable to connect to dbus system bus. Exiting. but googling reveals nothing and I cannot understand why this error is happening or what it means. Anyone have any idea what to do after this?
Pastebin
```bashumnikos@bazzite:~$ distrobox stop hplipDo you really want to...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Solution:
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/host/var/run/dbus/system_bus_socket hp-toolbox
Jump to solution
53 Replies
HikariKnight
HikariKnight•2mo ago
hplip is part of bazzite though?
umnikos
umnikos•2mo ago
what?
umnikos@bazzite:~$ hp-toolbox
bash: hp-toolbox: command not found
umnikos@bazzite:~$ hp-toolbox
bash: hp-toolbox: command not found
it definitely isn't. ...oh wait that particular command isn't, but I seem to have other hp commands...
HikariKnight
HikariKnight•2mo ago
yeah have you tried to just add the printer through the kde/gnome gui?
umnikos
umnikos•2mo ago
it is listed there and I can print but I can't scan the gnome scanner tool detects my printer but then when I hit the scan button immediately errors saying it can't connect to the scanner with no further elaboration on why lemme get a screenshot real quick...
umnikos
umnikos•2mo ago
here
No description
No description
umnikos
umnikos•2mo ago
umnikos@bazzite:~$ hp-scan

HP Linux Imaging and Printing System (ver. 3.24.4)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


-----------------
| SELECT DEVICE |
-----------------

Num Scan device URI
-------- -------------------------------------------------------
0* v4l:/dev/video1
1 hpaio:/usb/HP_LaserJet_Pro_MFP_M127fs?serial=CNB8HCV8XS

Enter number 0...1 for device (q=quit, <enter>=default: 0*) ?1
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_LaserJet_Pro_MFP_M127fs?serial=CNB8HCV8XS
Opening connection to device...
error: SANE: Error during device I/O (code=9)
umnikos@bazzite:~$
umnikos@bazzite:~$ hp-scan

HP Linux Imaging and Printing System (ver. 3.24.4)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


-----------------
| SELECT DEVICE |
-----------------

Num Scan device URI
-------- -------------------------------------------------------
0* v4l:/dev/video1
1 hpaio:/usb/HP_LaserJet_Pro_MFP_M127fs?serial=CNB8HCV8XS

Enter number 0...1 for device (q=quit, <enter>=default: 0*) ?1
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_LaserJet_Pro_MFP_M127fs?serial=CNB8HCV8XS
Opening connection to device...
error: SANE: Error during device I/O (code=9)
umnikos@bazzite:~$
hm. @HikariKnight any further wisdom?
HikariKnight
HikariKnight•2mo ago
i hate printers, especially multifunction ones from hp 😂 i am digging around a bit though
umnikos
umnikos•2mo ago
I tried hp-plugin to update stuff but it just says "installation failed" after being given admin password which is basically as far as I got when trying to overlay hplip-gui anyway I've used this same printer on a debian machine before with no problems with hplip
HikariKnight
HikariKnight•2mo ago
all im finding so far by searching is that people dislike hplip
umnikos
umnikos•2mo ago
I do not like it either
HikariKnight
HikariKnight•2mo ago
just for sanity checking you have tried a different port right? i have like 0 experience with hp printers on linux (might have something to do that i have avoided them like the plague or the fact i print maybe 1 page per year...)
umnikos
umnikos•2mo ago
did just now same thing it's a laser printer, and it accepts bootleg cartridges doesn't even connect to wifi
HikariKnight
HikariKnight•2mo ago
ah
umnikos
umnikos•2mo ago
as far as printers go this is a good one
HikariKnight
HikariKnight•2mo ago
only thing i got was that it needs to download the hp plugin for scanner support whats the error when you try download that?
Want results from more Discord servers?
Add your server