com error when trying to print from HP ENVY 4520 printer connected via usb.

Asked by trond hansen

when i connect my printer to the usb port the printer is added automatic and hplip is downloaded and installed normaly so it looks like every thing is fine.but when i try to print anything i get a com error.

this error only happens in ubuntu 20.04 every other version of ubuntu funktions fine i have tried every single flavour of ubuntu from 12.04 to 19.10 no problem on any of them.

i have posted some comments to this question https://askubuntu.com/questions/1256942/ubuntu-20-04-printer-choose-driver-change-driver-list-not-displaying it was suggested to post my problem here.

if i remove the printer from the list in software settings and then plug the printer back in it gets registered and added again every thing looks fine but still the com error happens,i have a laptop running ubuntu 16.04 and it funktions with no problem there.

i use the latest kernel at all times so this problem is not one single kernel causing this problem.

i installed the printer in wifi modus today using only the screen on my printer so i did not touch my computer during setup and the printer got detected fine and the printer works fine now.it does not show in the menue of HPLIP and if i try to install it in wifi mode i get prompted to connect the usb cable and i once again get the com error.

the printer worked fine on my pc with previous versions of ubuntu and i have tried to use other usb cables and in other usb ports so this is not a hardware problem.

i have installed hplip via terminal and from software center and removed hplip fully and reinstaled it multiple times,the problem might be with hplip itself i simply do not know what this problem is.

it looks to me like HP printers are not the only ones that has problems under ubuntu 20.04.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
trond hansen
Solved:
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

I have an ENVY 4520 and am very familiar with how it functions with USB
and wireless connections. Some information, please. Give the outputs of

systemctl list-units "ippusbxd*"
lpstat -l -e
lpstat -t
lpinfo -v

when USB is used.

Cheers,

Brian.

Revision history for this message
trond hansen (thanse5) said :
#2

wifi turned off usb connected

  systemctl list-units "ippusbxd*"
   UNIT                     LOAD   ACTIVE SUB
DESCRIPTION                   >
   ippusbxd@001:006.service loaded active running Daemon to make
IPP-over-USB pr>

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Warning: "tat -l -e" exists; Overwrite, Append or Don't log?

lines 1-9/9 (END)...skipping...
   UNIT                     LOAD   ACTIVE SUB
DESCRIPTION                   >
   ippusbxd@001:006.service loaded active running Daemon to make
IPP-over-USB pr>

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
There is no -v option  (press RETURN)

Den 11.07.2020 13:56, skrev brian_p:
> systemctl list-units "ippusbxd*"
> lpstat -l -e
> lpstat -t
> lpinfo -v

Revision history for this message
brian_p (claremont102) said :
#3

The output from ' systemctl list-units "ippusbxd*"' is fine. What about the
other three commands?

Revision history for this message
trond hansen (thanse5) said :
#4

lpstat -l -e
ENVY_4520_series_TH6934G0840660_ network none
ipp://ENVY%204520%20series%20%5BTH6934G0840660%5D._ipp._tcp.local/
HP_ENVY_4520_series_956AF3_ permanent
ipp://localhost/printers/HP_ENVY_4520_series_956AF3_
implicitclass://HP_ENVY_4520_series_956AF3_/
HP_ENVY_4520_series_hp network none
ipps://HP-ENVY-4520-series-hp._ipps._tcp.local/
lpstat -t
scheduler is running
system default destination: HP_ENVY_4520_series_956AF3_
device for HP_ENVY_4520_series_956AF3_:
implicitclass://HP_ENVY_4520_series_956AF3_/
HP_ENVY_4520_series_956AF3_ accepting requests since lø. 11. juli 2020
kl. 15.04 +0200
printer HP_ENVY_4520_series_956AF3_ is idle.  enabled since lø. 11. juli
2020 kl. 15.04 +0200
lpinfo -v
network ipps
network http
network https
network ipp
network socket
network lpd
file cups-brf:/
network beh
direct hp:/usb/ENVY_4520_series?serial=TH6934G0840660
direct hpfax
network ipp://HP-ENVY-4520-series-hp._ipp._tcp.local/

here is the rest.

Den 11.07.2020 13:56, skrev brian_p:
> lpstat -l -e

Revision history for this message
trond hansen (thanse5) said :
#5

sending the information again after trying to install the printer again
using HPLIP toolbox.

systemctl list-units "ippusbxd*"
   UNIT                     LOAD   ACTIVE SUB
DESCRIPTION                   >
   ippusbxd@001:008.service loaded active running Daemon to make
IPP-over-USB pr>

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

lpstat -l -e
ENVY_4520 permanent ipp://localhost/printers/ENVY_4520
hp:/usb/ENVY_4520_series?serial=TH6934G0840660
ENVY_4520_series_TH6934G0840660_ network none
ipp://ENVY%204520%20series%20%5BTH6934G0840660%5D._ipp._tcp.local/
HP_ENVY_4520_series_956AF3_ permanent
ipp://localhost/printers/HP_ENVY_4520_series_956AF3_
implicitclass://HP_ENVY_4520_series_956AF3_/
HP_ENVY_4520_series_hp network none
ipps://HP-ENVY-4520-series-hp._ipps._tcp.local/

lpstat -t
scheduler is running
system default destination: HP_ENVY_4520_series_956AF3_
device for ENVY_4520: hp:/usb/ENVY_4520_series?serial=TH6934G0840660
device for HP_ENVY_4520_series_956AF3_:
implicitclass://HP_ENVY_4520_series_956AF3_/
ENVY_4520 accepting requests since lø. 11. juli 2020 kl. 16.00 +0200
HP_ENVY_4520_series_956AF3_ accepting requests since lø. 11. juli 2020
kl. 15.04 +0200
printer ENVY_4520 is idle.  enabled since lø. 11. juli 2020 kl. 16.00 +0200
printer HP_ENVY_4520_series_956AF3_ is idle.  enabled since lø. 11. juli
2020 kl. 15.04 +0200

lpinfo -v
network beh
file cups-brf:/
network ipps
network http
network socket
network lpd
network ipp
network https
direct hp:/usb/ENVY_4520_series?serial=TH6934G0840660
direct hpfax
network ipp://HP-ENVY-4520-series-hp._ipp._tcp.local/

Den 11.07.2020 13:56, skrev brian_p:
> Your question #691805 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/691805
>
> Status: Open => Needs information
>
> brian_p requested more information:
> I have an ENVY 4520 and am very familiar with how it functions with USB
> and wireless connections. Some information, please. Give the outputs of
>
> systemctl list-units "ippusbxd*"
> lpstat -l -e
> lpstat -t
> lpinfo -v
>
> when USB is used.
>
> Cheers,
>
> Brian.
>

Revision history for this message
brian_p (claremont102) said :
#6

Can you print with this command?

  lp -d ENVY_4520_series_TH6934G0840660_ /etc/nsswitch.conf

Also read:

  https://wiki.debian.org/CUPSDriverlessPrinting#ippoverusb

Revision history for this message
brian_p (claremont102) said :
#7

> sending the information again after trying to install the printer again
> using HPLIP toolbox

You can set up a print queue with HPLIP but will not be able to print
using it. In fact, Ubuntu 20.04 has things set up so that HPLIP is not
needed. You are not the first user to fight against the intended use
of a new facility.

An explanation follows after you respond to my information request.

Revision history for this message
trond hansen (thanse5) said :
#8

lp -d ENVY_4520_series_TH6934G0840660_  /etc/nsswitch.conf

lp: The printer or class does not exist.

Den 11.07.2020 16:15, skrev brian_p:
> lp -d ENVY_4520_series_TH6934G0840660_ /etc/nsswitch.conf

Revision history for this message
brian_p (claremont102) said :
#9

> lp: The printer or class does not exist.

Ok. Please try

  lp -d HP_ENVY_4520_series_956AF3_ /etc/nsswitch.conf

Revision history for this message
trond hansen (thanse5) said :
#10

  lp -d HP_ENVY_4520_series_956AF3_ /etc/nsswitch.conf
request id is HP_ENVY_4520_series_956AF3_-92 (1 file(s))
it still does not print,i do not want to take more of your time it is
weekend.i can use the printer on wifi so it is okay.

Den 11.07.2020 17:00, skrev brian_p:
> lp -d HP_ENVY_4520_series_956AF3_ /etc/nsswitch.conf

Revision history for this message
brian_p (claremont102) said :
#11

Thank you for your consideration, Trond. Personally, I always use
wireless in preference to USB.

The explanation I promised: ippusbxd, and the better ipp-usb, both
commandeer the printer's USB interface. Nothing else can now use
it. It is not an HPLIP or printer issue, so, basically, this issue should be
marked as "solved".

I've also found that disconnecting and switching the printer off for
a few minutes can restore the USB printing function.

Revision history for this message
trond hansen (thanse5) said :
#12

i consider this problem solved.

Revision history for this message
trond hansen (thanse5) said :
#13

marked as solved,thank you for your help.

Den 11.07.2020 17:41, skrev brian_p:
> Your question #691805 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/691805
>
> brian_p posted a new comment:
> Thank you for your consideration, Trond. Personally, I always use
> wireless in preference to USB.
>
> The explanation I promised: ippusbxd, and the better ipp-usb, both
> commandeer the printer's USB interface. Nothing else can now use
> it. It is not an HPLIP or printer issue, so, basically, this issue should be
> marked as "solved".
>
> I've also found that disconnecting and switching the printer off for
> a few minutes can restore the USB printing function.
>