Ubuntu 22.04 USB HP2200d printing doesn't work

Asked by Casio

Hi,
Where do I report problems in trying to print using Ubuntu 22.04?
I have a Dell M6700 on a docking station, dual booting Win10 \ Ubuntu 22.04. Connected is a HP 2200d Laserjet via USB.
All hardware is 100% functional. I recently moved from Win11 to Ubuntu 22.04 as my go to operating system.

I have only managed to print something once in Ubuntu. The document gets into the print subsystem where it is shown as printing. The printer LED flashes indicating its receiving data. The print subsystem eventually says printed but nothing happens (the printer LED stays flashing). The following does nothing to resolve the problem \ prod it into life -
Power cycling printer whilst Ubuntu up, Cancelling print job. Scheduling several print jobs, Powering up Ubuntu with printer powered and plugged into USB, Queuing a test page in Ubuntu. performing a HP printer test page print at the printer. Reinstalling HP drivers.
I eventually booted into Win 10 and printed my document from there first time - note after rebooting into Win10 when I tried to print Windows said failed to print (the printer was still in LED flashing mode from the Ubuntu print attempt).
Once I had power cycled the HP printer, Windows printed the document out of its print queue.

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu hplip Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy `dpkg -l | grep hplip | awk {'print $2'}`

Thanks

Revision history for this message
Casio (casiobearing) said :
#2

Hello, thanks for responding. I've added some other random info here as well as more info is better than no info. Here is is exactly what I did just now after reading your email...

Switched on printer and connected its USB cable.
opened up a random PDF document using Chrome Browser to print it....
and sods law it printed 1st time as it should do.
So, I decided to immediately try another print, this time I opened up the PDF using "Document Viewer" to print it.... this time it hung up as previously described. (Printer is sat there flashing its LED as I type).

I now open a command box and run the command you asked for.
(output is right at the bottom of this email). I close the Document Viewer and go to Settings... Printer. It says no active jobs.
current driver is set to "HP Laserjet 2200".
(my actual printer is a HP Laserjet 2200d with a duplex tray).
From there, Printer Properties, View Print Queue.. nothing listed in the queue.
I open up a command window and type "lpq"...
   HP-LaserJet-2200 is ready
   no entries
type "lpstat -W not-completed"... it shows nothing.
type "lpstat -t" ....
scheduler is running
system default destination: HP-LaserJet-2200
device for HP-LaserJet-2200: usb://HP/LaserJet%202200?serial=00CNHRB13266
HP-LaserJet-2200 accepting requests since Tue 30 Apr 2024 12:17:11 BST
printer HP-LaserJet-2200 is idle. enabled since Tue 30 Apr 2024 12:17:11 BST
type "lpstat -W completed"
(it shows 2 documents printed today (30th), but only the 1st one actually generated paper).
HP-LaserJet-2200-26 main 63488 Tue 30 Apr 2024 12:17:11 BST
HP-LaserJet-2200-25 main 63488 Tue 30 Apr 2024 12:16:22 BST
HP-LaserJet-2200-24 main 63488 Mon 29 Apr 2024 11:10:50 BST
HP-LaserJet-2200-23 main 63488 Mon 29 Apr 2024 11:07:31 BST
HP-LaserJet-2200-22 main 54272 Mon 29 Apr 2024 11:07:30 BST
HP-LaserJet-2200-21 main 54272 Mon 29 Apr 2024 07:17:13 BST
HP-LaserJet-2200-19 main 54272 Mon 29 Apr 2024 07:16:30 BST
HP-LaserJet-2200-18 main 54272 Mon 29 Apr 2024 07:16:29 BST
HP-LaserJet-2200-20 main 54272 Mon 29 Apr 2024 07:14:58 BST

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
Linux main 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Usage: mawk [Options] [Program] [file ...]

Program:
    The -f option value is the name of a file containing program text.
    If no -f option is given, a "--" ends option processing; the following
    parameters are the program text.

Options:
    -f program-file Program text is read from file instead of from the
                     command-line. Multiple -f options are accepted.
    -F value sets the field separator, FS, to value.
    -v var=value assigns value to program variable var.
    -- unambiguous end of options.

    Implementation-specific options are prefixed with "-W". They can be
    abbreviated:

    -W version show version information and exit.
    -W dump show assembler-like listing of program and exit.
    -W help show this message and exit.
    -W interactive set unbuffered output, line-buffered input.
    -W exec file use file as program as well as last option.
    -W random=number set initial random seed.
    -W sprintf=number adjust size of sprintf buffer.
    -W posix_space do not consider "\n" a space.
    -W usage show this message and exit.
{print $2}: command not found
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://packages.microsoft.com/repos/code stable/main armhf Packages
     release o=code stable,a=stable,n=stable,l=code stable,c=main,b=armhf
     origin packages.microsoft.com
 500 https://packages.microsoft.com/repos/code stable/main arm64 Packages
     release o=code stable,a=stable,n=stable,l=code stable,c=main,b=arm64
     origin packages.microsoft.com
 500 https://packages.microsoft.com/repos/code stable/main amd64 Packages
     release o=code stable,a=stable,n=stable,l=code stable,c=main,b=amd64
     origin packages.microsoft.com
 500 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=multiverse,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=multiverse,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/universe i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/restricted i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=restricted,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=restricted,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/main i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu jammy-backports/universe i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-backports,n=jammy,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-backports,n=jammy,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu jammy-backports/main i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-backports,n=jammy,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 100 http://gb.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-backports,n=jammy,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/multiverse i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=multiverse,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=multiverse,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=restricted,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=restricted,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy-updates,n=jammy,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/multiverse i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=multiverse,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=multiverse,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=universe,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=universe,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/restricted i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=restricted,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=restricted,b=amd64
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/main i386 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main,b=i386
     origin gb.archive.ubuntu.com
 500 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
     release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main,b=amd64
     origin gb.archive.ubuntu.com
Pinned packages:

Sent with Proton Mail secure email.

On Monday, 29 April 2024 at 13:00, actionparsnip <email address hidden> wrote:

> Your question #809744 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/809744
>
> Status: Open => Needs information
>
>
> actionparsnip requested more information:
> What is the output of:
>
> lsb_release -a; uname -a; apt-cache policy `dpkg -l | grep hplip | awk {'print $2'}`
>
> Thanks
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/809744
>
> You received this question notification because you asked the question.

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

What output do you receive for the commands

dpkg -l | grep hplip
apt policy hplip hplip-gui

Revision history for this message
Casio (casiobearing) said :
#4

Hiya,
As it happens I just tried printing a PDF in chrome and its not worked (printer sat flashing LED).... so at least it is a repeatable issue.
Here is the output you requested....
main@main:~/Desktop$ dpkg -l | grep hplip
ii hplip 3.21.12+dfsg0-1 amd64 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.21.12+dfsg0-1 all HP Linux Printing and Imaging - data files
main@main:~/Desktop$ apt policy hplip hplip-gui
hplip:
  Installed: 3.21.12+dfsg0-1
  Candidate: 3.21.12+dfsg0-1
  Version table:
 *** 3.21.12+dfsg0-1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
hplip-gui:
  Installed: (none)
  Candidate: 3.21.12+dfsg0-1
  Version table:
     3.21.12+dfsg0-1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
main@main:~/Desktop$

Sent with Proton Mail secure email.

On Tuesday, 30 April 2024 at 12:55, Manfred Hampl <email address hidden> wrote:

> Your question #809744 on hplip in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/809744
>
> Status: Open => Needs information
>
>
> Manfred Hampl requested more information:
> What output do you receive for the commands
>
> dpkg -l | grep hplip
> apt policy hplip hplip-gui
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/hplip/+question/809744
>
> You received this question notification because you asked the question.

Revision history for this message
Casio (casiobearing) said :
#5

A little bit more info.... After my last reply I noticed that the printer LED eventually stopped flashing quite some time later. I decided to try another print, so I powered the printer off and on again (leaving it plugged into the USB). I waited a few minutes just in case anything was queued up for printing.. which there wasn't. I then opened up the same PDF as before in chrome browser and... it successfully printed.
So to sum up so far, it appears that printing from either chrome browser or Document viewer cause data to be sent to the printer, but then it stalls thinking data is being received. After a long time the printer then goes idle without printing anything, whilst the print system thinks everything printed successfully, with successful printing logged in its history.

Can you help with this problem?

Provide an answer of your own, or ask Casio for more information if necessary.

To post a message you must log in.