I can't install hplip, got errors

Asked by Guillaume Soucy on 2020-03-31

Hello,

I'm not able to install hplip on my computer, when using the .run package by following the instructions from here: https://developers.hp.com/hp-linux-imaging-and-printing/install/install/index it run for hours without giving any results, even not a single error message.

When using the instructions form here: https://developers.hp.com/hp-linux-imaging-and-printing/install/manual/distros/linuxmint it the terminal give me this error:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0.0-dev'
Note, selecting 'libsane1' instead of 'libsane'
build-essential is already the newest version (12.4ubuntu1).
policykit-1-gnome is already the newest version (0.105-6ubuntu2).
python is already the newest version (2.7.15~rc1-1).
python-dbus is already the newest version (1.2.6-1).
python-notify is already the newest version (0.1.1-4).
python-qt4 is already the newest version (4.12.1+dfsg-2).
python-qt4-dbus is already the newest version (4.12.1+dfsg-2).
python-imaging is already the newest version (3.1.2-0ubuntu1.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cups : Depends: cups-core-drivers (>= 2.2.7-1ubuntu2.7)
        Depends: cups-daemon (>= 2.2.7-1ubuntu2.7)
        Depends: cups-common (>= 2.2.7-1ubuntu2.7) but 2.2.7-1ubuntu2.2 is to be installed
        Depends: cups-server-common (>= 2.2.7-1ubuntu2.7) but 2.2.7-1ubuntu2.2 is to be installed
 cups-bsd : Depends: cups-common (>= 2.2.7-1ubuntu2.7) but 2.2.7-1ubuntu2.2 is to be installed
 cups-client : Depends: cups-common (>= 2.2.7-1ubuntu2.7) but 2.2.7-1ubuntu2.2 is to be installed
 cups-core-drivers : Depends: libcups2 (= 2.2.7-1ubuntu2.2) but 2.2.7-1ubuntu2.7 is to be installed
 cups-daemon : Depends: libcups2 (= 2.2.7-1ubuntu2.2) but 2.2.7-1ubuntu2.7 is to be installed
 cups-ipp-utils : Depends: libcups2 (= 2.2.7-1ubuntu2.2) but 2.2.7-1ubuntu2.7 is to be installed
 ghostscript : Depends: libgs9 (= 9.26~dfsg+0-0ubuntu0.18.04.12) but 9.26~dfsg+0-0ubuntu0.18.04.3 is to be installed
 ghostscript-x : Depends: ghostscript (= 9.26~dfsg+0-0ubuntu0.18.04.3)
 libcupscgi1 : Depends: libcups2 (= 2.2.7-1ubuntu2.2) but 2.2.7-1ubuntu2.7 is to be installed
 libcupsimage2 : Depends: libcups2 (= 2.2.7-1ubuntu2.2) but 2.2.7-1ubuntu2.7 is to be installed
 libcupsimage2-dev : Depends: libcupsimage2 (= 2.2.7-1ubuntu2.7) but 2.2.7-1ubuntu2.2 is to be installed
                     Depends: libpng-dev but it is not going to be installed
                     Depends: libtiff-dev but it is not going to be installed
                     Depends: libjpeg-dev
                     Depends: zlib1g-dev but it is not going to be installed
 libcupsmime1 : Depends: libcups2 (= 2.2.7-1ubuntu2.2) but 2.2.7-1ubuntu2.7 is to be installed
 libcupsppdc1 : Depends: libcups2 (= 2.2.7-1ubuntu2.2) but 2.2.7-1ubuntu2.7 is to be installed
 libdbus-1-dev : Depends: libdbus-1-3 (= 1.12.2-1ubuntu1.1) but 1.12.2-1ubuntu1 is to be installed
 libjpeg62-dev : Depends: libjpeg62 (= 1:6b2-3) but it is not going to be installed
 libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.17-1~18.04) but 2.7.15~rc1-1ubuntu0.1 is to be installed
 libsane1 : Depends: libsane-common (= 1.0.27-1~experimental3ubuntu2.2) but 1.0.27-1~experimental3ubuntu2 is to be installed
 libsnmp-dev : Depends: libsnmp30 (= 5.7.3+dfsg-1.8ubuntu3.3) but 5.7.3+dfsg-1.8ubuntu3.1 is to be installed
               Depends: libwrap0-dev but it is not going to be installed
               Depends: libssl-dev but it is not going to be installed
               Depends: libsensors4-dev but it is not going to be installed
               Depends: libpci-dev but it is not going to be installed
 libtool : Depends: autotools-dev but it is not going to be installed
 policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-20ubuntu0.18.04.5) but 0.105-20ubuntu0.18.04.4 is to be installed
               Depends: libpolkit-backend-1-0 (= 0.105-20ubuntu0.18.04.5) but 0.105-20ubuntu0.18.04.4 is to be installed
               Depends: libpolkit-gobject-1-0 (= 0.105-20ubuntu0.18.04.5) but 0.105-20ubuntu0.18.04.4 is to be installed
 python-dev : Depends: libpython-dev (= 2.7.15~rc1-1) but it is not going to be installed
              Depends: python2.7-dev (>= 2.7.15~rc1-1~) but it is not going to be installed
 python-gobject : Depends: python-gi (>= 3.26.1-2ubuntu1) but 3.26.1-2 is to be installed
 python-reportlab : Depends: python-reportlab-accel (>= 3.4.0-3ubuntu0.1) but 3.4.0-3build1 is to be installed
 python2.7 : Depends: python2.7-minimal (= 2.7.17-1~18.04) but 2.7.15~rc1-1ubuntu0.1 is to be installed
             Depends: libpython2.7-stdlib (= 2.7.17-1~18.04) but 2.7.15~rc1-1ubuntu0.1 is to be installed
 xsane : Depends: xsane-common (= 0.999-5ubuntu2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

after I'd ran this command: apt-get install --assume-yes libcups2 cups libcupsimage2-dev libcups2-dev cups-bsd cups-client libdbus-1-dev build-essential ghostscript openssl libjpeg62-dev libsnmp-dev libtool libusb-1.0.0-dev wget python-imaging policykit-1 policykit-1-gnome python-qt4 python-qt4-dbus python-dbus python-gobject python-dev python-notify python python-reportlab libsane libsane-dev sane-utils xsane

Regards,

Guillaume

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Guillaume Soucy
Solved:
2020-05-25
Last query:
2020-05-25
Last reply:
2020-05-17
brian_p (claremont102) said : #1

What is the printer model?

Brian.

The model is HP Scan Jet Pro 2500 f1 (its a scanner).

I proceed to a fresh install because I've get some dependency errors also before, so now when I try to proceed to a manual install I've got this return from the terminal:
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-05%2000-28-53.png

And when I try to use the automatic installer this is what I've got:
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-05%2000-29-09.png

Thanks!

Guillaume

Anam Alam (anam03) said : #3

The HPLIP version 3.19.11 didn't have support for Linux Mint 19.3 .

Download the latest HPLIP version 3.20.3 from https://developers.hp.com/hp-linux-imaging-and-printing and kindly check again.

If the problem persists revert back again.

Hello,

I've get the installation done but it was not able to detect the ScanJet yet. I reboot the computer, use another USB port, nothing.

The version 3.20.3 is the installed one now:
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-20%2023-03-11.png

So, I tried a Setup Device:
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-20%2023-03-24.png

xsane find nothing: http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-20%2023-03-34.png
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-20%2023-03-42.png

SimpleScan did not detect the scanner:
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-20%2023-03-58.png

I also proceed with a diagnostic:
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-20%2023-05-20.png

When HP Device Manager try to scan for the scanner device, it wasn't able to find it either:
http://download.guillaumesoucy.com/forums_content/launchpad.net/pictures/Screenshot%20from%202020-04-20%2023-06-37.png

Is I need to do something else after having the HP Device Manager installed on the computer to get the HP ScanJet detected by the software?

Regards,

Guillaume

Hello,

It still not work.

Hello,

It still not work. Need more help please.

Thanks,

Hello,

It still not work. Need more help please.

Thanks,

Good day,

May I please have help? Linux Mint is actually an supported distros and it this scanner should work.

Thank-you,

Good day,

May I please have help? Linux Mint is actually an supported distros and it this scanner should work.

Thank-you

Manfred Hampl (m-hampl) said : #10

Is the scanner connected to the computer? Is it switched on?
What output do you receive for the commands

sane-find-scanner
sudo sane-find-scanner

Hi,

Yes, the scanner is connected and it is on.

This is the command output:

root@scanner-001-01:~# 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 USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x6005 [HP ScanJet Pro 2500 f1]) at libusb:001:004
could not fetch string descriptor (again): Overflow
  # 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.
root@scanner-001-01:~# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
root@scanner-001-01:~#

Regards,

Manfred Hampl (m-hampl) said : #12

What output does
sane-find-scanner
produce when executed by an unprivileged user?

As my user it gave me:

zawack@scanner-001-01:/root$ 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 0x05ac/0x8502 at 002:003: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x05ac/0x8242 at 007:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 007:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 006:001: Access denied (insufficient permissions)
could not open USB device 0x1c4f/0x0002 at 005:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 005:001: Access denied (insufficient permissions)
could not open USB device 0x03f0/0x6005 at 001:004: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x0000/0x0538 at 003:004: Access denied (insufficient permissions)
could not open USB device 0x05ac/0x820f at 003:003: Access denied (insufficient permissions)
could not open USB device 0x0a5c/0x4500 at 003:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 003:001: Access denied (insufficient permissions)
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # 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.

When using sudo it gave me:

zawack@scanner-001-01:/root$ sudo sane-find-scanner
[sudo] password for zawack:

  # 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 USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x6005 [HP ScanJet Pro 2500 f1]) at libusb:001:004
  # 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.

Manfred Hampl (m-hampl) said : #14

Apparently at least an access right problem.

TRy

sudo usermod -a -G scanner zawack

logoff and logon again, then repeat

sane-find-scanner
scanimage -L
(both without sudo)

What is now the output?

What I've got is:

sudo usermod -a -G scanner zawack

logoff and logon again, then repeat

sane-find-scanner
scanimage -L
(both without sudo)

zawack@scanner-001-01:~$ 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 0x05ac/0x8502 at 002:003: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x05ac/0x8242 at 007:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 007:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 006:001: Access denied (insufficient permissions)
could not open USB device 0x1c4f/0x0002 at 005:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 005:001: Access denied (insufficient permissions)
could not open USB device 0x03f0/0x6005 at 001:004: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x0000/0x0538 at 003:006: Access denied (insufficient permissions)
could not open USB device 0x05ac/0x820f at 003:003: Access denied (insufficient permissions)
could not open USB device 0x0a5c/0x4500 at 003:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 003:001: Access denied (insufficient permissions)
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # 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.
zawack@scanner-001-01:~$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
zawack@scanner-001-01:~$

Manfred Hampl (m-hampl) said : #16

What is the output of the commands

lsusb
ls -l /dev/bus/usb/*

This is the output that I've got:

root@scanner-001-01:~# lsusb
Bus 002 Device 003: ID 05ac:8502 Apple, Inc. Built-in iSight
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 05ac:8242 Apple, Inc. Built-in IR Receiver
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 006: ID 0000:0538
Bus 003 Device 003: ID 05ac:820f Apple, Inc. Bluetooth HCI
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@scanner-001-01:~# ls -l /dev/bus/usb/*
/dev/bus/usb/001:
total 0
crw-rw-r-- 1 root root 189, 0 May 17 15:32 001

/dev/bus/usb/002:
total 0
crw-rw-r-- 1 root root 189, 128 May 17 15:32 001
crw-rw-r-- 1 root root 189, 130 May 17 15:32 003

/dev/bus/usb/003:
total 0
crw-rw-r-- 1 root root 189, 256 May 17 15:32 001
crw-rw-r-- 1 root root 189, 257 May 17 15:32 002
crw-rw-r-- 1 root root 189, 258 May 17 15:32 003
crw-rw-r-- 1 root root 189, 261 May 17 15:32 006

/dev/bus/usb/004:
total 0
crw-rw-r-- 1 root root 189, 384 May 17 15:32 001

/dev/bus/usb/005:
total 0
crw-rw-r-- 1 root root 189, 512 May 17 15:32 001
crw-rw-r-- 1 root root 189, 513 May 17 15:32 002

/dev/bus/usb/006:
total 0
crw-rw-r-- 1 root root 189, 640 May 17 15:32 001

/dev/bus/usb/007:
total 0
crw-rw-r-- 1 root root 189, 768 May 17 15:32 001
crw-rw-r-- 1 root root 189, 769 May 17 15:32 002
root@scanner-001-01:~#

Manfred Hampl (m-hampl) said : #18

Was the scanner connected and switched on when running these commands?

Sorry I've forget that part...

There we go:

root@scanner-001-01:~# lsusb
Bus 002 Device 003: ID 05ac:8502 Apple, Inc. Built-in iSight
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 05ac:8242 Apple, Inc. Built-in IR Receiver
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 03f0:6005 Hewlett-Packard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 006: ID 0000:0538
Bus 003 Device 003: ID 05ac:820f Apple, Inc. Bluetooth HCI
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@scanner-001-01:~# ls -l /dev/bus/usb/*
/dev/bus/usb/001:
total 0
crw-rw-r-- 1 root root 189, 0 May 18 02:31 001
crw-rw-r-- 1 root root 189, 3 May 18 02:31 004

/dev/bus/usb/002:
total 0
crw-rw-r-- 1 root root 189, 128 May 18 02:31 001
crw-rw-r-- 1 root root 189, 130 May 18 02:31 003

/dev/bus/usb/003:
total 0
crw-rw-r-- 1 root root 189, 256 May 18 02:31 001
crw-rw-r-- 1 root root 189, 257 May 18 02:31 002
crw-rw-r-- 1 root root 189, 258 May 18 02:31 003
crw-rw-r-- 1 root root 189, 261 May 18 02:31 006

/dev/bus/usb/004:
total 0
crw-rw-r-- 1 root root 189, 384 May 18 02:31 001

/dev/bus/usb/005:
total 0
crw-rw-r-- 1 root root 189, 512 May 18 02:31 001
crw-rw-r-- 1 root root 189, 513 May 18 02:31 002

/dev/bus/usb/006:
total 0
crw-rw-r-- 1 root root 189, 640 May 18 02:31 001

/dev/bus/usb/007:
total 0
crw-rw-r-- 1 root root 189, 768 May 18 02:31 001
crw-rw-r-- 1 root root 189, 769 May 18 02:31 002
root@scanner-001-01:~#

I've got an "Bus 001 Device 004: ID 03f0:6005 Hewlett-Packard" now.

Hello,

Any idea?

Hello,

Any idea?

Manfred Hampl (m-hampl) said : #22

Q: "I can't install hplip, got errors"
A: "I've get the installation done"
So your question is answered, isn't it?

If you have problems using a scanner, then you should create a new question.

ok, question has been marked as solved and a new one will be opened soon concerning the usage of the machinery in question, as suggested.

Regards,

Guillaume