Cannot print from Ubuntu Print dialog after printer deletion/recreation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
This may be a self-inflicted wound, but I cannot figure out how to solve it.
I recently purchased a new HP LaserJet MFP M234dw. I installed HPLIP on my Ubuntu 22.04 system,and everything worked fine, until I did something dumb that I don't seem able to recover from.
I launched a print job, only later realizing that I was trying to print a document several hundred pages long, which I did not want to do. I wanted to cancel the job, but couldn't find the place to do it, and as I frantically looked for the place, instead managed to delete the printer from the system. This did, indeed cancel the job :-) but since then I have not been able to get the printer to work. I've tried rebooting the machine, reinstalling HPLIP, re-adding the printer, but no matter what I do, no print jobs launched from the "system print dialogs" seem to work. The system thinks for a few seconds and then presents me with a "job cancelled" message.
I should mention that the printer DOES work when accessed through Google Chrome. Only applications that print using the system dialog get their jobs cancelled So I am forced to save print jobs as pdf, open the pdf in Google Chrome, and printing from there.
I cannot figure out why. Nothing appears in the system logs. I tried launching hp-logcapture to gain some info but this presents with an error message:
$ sudo hp-logcapture
[sudo] password for scohen:
\Traceback (most recent call last):
File "/usr/bin/
if not is_journal():
File "/usr/bin/
core.
File "/usr/share/
if 'MX' in distro_
NameError: name 'distro_
I also see here that there is a program called hp-doctor. It too fails with a similar error message.
$ hp-doctor
HP Linux Imaging and Printing System (ver. 3.21.12)
Self Diagnse Utility and Healing Utility ver. 1.0
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.
HP Linux Imaging and Printing System (ver. 3.21.12)
Self Diagnse Utility and Healing Utility ver. 1.0
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.
-Traceback (most recent call last):
File "/usr/bin/
dep.core.init()
File "/usr/share/
self.
File "/usr/share/
if 'MX' in distro_
NameError: name 'distro_
Can someone please tell me how to fix or at least debug this. Is there a bug in the hp-logcapture program that prevents this from working? Or is there another, better way to debug what is going on here?
Thanks.
Connection? Network?
Give what you get for
avahi-browse -rt _ipp._tcp
avahi-browse -rt _uscan._tcp
driverless