LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2019, 12:50 PM   #1
p's-Qs
LQ Newbie
 
Registered: Nov 2019
Posts: 3

Rep: Reputation: Disabled
Help installing missing dependencies for HPLIP


Hi there!

While trying to set up my printer and installing HPLIP, I got this message:
MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
libcrypto network REQUIRED
libnetsnmp-devel network REQUIRED
sane-devel scan REQUIRED
pil scan OPTIONAL
pyqt4-dbus gui_qt4 REQUIRED
python-devel base REQUIRED
cups-devel base REQUIRED
python-dbus fax REQUIRED
reportlab fax OPTIONAL
pyqt4 gui_qt4 REQUIRED
libusb base REQUIRED
libtool base REQUIRED
cups-image base REQUIRED
python-notify gui_qt4 OPTIONAL
xsane scan OPTIONAL
libjpeg base REQUIRED
dbus fax REQUIRED
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?
and then
INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python-devel (Python devel - Python development files)
warning: This installer cannot install 'python-devel' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.
Now, I've since managed to install a few of these on my own. The ones I haven't been able to figure out how to install are:

sane-devel
pil
pyqt4-dbus
cups-devel
reportlab
pyqt4
libusb
libtool
cups-image
libjpeg
dbus

Out of these, I get the following for libtool and dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
libtool is already the newest version (2.4.6-0.1).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
dbus is already the newest version (1.10.6-1ubuntu3.4).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
and this message for the rest of them
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package [package name]
I'd really appreciate any input as to how to install the these/ get my printer running!

printer is HP DeskJet 3762
elementary OS 0.4.1 Loki for a distro

Thanks in advance!

-p
 
Old 11-24-2019, 01:25 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
How have you been trying to install hplip? I definitely wouldn't recommend downloading it from the HP site. That's how you install stuff in Windows, but in Linux it's nearly always a bad idea. Remember, the people on that site have no idea what kind of Linux system you have. The fact that they mention -devel packages suggests that you have got a Red Hat version, whereas your OS belongs to the Debian family.

In fact most distros these days have hplip as a prebuilt package which you install using your package manager. Any required dependencies will then come over automatically.

Open a terminal and type
Code:
sudo apt install hplip
then follow instructions.
 
1 members found this post helpful.
Old 11-25-2019, 08:26 AM   #3
p's-Qs
LQ Newbie
 
Registered: Nov 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for your reply!

Quote:
How have you been trying to install hplip? I definitely wouldn't recommend downloading it from the HP site. That's how you install stuff in Windows, but in Linux it's nearly always a bad idea.
I did download from the HP site.

Quote:
Remember, the people on that site have no idea what kind of Linux system you have. The fact that they mention -devel packages suggests that you have got a Red Hat version, whereas your OS belongs to the Debian family.
That's good to know, thank you!

Quote:
In fact most distros these days have hplip as a prebuilt package which you install using your package manager. Any required dependencies will then come over automatically.
I read about that but also read that downloading from the site could be helpful if there were any problems. Since the printer didn't show up upon being plugged in, I figured I'd give that a go.

I've now followed your instructions:
Building dependency tree
Reading state information... Done
hplip is already the newest version (3.16.3+repack0-1).
hplip set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
I'm guessing this means it's already installed, like you said? The printer still doesn't show up when plugged in though.

I ran the
Code:
hp-check
command as suggested on the HP troubleshooting site and got a lengthy message which I can share if it's helpful but the main points seem to be:
warning: "elementary" distro is not found in AUTH_TYPES
warning: unknown-0.4.1 version is not supported. Using unknown-0 versions dependencies to verify and install...
warning: HPLIP-Installation: Auto installation is not supported for unknown distro 0.4.1 version
warning: Failed to read /etc/cups/ppd/HP_DeskJet_3700_series.ppd ppd file
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
error: Unsupported model: DeskJet_3700_series
and

| SUMMARY |

-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None


Total Errors: 12
Total Warnings: 1

So does this mean the printer, distro and HPLIP are not compatible/ supported by one another? Is there anything I can do about this?

Thanks again!
 
Old 11-25-2019, 09:43 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Most of those warnings are spurious. They just mean that HP have never heard of ElementaryOS. So what! The one about /etc/cups/ppd/HP_DeskJet_3700_series.ppd is more interesting. Do you actually have this file? If not, hopefully you will have a copy somewhere else, probably somewhere in /usr/share/ppd or /usr/share/cups.

Open a terminal and type "locate HP_DeskJet_3700_series.ppd". If you can find it, copy it over as root. It might be all you need.

Alternatively, have you tried installing the printer using the cups web interface? If not, we can talk you through that.

btw I have found HP Deskjet 3740 on openprinting.org so 3700 should work too.

Last edited by hazel; 11-25-2019 at 09:46 AM.
 
1 members found this post helpful.
Old 11-25-2019, 10:12 AM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
p's-Qs,

I find the HP “Walkthrough” very reliable and easy to follow.

All the missing dependencies will be installed as the installation proceeds.

https://developers.hp.com/hp-linux-i.../install/index

Download hplip-3.19.11.run (for Ubuntu) to either your Desktop or Downloads folder.

Then in Terminal:

Code:
cd Desktop
(OR cd Downloads)

(Press Enter).

Then:

Code:
sh hplip-3.19.11.run
(press Enter)

Then follow the interactive guide.

Last edited by beachboy2; 11-25-2019 at 10:15 AM.
 
Old 11-25-2019, 02:39 PM   #6
p's-Qs
LQ Newbie
 
Registered: Nov 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Do you actually have this file? If not, hopefully you will have a copy somewhere else, probably somewhere in /usr/share/ppd or /usr/share/cups.

Open a terminal and type "locate HP_DeskJet_3700_series.ppd". If you can find it, copy it over as root. It might be all you need.
How do I know if I have it? After typing in what you suggested nothing happens. Do I need to do anything else?

Quote:
Alternatively, have you tried installing the printer using the cups web interface? If not, we can talk you through that.
No, I haven't. It'd be really helpful if you could walk me through that! Thank you!

Quote:
btw I have found HP Deskjet 3740 on openprinting.org so 3700 should work too.
Ah, good to know!


beachboy2, thanks for your reply! That's what I tried before starting this thread. I did find the HP walkthrough helpful. That said, the missing dependencies weren't installed automatically, hence my initial question in my first post.
 
Old 11-26-2019, 05:48 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
The command line only gives you output when there's something to print. If locate doesn't print anything, it means it can't find the file, so it really hasn't been installed. But since you have downloaded a driver from HP, it's worth unpacking that and looking for the ppd file you need.

Installing a printer via cups is normally easy. Open your browser and go to localhost:631. You'll need a password to get into the admin section; probably your own password will do as for sudo, but in some distros, you need the root password. Try asking cups to autodetect the printer. If that doesn't work, you can opt to install it by hand.
 
1 members found this post helpful.
Old 01-04-2023, 07:27 PM   #8
Kamchatka
LQ Newbie
 
Registered: Oct 2022
Location: Missouri
Distribution: Linux Mint 2.0
Posts: 1

Rep: Reputation: 0
Thank you, Hazel!!!!

I hope you're still here. You solved in one post (the one saying (basically) "Don't download anything from HP for Linux"), the problem I've been working on for a day and a half.

I'm a Linux newbie and you've helped me make some progress!

Bless you,
Kamchatka
 
Old 01-04-2023, 09:43 PM   #9
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
With hplip installed you can use the command line to configure an HP printer with
Code:
hp-setup
The setup tool will walk you through the steps.

One thing you must do manually for a network connected (wifi or otherwise) printer is configure the printer for a static IP address so it does not get randomly reassigned by DHCP as sometimes happens.

Once you have that the setup tool walks you through the config and it just works for me.

There also is a gui tool that can be installed to aid in setup and printer management. It can be installed with
Code:
sudo apt install hplip-gui
then you will have a gui tool to do the management that takes several commands from the command line.

As a new user it is also helpful to know that once an HP printer is configured the print side will just work and hplip will be updated along with other software in the future. The drawback to keep in mind is that the plugin for the scanner on an MFP printer is proprietary and must match the hplip version. When hplip is updated it does not automatically update the scanner plugin.
The fix, if the scanner on your MFP HP printer does not work, is to run
Code:
hp-plugin
to update the plugin to match the hplip version and scanning will be able to resume once that completes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing HPLIP-GUI on HPLIP 3.17.11 Linux Mint 17.3 laptop anon298 Linux - Software 1 02-26-2018 08:22 PM
[SOLVED] Upgrade hplip-3.9.4b to hplip-3.9.12 (32-bit and 64-bit) tronayne Slackware 8 02-27-2011 11:12 PM
HPlip woes on --current ; Sharing printer gets broken if the hplip gui is launched Old_Fogie Slackware 2 10-28-2010 10:23 AM
Finding a repository for installing dependencies for HPLIP shea1roh Mandriva 8 12-11-2008 01:17 PM
slack 11.0 testing/hplip dependencies problem kite Slackware 10 10-08-2006 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration