Also as requested,

Anyone with problems here, please
- If you have a Snap of HPLIP installed, uninstall it, the one I know of is 
experimental
>no snap installed

$ snap list
Name                 Version             Rev   Tracking         Publisher   
Notes
canonical-livepatch  9.5.5               95    latest/stable    canonical✓  -
core                 16-2.44.3           9066  latest/stable    canonical✓  core
core18               20200427            1754  latest/stable    canonical✓  base
gnome-3-34-1804      0+git.3009fc7       33    latest/stable/…  canonical✓  -
gtk-common-themes    0.1-36-gc75f853     1506  latest/stable/…  canonical✓  -
snap-store           3.36.0-80-g208fd61  454   latest/stable/…  canonical✓  -
vlc                  3.0.10              1620  latest/stable    videolan✓   -


- Remove any HPLIP version installed directly from HP
->done

- Re-install Ubuntu's HPLIP via the command:
->done

  sudo apt install --reinstall printer-driver-hpcups 
printer-driver-postscript-hp libsane-hpaio hplip-gui hplip hplip-data libhpmud0
->done

  Please post the output of this command here.

---------

:~$   sudo apt install --reinstall printer-driver-hpcups 
printer-driver-postscript-hp libsane-hpaio hplip-gui hplip hplip-data libhpmud0
[sudo] password for :
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-29 linux-headers-5.4.0-29-generic 
linux-image-5.4.0-29-generic linux-modules-5.4.0-29-generic 
linux-modules-extra-5.4.0-29-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 7 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/8,271 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 322326 files and directories currently installed.)
Preparing to unpack .../0-printer-driver-postscript-hp_3.20.3+dfsg0-2_amd64.deb 
...
Unpacking printer-driver-postscript-hp (3.20.3+dfsg0-2) over (3.20.3+dfsg0-2) 
...
Preparing to unpack .../1-libsane-hpaio_3.20.3+dfsg0-2_amd64.deb ...
Unpacking libsane-hpaio:amd64 (3.20.3+dfsg0-2) over (3.20.3+dfsg0-2) ...
Preparing to unpack .../2-hplip_3.20.3+dfsg0-2_amd64.deb ...
Unpacking hplip (3.20.3+dfsg0-2) over (3.20.3+dfsg0-2) ...
Preparing to unpack .../3-hplip-data_3.20.3+dfsg0-2_all.deb ...
Unpacking hplip-data (3.20.3+dfsg0-2) over (3.20.3+dfsg0-2) ...
Preparing to unpack .../4-hplip-gui_3.20.3+dfsg0-2_all.deb ...
Unpacking hplip-gui (3.20.3+dfsg0-2) over (3.20.3+dfsg0-2) ...
Preparing to unpack .../5-libhpmud0_3.20.3+dfsg0-2_amd64.deb ...
Unpacking libhpmud0:amd64 (3.20.3+dfsg0-2) over (3.20.3+dfsg0-2) ...
Preparing to unpack .../6-printer-driver-hpcups_3.20.3+dfsg0-2_amd64.deb ...
Unpacking printer-driver-hpcups (3.20.3+dfsg0-2) over (3.20.3+dfsg0-2) ...
Setting up hplip-data (3.20.3+dfsg0-2) ...
Setting up printer-driver-postscript-hp (3.20.3+dfsg0-2) ...
Setting up libhpmud0:amd64 (3.20.3+dfsg0-2) ...
Setting up libsane-hpaio:amd64 (3.20.3+dfsg0-2) ...
Setting up printer-driver-hpcups (3.20.3+dfsg0-2) ...
Setting up hplip (3.20.3+dfsg0-2) ...
Creating/updating hplip user account...
Setting up hplip-gui (3.20.3+dfsg0-2) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for cups (2.3.1-9ubuntu1.1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2) ...
---------


- Remove your current print queues with the command:
  lpadmin -x QUEUE_NAME
  Replace QUEUE_NAME by the name of your print queue, as it is shown in the 
output of "lpstat -v"
-> done


- Unplug the printer from USB and re-plug it. Does a new print queue get 
created ("lpstat -v" should show it)? Can you print using this queue?

It did not, it looks like app armor issues in the dmesg log:
---------
[  672.163397] usb 2-2.4: USB disconnect, device number 4
[  679.495774] usb 2-2.4: new high-speed USB device number 8 using xhci_hcd
[  679.516313] usb 2-2.4: New USB device found, idVendor=03f0, idProduct=0053, 
bcdDevice= 1.00
[  679.516319] usb 2-2.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[  679.516323] usb 2-2.4: Product: DeskJet 2600 series
[  679.516325] usb 2-2.4: Manufacturer: HP
[  679.516328] usb 2-2.4: SerialNumber: CN9348C3ZY06PS
[  679.523334] usblp 2-2.4:1.1: usblp0: USB Bidirectional printer dev 8 if 1 
alt 0 proto 2 vid 0x03F0 pid 0x0053
[  679.742191] usb 2-2.4: usbfs: process 3664 (ippusbxd) did not claim 
interface 0 before use
[  679.748844] usblp0: removed
[  679.769311] kauditd_printk_skb: 10 callbacks suppressed
[  679.769313] audit: type=1400 audit(1590628537.997:263): apparmor="DENIED" 
operation="open" profile="ippusbxd" name="/etc/nsswitch.conf" pid=3688 
comm="ippusbxd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[  679.769317] audit: type=1400 audit(1590628537.997:264): apparmor="DENIED" 
operation="open" profile="ippusbxd" name="/etc/nsswitch.conf" pid=3688 
comm="ippusbxd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
---------

I do not remember seeing this as an issue before. I will need to find time to 
look into this.
Attempting to relax app armor did change the logs to allow (sudo aa-complain 
ippusbxd) but did not generate a printer queue when removed and re-added. I 
have returned to deny (sudo aa-enforce ippusbxd)

---------
:~$ lpstat -v
lpstat: No destinations added.
:~$ 

---------


- Could you create a driverless print queue (this queue does not use HPLIP but 
common, manufacturer-independent communication protocols of the printer)? 
First, run the command

-> worth a shot, I think when I first installed the printer I was able
too, as it replaced an old Cannon and began functioning as a basic
printer but with a poor queue name. After trying to work with the hplip
configuratoin I was no longer able to add it as a driverless printer.
Right now not seeing any queue auto generated. When I run driverless I
get no output currently.

-------
:~$ lpstat -v
lpstat: No destinations added.
:~$ driverless
:~$ 
------


  driverless
  It should show one or more printer URIs, one per line.

  Now run

  lpadmin -p PRINTER -E -v URI -m everywhere

  Replace PRINTER by a print queue name of your choice and URI by one of the 
URIs from the output
  of the "driverless" command, the one corresponding to the printer you want to 
set up.

  Can you print with this print queue?
-> cannot currently add a driverles printer queue

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1878974

Title:
  Unable to use HP USB Printer in Ubuntu 20.04 - apear to be hplip
  issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/hplip/+bug/1878974/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to