HP CP1025nw does not print with hplip on Ubuntu 22.04.3 LTS

Bug #2052668 reported by Lanigiro lanigiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Hi I have a fresh Ubuntu 22.04.3 LTS installed on my Dell Precision 5520 and when I connected the HP color laser printer CP1025 via USB, an automatic printer installation has been done. I checked the hplip by dpkg -i hplip and got report the hplip 3.21.12+dfsg0-+ amd64 is installed.
Yet any printing ends with the print job in the queue of the printer where it stops in about three seconds and it is not possible to finish the printing. Laptop uses 32GB RAM, 512GB Disk, Intel Core i76820HQ@2.7GHz x8. The same printer on the same machine is able to work under Windows10 normally, but I do want to use the Ubuntu OS. I have discussed this also in Ubuntu community, actually I started there, but two independent answers recommended to apply here as reportedly printers like Brother with non proprietary drivers work on this Ubuntu distro but printers with hplip are prone to have printing problems. Simply, the community has an opinion it is a problem which is HP-related. I have used the HP color laser jet printer many years and I am very satisfied with it and therefore I would like to use it also with Ubuntu. Your HP check actually runs the hp doktor program. And this causes an error:

hp-check -t
Saving output in log file: /home/v/Desktop/hp-check.log

HP Linux Imaging and Printing System (ver. 3.21.12)
Dependency/Version Check Utility ver. 15.1

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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

-Traceback (most recent call last):
  File "/usr/bin/hp-check", line 861, 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

As a step to recreate this problem please connect the described printer with a laptop with the described Ubuntu version and I guess you will have the same problem.

I have tried to reinstall the Ubuntu from scratch, reinstall the printer, recheck the presence of the hplip (always found installed), nothing helped.

One of the suggestion in the Ubuntu forum was if I had installed an HP plugin reportedly needed for this type of GDI printer. But as he did not write more and I am not familiar with the plugin, I am writing about it here.
Can you please provide me with some help?
Thank you very much in advance,

Best Regards
Lanigiro

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.