hplip Can Not Find internet connection in Linux Terminal

Asked by Tom Mannoia

I have used my HP Envy 4520 on my Dell Inspiron 3670 for many years using Windows and several linux operating systems. All was working well until I did an upgrade to Kubuntu 22.04.

When I run the install in the terminal: sh hplip-32.2.run, the install informs me that I need to install dependencies. I select "yes" then I am presented with this error message:

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.

The install cannot access the internet from my Konsole. But I can. I can ping, I can get system updates, I can do everything else in Konsole, but not the hplip installation.

Is there a work-around I can use to fix this? I do need my printer

Thank you for your help

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Tom Mannoia
Solved:
Last query:
Last reply:

This question was reopened

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

For Ubuntu 22.04 there is a modified HPLIP package available in the Ubuntu repositories (version 3.21.12+dfsg0-1).
Just install that version with
sudo apt hplip hplip-gui

Revision history for this message
Tom Mannoia (tmannoia) said :
#2

Thank you for your help. I am able to print now. The actual command was sudo apt "install" hplip hplip-gui.

As I said, I can print ... but the device is still not recognized as a USB device and as such it can't scan to the computer. I have to play with it some to see what I can do.

Thank you for getting my printer working again. That was invaluable! I needed it and you came though in no time.

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

Sorry for the omission in the command that I gave, but you corrected it perfectly.

For scanning:
What output do you receive for the commands
lsusb
sudo sane-find-scanner
sane-find-scanner

Revision history for this message
Tom Mannoia (tmannoia) said :
#4

Thank you AGAIN for following up. I wasn't expecting assistance for this part, but I can sure use it. Thank you very much for reaching out

I was trying different things and installed 2 scanning programs: gscan2pdf and also xsane. Now, in the hplip toolbox, my printer _does_ show up as HP Envy 4520 Series hp:/usb/ENVY_4520_series?serial=TH7684H22G0660. But I still can't scan.

I get the following error message in xsane and also in gscan2pdf. When I use the Paperwork program, there is no "button" for scanning. I go to set-up/calibrate within Paperwork and the program just sits there until I close it.

Although it shows up in my log, I don't have hp envy photo 7800 series. That somehow installed along with the hplip set-up

----------------------------------------------

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 03f0:d711 HP, Inc ENVY 4520 series
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 413c:301a Dell Computer Corp. Dell MS116 Optical Mouse
Bus 001 Device 002: ID 046d:c31d Logitech, Inc. Media Keyboard K200
Bus 001 Device 007: ID 0cf3:e005 Qualcomm Atheros Communications
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

---------------------------------------------------------------------

sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
found possible USB scanner (vendor=0x03f0 [HP], product=0xd711 [ENVY 4520 series]) at libusb:001:005
could not open USB device 0x0bda/0x0129 at 001:004: Access denied (insufficient permissions)
could not open USB device 0x413c/0x301a at 001:003: Access denied (insufficient permissions)
could not open USB device 0x046d/0xc31d at 001:002: Access denied (insufficient permissions)
could not open USB device 0x0cf3/0xe005 at 001:007: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.

  ------------------------------------------------------------------------------

$ sudo sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found possible USB scanner (vendor=0x03f0 [HP], product=0xd711 [ENVY 4520 series]) at libusb:001:005
found possible USB scanner (vendor=0x0bda [Generic], product=0x0129 [USB2.0-CRW]) at libusb:001:004
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  -------------------------------------------------------------------------

$ scanimage -L
device `hpaio:/usb/ENVY_4520_series?serial=TH7684H22G0660' is a Hewlett-Packard ENVY_4520_series all-in-one
device `hpaio:/net/envy_photo_7800_series?ip=172.25.13.3&queue=false' is a Hewlett-Packard envy_photo_7800_series all-in-one
device `airscan:e1:HP ENVY 4520 series [B579D5] (USB)' is a eSCL HP ENVY 4520 series [B579D5] (USB) ip=127.0.0.1
device `airscan:e0:HP ENVY Photo 7800 series [17034C]' is a eSCL HP ENVY Photo 7800 series [17034C] ip=172.25.13.3

Revision history for this message
Tom Mannoia (tmannoia) said :
#5

I'm sorry, I referred to an error message in gscan2pdf and also xsane, but I forgot to paste it in my reply:

Error opening device: opening device 'hpaio:/usb/ENVY_4520_series?serial=TH7684H22G0660': Error during device I/O

Revision history for this message
Tom Mannoia (tmannoia) said :
#6

Also, when I open the HP Tookit, I get THIS message: No Installed HP Devices Found

But I CAN print

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

What happens when you try using the 'airscan:e1:HP ENVY 4520 series [B579D5] (USB)' device in xsane?

Revision history for this message
Tom Mannoia (tmannoia) said :
#8

My most sincere apologies. The errors were ALL my own. There is NO PROBLEM with the printer/scanner install.

As a matter of fact, it could not be easier to use this printer.

I was very frustrated so I did a complete re-install of Kubuntu 22.04. Doing nothing but the install, the printer/scanner was recognized and everything just simply worked.

My errors were caused by trying to run hplip- by trying to use the gui installer, etc. There is NO NEED to do that. The printer is already setup to work. Ubuntu installed it along with the OS.

Thank you for everything. I am sorry for all the confusion. Things simply work on a clean install.