Cannot print from Ubuntu Print dialog after printer deletion/recreation

Bug #2000650 reported by Steve Cohen
6
This bug affects 1 person
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/hp-logcapture", line 268, in <module>
    if not is_journal():
  File "/usr/bin/hp-logcapture", line 53, in is_journal
    core.get_distro()
  File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
    if 'MX' in distro_release_name:
NameError: name 'distro_release_name' is not defined

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/hp-doctor", line 276, in <module>
    dep.core.init()
  File "/usr/share/hplip/installer/core_install.py", line 523, in init
    self.get_distro()
  File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
    if 'MX' in distro_release_name:
NameError: name 'distro_release_name' is not defined

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.

Revision history for this message
brian_p (claremont102) wrote :

Connection? Network?

Give what you get for

  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  driverless

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.