[SOLVED] hplip doesn't accept my user password

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
drqxr

[SOLVED] hplip doesn't accept my user password

Post by drqxr »

Downloaded hplip 3.18.10
Made it executable
Run it:

Code: Select all

sh hplip-3.18.10.run
Then selected:

Code: Select all

Please choose the installation mode (a=automatic*, c=custom, q=quit) : a
Is "Linux Mint 19" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y
Got stuck at:

Code: Select all

ENTER USER PASSWORD
-------------------
Please enter the sudoer (drqxr)'s password: 
error: Password incorrect. 2 attempt(s) left.
It is definitely my password, no I am not making mistakes when typing it, and no my caps lock is not enabled.
My password has special signs, so I've tried changing it to a simple one - still getting the same error.

Found similar issue on Ubuntu forums:
https://askubuntu.com/questions/1070477 ... rd#1070563
One user has suggested:
Always check your $PATH variable for Python versions.
Many software in Ubuntu depend on Python. APT does not know about Anaconda, so system may have unpredictable behaviour with third-party pythons and pips. I can recommend to exclude third-party pythons from $PATH variable. Then binary hplip installer should work normally.
I don't understand the above, can someone comment on that please or suggest different solution to the password issue?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WharfRat

Re: hplip doesn't accept my user password

Post by WharfRat »

Can you paste back echo $PATH and ls -lh /usr/bin/python*
drqxr

Re: hplip doesn't accept my user password

Post by drqxr »

WharfRat wrote: Mon Nov 26, 2018 9:55 am Can you paste back echo $PATH and ls -lh /usr/bin/python*

Code: Select all

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

Code: Select all

ls -lh /usr/bin/python*
lrwxrwxrwx 1 root root    9 Oct  7 18:23 /usr/bin/python -> python2.7*
lrwxrwxrwx 1 root root    9 Oct  7 18:23 /usr/bin/python2 -> python2.7*
-rwxr-xr-x 1 root root 3.6M Nov 12 14:31 /usr/bin/python2.7*
lrwxrwxrwx 1 root root   33 Nov 12 14:31 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config*
lrwxrwxrwx 1 root root   16 Apr 16  2018 /usr/bin/python2-config -> python2.7-config*
lrwxrwxrwx 1 root root    9 Oct 25 12:11 /usr/bin/python3 -> python3.6*
-rwxr-xr-x 2 root root 4.4M Oct 22 12:32 /usr/bin/python3.6*
-rwxr-xr-x 2 root root 4.4M Oct 22 12:32 /usr/bin/python3.6m*
lrwxrwxrwx 1 root root   10 Oct 25 12:11 /usr/bin/python3m -> python3.6m*
lrwxrwxrwx 1 root root   16 Apr 16  2018 /usr/bin/python-config -> python2.7-config*
WharfRat

Re: hplip doesn't accept my user password

Post by WharfRat »

I'm running 18.3 Sylvia so I'm not sure if the difference of my results is normal or not compared to yours :?

What happens if you enter sudo -i to root the shell then maneuver to the folder with the .run file and enter ./sh hplip-3.18.10.run
drqxr

Re: hplip doesn't accept my user password

Post by drqxr »

WharfRat wrote: Mon Nov 26, 2018 11:32 am I'm running 18.3 Sylvia so I'm not sure if the difference of my results is normal or not compared to yours :?

What happens if you enter sudo -i to root the shell then maneuver to the folder with the .run file and enter ./sh hplip-3.18.10.run
Tried it before:

Code: Select all

error: 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?
Continue with installation (y=yes, n=no*, q=quit) ? 
WharfRat

Re: hplip doesn't accept my user password

Post by WharfRat »

What happens if you try to run it as you - does it then ask for your user sudoer password :?
drqxr

Re: hplip doesn't accept my user password

Post by drqxr »

WharfRat wrote: Mon Nov 26, 2018 1:46 pm What happens if you try to run it as you - does it then ask for your user sudoer password :?
Yes, then it will not accept my password which is bizarre.
WharfRat

Re: hplip doesn't accept my user password

Post by WharfRat »

drqxr wrote: Mon Nov 26, 2018 2:00 pm
WharfRat wrote: Mon Nov 26, 2018 1:46 pm What happens if you try to run it as you - does it then ask for your user sudoer password :?
Yes, then it will not accept my password which is bizarre.
Yes that is bizarre :?

I used to dl AMD graphics drivers and always use sudo on the .run file.

As I said previously my results differ from yours, but I don't know if that's a problem since I'm on 18.3

Just as an fyi

Code: Select all

[bill@XPS] ~ $ ls -lh /usr/bin/python*
lrwxrwxrwx 1 root root    9 2017-11-23 19:52:21 /usr/bin/python -> python2.7*
lrwxrwxrwx 1 root root    9 2017-11-23 19:52:21 /usr/bin/python2 -> python2.7*
-rwxr-xr-x 1 root root 3.4M 2018-11-12 14:46:02 /usr/bin/python2.7*
lrwxrwxrwx 1 root root    9 2016-09-27 19:06:53 /usr/bin/python3 -> python3.5*
-rwxr-xr-x 2 root root 4.3M 2018-11-12 11:27:15 /usr/bin/python3.5*
-rwxr-xr-x 2 root root 4.3M 2018-11-12 11:27:15 /usr/bin/python3.5m*
lrwxrwxrwx 1 root root   10 2016-09-27 19:06:53 /usr/bin/python3m -> python3.5m*
[bill@XPS] ~ $ echo $PATH
/home/bill/script:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
[bill@XPS] ~ $ 
Did you install any additional python stuff :?:
User avatar
externa1
Level 2
Level 2
Posts: 51
Joined: Fri Mar 23, 2018 11:45 am

Re: hplip doesn't accept my user password

Post by externa1 »

Hi,

I had the same problem on all LM19 installs - my workaround was to give the root user a password (same as mine) by:

sudo passwd root

then the hplip install works

rg
Christian
drqxr

Re: hplip doesn't accept my user password

Post by drqxr »

WharfRat wrote: Mon Nov 26, 2018 1:46 pm Did you install any additional python stuff :?:
Don't remember, quite possible.

externa1 wrote: Mon Nov 26, 2018 3:02 pm Hi,

I had the same problem on all LM19 installs - my workaround was to give the root user a password (same as mine) by:

sudo passwd root

then the hplip install works

rg
Christian
Tried that earlier, also did not helped.
WharfRat

Re: hplip doesn't accept my user password

Post by WharfRat »

drqxr wrote: Mon Nov 26, 2018 1:33 pm
WharfRat wrote: Mon Nov 26, 2018 11:32 am I'm running 18.3 Sylvia so I'm not sure if the difference of my results is normal or not compared to yours :?

What happens if you enter sudo -i to root the shell then maneuver to the folder with the .run file and enter ./sh hplip-3.18.10.run
Tried it before:

Code: Select all

error: 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?
Continue with installation (y=yes, n=no*, q=quit) ? 
When you got that error/warning, what did you answer :?:
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: hplip doesn't accept my user password

Post by MrEen »

I'm wondering if the python3-hplip issue that seems to making the rounds issue is causing this.

Possible solution:

Code: Select all

apt install --reinstall hplip hplip-data
followed by

Code: Select all

apt install --reinstall python3
drqxr

Re: hplip doesn't accept my user password

Post by drqxr »

WharfRat wrote: Mon Nov 26, 2018 6:38 pm
drqxr wrote: Mon Nov 26, 2018 1:33 pm
WharfRat wrote: Mon Nov 26, 2018 11:32 am I'm running 18.3 Sylvia so I'm not sure if the difference of my results is normal or not compared to yours :?

What happens if you enter sudo -i to root the shell then maneuver to the folder with the .run file and enter ./sh hplip-3.18.10.run
Tried it before:

Code: Select all

error: 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?
Continue with installation (y=yes, n=no*, q=quit) ? 
When you got that error/warning, what did you answer :?:
Haven't tried it until now. I remember I had problems doing so on earlier Mint installs.

So this time I decided to continue the installation as root, answered yes to all questions, let the installer check for updates, agreed to policy etc.
Got couple of warnings during it:

Code: Select all

warning: hplip-install should not be run as root
warning: It is not recommended to run 'hp-plugin' in a root mode
warning: hp-systray should not be run as root/superuser.
At the end of the install it found the USB printer, and added it to printers, then it crashed with error:

Code: Select all

error: hp-systray cannot be run as root. Exiting.
As a result of that I do not have the typical hplip piece of software installed (the one with blue HP icon).
Tested the printer and it is not working.
drqxr

Re: hplip doesn't accept my user password

Post by drqxr »

MrEen wrote: Mon Nov 26, 2018 7:00 pm I'm wondering if the python3-hplip issue that seems to making the rounds issue is causing this.

Possible solution:

Code: Select all

apt install --reinstall hplip hplip-data
followed by

Code: Select all

apt install --reinstall python3
Wow! Appears to be working after doing so.
worth to note: the first command asked me what to do with

Code: Select all

/etc/hp/hplip.conf
so I went for the suggested "keep your currently-installed version"
Last edited by drqxr on Mon Nov 26, 2018 7:13 pm, edited 1 time in total.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: hplip doesn't accept my user password

Post by MrEen »

I guess that's a yes. :D
drqxr

Re: hplip doesn't accept my user password

Post by drqxr »

Thanks for suggestions everyone :!: :D
Bit strange issue anyway.
Locked

Return to “Printers & Scanners”