LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-02-2019, 01:24 PM   #1
Dan Suson
LQ Newbie
 
Registered: Aug 2007
Location: Valparaiso, IN
Distribution: Slackware
Posts: 27

Rep: Reputation: 1
HPLIP keeps looping at plug-in installation


I have upgraded to slackware64-current and am trying to get my hp printers working again. Slackware-current uses hplip-3.18.12 and I am trying to get my HP LaserJet Professional P1102w connected over the network. I used hplip to set up the printer using the USB cable successfully, getting to the message that I needed to run hp-setup with the local IP number. When I did that, the printer is properly discovered. Clicking next on the GUI takes me to a screen that says I need to install a driver plug-in.

I have done this step numerous times both as root and as a regular user. First I told the program to download and install the plug-in from an HP authorized server. After agreeing to the license agreement, I am prompted to enter the root password. I do so and get a message that the Plug-in installation was successful. Clicking ok brings up a new screen that says

The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins.
Please run 'hp-plugin' as normal user to install plug-ins.
Visit http://hplipopensource.com for more information.

This takes me back to the device discovery page where it begins the process over again.

I have also found the hplip-3.18.12-plugin.run plugin and downloaded it into a local directory. Selecting it on the driver plug-in page results in the same loop: accepting the license, having to sign in as root, plug-in installation successful, error screen, and back to the discovery page.

Ultimately, the printer never shows up in the HP device manager and isn't available for printing. How can I break this cycle and get the printer installed?
 
Old 02-02-2019, 11:40 PM   #2
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 251

Rep: Reputation: Disabled
You say you are using a USB cable. So are you setting it up as a local printer or as a network printer? If you are setting it up strictly as a local printer you shouldn't need an IP address for it. If setting it up as a network printer I'm guessing you are picking the wrong option at some point. They really are poorly worded and it is easy to do.

First, are you or did you try to use the HPLIP provided by your distro. Experience says those can cause problems. Check CUPS (localhost:631) and make sure your printer is not there in any form. If it is, then delete it. Then purge (not just remove) your distro's version of HPLIP. Download HP's version - download fresh even if you downloaded it before. Unpack it, change the run file to executable if necessary. Be sure you printer is not connected to your computer. I am assuming your printer can work over wireless. Set it up according to its instructions. Now, run the HPLIP run file. To be on the safe side tell it to load all the dependencies, required and optional. At the end, do NOT connect by USB but tell the setup it is a wireless network (not connected by USB in any way). Note there are two network options but one requires a USB connection. That is NOT the one to select. It should find it. If it doesn't, get the ip from your printer in its network setup page and tell the HP setup to find that IP. It should and you should have no more problem.
 
Old 02-03-2019, 08:15 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,462
Blog Entries: 25

Rep: Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450Reputation: 4450
If you want to set this up as a network printer, than using a USB cable is red herring.

I would recommend strongly giving the printer a static ip address--it makes life with a network printer a lot easier. You should be able to do this through the printer settings menu.

Then you can install it to your computer using the HPLIP GUI (hp-toolbox) as user if the GUI is installed or, as root, you can install it from the command line with this command:

Code:
hp-setup - i [printer IP address]
hp-setup will ask you a series and questions and conclude by asking whether you want to print a test page.

If using the GUI tool, when you get to the Device Discovery dialog, click "Advanced Settings" to specify the printer ip address.

Last edited by frankbell; 02-03-2019 at 08:17 PM.
 
Old 02-06-2019, 09:06 AM   #4
zaskar_84
LQ Newbie
 
Registered: Aug 2018
Location: Argentina
Distribution: Slackware64-current
Posts: 8

Rep: Reputation: Disabled
I've been having the same problem since some update last december, and today I found a workaround. If you run the hp tools with "-g" they print some extra debug info in the terminal... There you can see that some dependencies are not being properly loaded. I see messages like:

hp-setup[31158]: debug: Either /usr/lib/i386-linux-gnu/sane/libsane-hp2000S1.so file is not present or symbolic link is missing
hp-setup[31158]: debug: /usr/lib/i386-linux-gnu/sane/libsane-hp2000S1.so library status: 0

These files are in /usr/lib/sane and /use/lib64/sane in slackware (I think Ubuntu and similar distros use i386-linux-gnu and x86_64-linux-gnu instead of lib and lib64). So I created a few symllinks in order to make hp* find those libs and it started working... I first created the dirs:

/usr/lib/i386-linux-gnu
/usr/lib64/x86_64-linux-gnu

then, made the symlinks:

/usr/lib/i386-linux-gnu/sane -> /usr/lib/sane
/usr/lib/x86_64-linux-gnu -> /usr/lib64/x86_64-linux-gnu
/usr/lib64/x86_64-linux-gnu/sane -> /usr/lib64/sane

and that made hp stop asking for the plugin installation over and over again

Last edited by zaskar_84; 02-06-2019 at 09:45 AM.
 
Old 06-11-2019, 10:53 PM   #5
siliconepony
LQ Newbie
 
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
HPLIP keeps looping at plug-in installation - FIXED

Only replying as the fix zaskar_84 supplied worked like a charm. I'm surprised the fix is the re-pointing directories to files that are already there!

For those of you who are trying to reinstall the plugin, download directly from the plugins link, do try zaskar_84's fix below.

It works!
 
Old 10-11-2019, 05:25 AM   #6
Valent
LQ Newbie
 
Registered: May 2004
Posts: 11

Rep: Reputation: 0
Thanks @zaskar_84

Same issue on Fedora, after creating same symlinks hp-setup finally installed the printer with scanner and fax functions... finally!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 FenderGuy 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
hplip 1.7.3 install keeps giving error message - unable to connect to hpoid? jerrynewt Linux - Laptop and Netbook 1 04-07-2007 11:33 PM
Plug-ins, Plug-ins, Plug-ins, those damn Plug-ins!! GRRRR!! Ausar Linux - Newbie 1 06-09-2004 03:10 PM

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

All times are GMT -5. The time now is 09:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration