Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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
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.
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.
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.
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.
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.