Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

hplip-3.22.6.run Not working

Need help with peripherals or devices?
Message
Author
ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

hplip-3.22.6.run Not working

#1 Post by ferulebezel »

At first I though all I needed was system-config-printer and the old ppd to get my HP LaserJet Professional 1102W to work. It wasn't so I downloaded hplip-3.22.6.run and ran it. It wouldn't let me run it as an ordinary user so I sudoer it and it warned me that it wasn't a good idea to do so with this message:

Code: Select all

-error: You are running the installer as root. It is highly recommended that you run the installer as
error: a regular (non-root) user. Do you still wish to continue?
Continue with installation (y=yes, n=no*, q=quit) ?
I said yes since it wouldn't let me run it as a non sudoer.

Code: Select all

Do you want to setup printer in GUI mode? (u=GUI mode*, i=Interactive mode) : 
I choose the default (GUI) and it finds nothing and I cancell it

and there is this message:

Code: Select all

error: No devices found on bus: usb
I'm later confronted with:

Code: Select all

RE-STARTING HP_SYSTRAY
----------------------
warning: hp-systray should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.22.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: hp-systray cannot be run as root. Exiting.
yet the printer was created. It just doesn't work.

I try to print a test page. It fails with the status message: Printer HP-LaserJet-Professional-P1102w-2':hplip.plugin'.

With Debian 10, every time I logged in I was confronted with a message that I needed to install a printer plugin, I would approve of it, it would fail, I would cancel and printing would work fine.

What did I do wrong? and how do I fix it?

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: hplip-3.22.6.run Not working

#2 Post by arochester »

Code: Select all

You are running the installer as root. It is highly recommended that you run the installer as
a regular (non-root) user. Do you still wish to continue? 
Why did you say Yes and not No?

Why did you not choose to run as a regular l (non-root) user?

ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

Re: hplip-3.22.6.run Not working

#3 Post by ferulebezel »

I tried. It asks for the sudoer password and rejects it when entered.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#4 Post by FreewheelinFrank »

You're doing it wrong.

Why are you persistently trying to install software by downloading packages?
Installing software

The recommended way to install new software on Debian, is to use Package Management tools to install packages from the official repositories. These repositories should contain most of the software you will want to install, allowing you not to rely on external sources.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#5 Post by FreewheelinFrank »

This printer is supported by the version of HPLIP in *any* current Debian release. You do not need to download the latest version. You will need to install a plug-in.
Support Information:
Item Description
Minimum HPLIP version 3.10.4
Support level Full (See note11.)
Recommended? Yes (See note15.)

Driver Plugin Information:

This printer REQUIRES a downloadable driver plug-in. Use hp-setup to install the printer, and to download and install the plug-in. In general, required driver plugins are required for printing support. Driver plug-ins are released under a proprietary (non-open) license and are not part of the HPLIP tarball release.
https://developers.hp.com/hp-laserjet-p ... 2w-printer

Please take a step back and learn how to use Debian before you continue.

ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

Re: hplip-3.22.6.run Not working

#6 Post by ferulebezel »

hp-setup doesn't work. It's the one launched by hplip.###.run.

The error in the graphical interface is:

Code: Select all

No devices found
and in the terminal window:

Code: Select all

error: No devices found on bus: usb
even though

lsusb outputs the line:

Code: Select all

Bus 002 Device 038: ID 03f0:032a HP, Inc HP LaserJet Professional P1102w

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: hplip-3.22.6.run Not working

#7 Post by stevepusser »

FORGET THE .RUN FILE AND FOLLOW THE ADVICE OF THE PEOPLE TRYING TO HELP YOU.

Code: Select all

su -
<root password, since you didn't enable sudo, but you can do that if you want>

Code: Select all

apt update
apt install hplip
MX Linux packager and developer

ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

Re: hplip-3.22.6.run Not working

#8 Post by ferulebezel »

Done, now what?

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#9 Post by FreewheelinFrank »

Run

Code: Select all

# hp-setup
and post the output.

ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

Re: hplip-3.22.6.run Not working

#10 Post by ferulebezel »

As the sudoer or a regular user. I don't need people having conniptions because I didn't follow instructions not specified.

User avatar
roseway
Posts: 1528
Joined: 2007-12-31 22:50
Location: Kent, UK
Has thanked: 3 times
Been thanked: 4 times

Re: hplip-3.22.6.run Not working

#11 Post by roseway »

The '#' before that command indicates that it should be run with root privilege. That means you should either use it with 'sudo' (if you have enabled sudo):

Code: Select all

sudo hp-setup
or become root before typing the command (if you have obtained a root password):

Code: Select all

su -
(enter root password when asked)
hp-setup
Eric

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#12 Post by FreewheelinFrank »

ferulebezel wrote: 2022-07-26 02:48 As the sudoer or a regular user. I don't need people having conniptions because I didn't follow instructions not specified.
See post #7.

Edit: to be clear, you haven't enabled sudo, as stevepusser pointed out, so you need to become root (and get the # root prompt), as roseway kindly explained.

ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

Re: hplip-3.22.6.run Not working

#13 Post by ferulebezel »

That's not the case. I certainly have enabled sudo and don't have a root account or password assigned. I've been doing everything that calls for root permissions as said sudoer.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#14 Post by FreewheelinFrank »

Run

Code: Select all

sudo hp-setup
and post the output.

ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

Re: hplip-3.22.6.run Not working

#15 Post by ferulebezel »

Code: Select all

HP Linux Imaging and Printing System (ver. 3.22.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=usb, search=(None), desc=0)
 
HP Linux Imaging and Printing System (ver. 3.22.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: It is not recommended to run 'hp-plugin' in a root mode.

HP Linux Imaging and Printing System (ver. 3.22.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.22.6 |
-----------------------------------------

  Option      Description                                       
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recommended)            
  p           Specify a path to the plug-in (advanced)          
  q           Quit hp-plugin (skip installation)                

Enter option (d=download*, p=specify path, q=quit) ? 

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from: 
Downloading plug-in: [\                                   ] 0% Receiving digital keys: /usr/bin/gpg --homedir /root/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
 

----------------------
| INSTALLING PLUG-IN |
----------------------

Creating directory plugin_tmp
Verifying archive integrity...  100%   All good.
Uncompressing HPLIP 3.22.6 Plugin Self Extracting Archive  100%  
/root/.hplip/hplip-3.22.6-plugin.run: 1: eval: ./hplip-plugin-install: Permission denied
error: Python gobject/dbus may be not installed
 
Done.
error:  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 infomation. 

HP Linux Imaging and Printing System (ver. 3.22.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: It is not recommended to run 'hp-plugin' in a root mode.

HP Linux Imaging and Printing System (ver. 3.22.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.22.6 |
-----------------------------------------

  Option      Description                                       
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recommended)            
  p           Specify a path to the plug-in (advanced)          
  q           Quit hp-plugin (skip installation)                

Enter option (d=download*, p=specify path, q=quit) ? 

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from: 
Downloading plug-in: [\                                   ] 0% Receiving digital keys: /usr/bin/gpg --homedir /root/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
 
error: Unable to recieve key from keyserver
Do you still want to install the plug-in? (y=yes, n=no*, q=quit) ? 
After the second failed attempt I hit quit. The URL in the error message is where I got the .run file which is just the latest version of hplip.

Does anybody know where I can simply get the plugin, what directory in which to put it, who should own it, what permissions it should have, and any changes to any configurations files that need to be made. It seems to be it would be a lot easier.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#16 Post by FreewheelinFrank »

Looks like you still have the HP version of Hplip installed. What is the output of

Code: Select all

$ apt policy hplip
?

($ means normal user.)

ferulebezel
Posts: 25
Joined: 2022-04-25 23:21

Re: hplip-3.22.6.run Not working

#17 Post by ferulebezel »

Code: Select all

hplip:
  Installed: 3.21.2+dfsg1-2
  Candidate: 3.21.2+dfsg1-2
  Version table:
 *** 3.21.2+dfsg1-2 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        100 /var/lib/dpkg/status

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#18 Post by FreewheelinFrank »

Sorry, my bad. Apt won't show packages added by an installer, I think. Try

Code: Select all

$ dpkg -l 'hplip'
and post output.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: hplip-3.22.6.run Not working

#19 Post by dilberts_left_nut »

You probably need to uninstall it using the .run file.
Then I'd re-install the Debian version in case it had overlapping files.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: hplip-3.22.6.run Not working

#20 Post by FreewheelinFrank »

dilberts_left_nut wrote: 2022-07-29 06:50 You probably need to uninstall it using the .run file.
Then I'd re-install the Debian version in case it had overlapping files.
And therin lies the rub.

The HP web site only seems to have instructions for uninstalling if you used the tarball to install.

https://developers.hp.com/hp-linux-imag ... owtocheck7

By downloading the run file, I found it creates a directory

Code: Select all

~/Downloads/hplip-3.22.6
(Assuming the .run file was downloaded to ~/Downloads.)

The folder contains a script

Code: Select all

uninstall.py
To run that script this command is necessary

Code: Select all

# python3 ./uninstall.py
followed by

Code: Select all

# rm -rf /usr/share/hplip/
https://unix.stackexchange.com/question ... stal-hplip

OP does not have root enabled so will have to do

Code: Select all

cd /home/username/Downloads/hplip-3.22.6

Code: Select all

sudo python3 ./uninstall.py

Code: Select all

sudo rm -rf /usr/share/hplip/
then

Code: Select all

sudo apt reinstall hplip
The issue OP is having with Hplip seems to be a result of the Hplip utilities being set up to use the root password and not being able to accept sudo. For example hp-setup asks to be started as a normal user and then asks for the root password; starting it with sudo won't work. OP will need to modify a config file to allow sudo authorisation.

Post Reply