HPLIP - HP Laserjet P1005 printer does not work

Asked by Sri Srikumar

This question was earlier posted as 823208 but does not appear under My Question, hence need to ask it again to get a solution.

Since this week the HP Laserjet P1005 printer does not work and is not recognized by the system.
Also cannot access HPLIP to download firmware or drivers

user@user-System-Product-Name:~$ lsb_release -a; uname -a; dpkg -l | grep hplip
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
Linux user-System-Product-Name 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
ii hplip 3.23.12+dfsg0-0ubuntu5 amd64 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.23.12+dfsg0-0ubuntu5 all HP Linux Printing and Imaging - data files
rc hplip-gui 3.23.12+dfsg0-0ubuntu5 all HP Linux Printing and Imaging - GUI utilities (Qt-based)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Sri Srikumar
Solved:
Last query:
Last reply:
Revision history for this message
Sri Srikumar (ssri) said :
#1

installed hplip-3.25.8.run
got the following error message :-
/Gtk-Message: 12:13:58.314: Failed to load module "canberra-gtk-module"
error: A required dependency 'cups (CUPS - Common Unix Printing System)' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.

How to proceed.
Thank you.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

"does not appear under My Question"

This question (823216) was created by user Sri Srikumar https://launchpad.net/~ssri
and question 823208 was created by user srikumar https://launchpad.net/~ssrikumar

How many user-IDs do you need?

Revision history for this message
Sri Srikumar (ssri) said (last edit ):
#3

have cancelled the second one, Question 823208.
Thanks

Revision history for this message
Sri Srikumar (ssri) said :
#4

would appreciate assistance on HPLIP
Thank you

Revision history for this message
Sri Srikumar (ssri) said :
#5

$ Name:~$ lsb_release -a; uname -a; dpkg -l | grep hplip
Name:~$: command not found
Linux user-System-Product-Name 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
rc hplip 3.23.12+dfsg0-0ubuntu5 amd64 HP Linux Printing and Imaging System (HPLIP)
rc hplip-gui 3.23.12+dfsg0-0ubuntu5 all HP Linux Printing and Imaging - GUI utilities (Qt-based)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

You can make the nag go away with:

sudo apt install libcanberra-gtk-module

Revision history for this message
Sri Srikumar (ssri) said :
#7

tried to install hplip-3.25.8.run which is on the desktop and :-
~$ sudo apt install hplip-3.25.8.run
[sudo] password for user:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package hplip-3.25.8.run
E: Couldn't find any package by glob 'hplip-3.25.8.run'

Revision history for this message
Sri Srikumar (ssri) said (last edit ):
#8

installed holip-3.25.8.run
the printer HP-Laserjet-P1005 is shown.
the job is shown as "printing" and then after a while "printing completed" BUT there is no document printed.
any additional configuration/downloads to be done.?
Thanks

Revision history for this message
Sri Srikumar (ssri) said :
#9

How to install the Plugin for the HP Laserjet P1005 printer

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

https://developers.hp.com/hp-linux-imaging-and-printing/plugins
download the *.run package fitting to the version of HPLIP that you have installed
save it in the Downloads folder
open a terminal window
change directory to the Downloads folder and execute the command
sudo sh ./hplip-*-plugin.run

Revision history for this message
Sri Srikumar (ssri) said :
#11

the result is as follows :-

user@user-System-Product-Name:~/Downloads$ sudo sh ./hplip-3.25.8-plugin.run
sh: 0: cannot open ./hplip-3.25.8-plugin.run: No such file
user@user-System-Product-Name:~/Downloads$

The hplip file is in this directory.
user@user-System-Product-Name:~/Downloads$ dir
hplip-3.25.8.run
user@user-System-Product-Name:~/Downloads$

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

Don't confuse hplip-3.25.8.run and hplip-3.25.8-plugin.run
They are different files!

Revision history for this message
Sri Srikumar (ssri) said :
#13

downloaded and run as requested.
The result is as follows:-

Plug-in version: 3.25.8
Installed HPLIP version: 3.25.8
Number of files to install: 64

note: Using PyQt5
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

Done.

What next to be done.
Thank you.

Revision history for this message
Sri Srikumar (ssri) said :
#14

The following is the result of running sudo hp-setup -i

user@user-System-Product-Name:~/Downloads$ hp-setup -i
/usr/bin/hp-setup:82: SyntaxWarning: invalid escape sequence '\*'
  ("To specify the port on a multi-port JetDirect:", "--port=<port> (Valid values are 1\*, 2, and 3. \*default)", "option", False),
/usr/bin/hp-setup:86: SyntaxWarning: invalid escape sequence '\*'
  ("Type of queue(s) to install:", "-t<typelist> or --type=<typelist>. <typelist>: print*, fax\* (\*default) (-i mode only)", "option", False),

HP Linux Imaging and Printing System (ver. 3.25.8)
Printer/Fax Setup Utility ver. 9.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.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

Setting up device: hp:/usb/HP_LaserJet_P1005?serial=BC0G5NF

---------------------
| PRINT QUEUE SETUP |
---------------------

warning: One or more print queues already exist for this device: HP-LaserJet-P1005.

Would you like to install another print queue for this device (y=yes, n=no*, q=quit) ? n
warning: Unable to connect to dbus. Is hp-systray running?
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 636, in <module>
    if d.downloadFirmware():
       ^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/device.py", line 2673, in downloadFirmware
    log.debug("%s bytes downloaded." % utils.commafy(bytes_written))
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/utils.py", line 508, in commafy
    return locale.format("%s", val, grouping=True)
           ^^^^^^^^^^^^^
AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'?
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 228, in partial_apport_excepthook
    return apport_excepthook(binary, exc_type, exc_obj, exc_tb)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 123, in apport_excepthook
    report.add_package_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 442, in add_package_info
    package = apport.fileutils.find_file_package(self["ExecutablePath"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 175, in find_file_package
    return packaging.get_file_package(file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", line 631, in get_file_package
    dpkg = subprocess.run(
           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'dpkg-divert'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 636, in <module>
    if d.downloadFirmware():
       ^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/device.py", line 2673, in downloadFirmware
    log.debug("%s bytes downloaded." % utils.commafy(bytes_written))
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/utils.py", line 508, in commafy
    return locale.format("%s", val, grouping=True)
           ^^^^^^^^^^^^^
AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'?

and now, thankfully, the HP P1005 Printer is WORKING.
Thank you for all the assistance.