I am running in my shell:


Then it wants me to enter the root password, but does not accepting it!

enter image description here

Anybody know what this is?

If I run the script with sudo sudo ./hplip-3.18.7.run , then it tells me at some step in the installation process: warning: hp-systray should not be run as root/superuser.

I am using Ubuntu 18.04:

VERSION="18.04.1 LTS (Bionic Beaver)"
PRETTY_NAME="Ubuntu 18.04.1 LTS"

This what the installer outputs at the beginning:

enter image description here

  • Ubuntu has no root password. Did you try sudo ./hplip-3.18.7.run ? – pLumo Aug 30 '18 at 12:27
  • 2
    The I get warning: hp-systray should not be run as root/superuser – sunwarri0r Aug 30 '18 at 12:28
  • 1
    Any reason to not use the version from the repo? sudo apt-get install hplip-gui. See this. – pLumo Aug 30 '18 at 12:29
  • How can I uninstall the one I have installed? – sunwarri0r Aug 30 '18 at 12:29
  • 2
    Possible duplicate of How to install latest HPLIP on my Ubuntu to support my HP printer and/or scanner? Also please make sure that you really need binary version from HP site. It is very likely that your printer is supported in hplip- packages from repository. – N0rbert Aug 30 '18 at 13:17


From hplip source-code we can learn the following about auth. Auth is performed in base/password.py file.

The main AUTH_TYPES are for:

  • Debian - su
  • Ubuntu - sudo

During chat session and in comments we have discovered interesting moments:

  • the first check is made python platform module. On Ubuntu it should return "Ubuntu".

  • second distro check - lsb_release -i | cut -f 2 returns "Ubuntu"

  • third distro check - cat /etc/issue | awk '{print $1}' | head -n returns "Ubuntu".

But OP has installed Anaconda in home folder, and added this directory to the path. And what is interesting - in such case python -c "import platform;print platform.dist()[0]" returns "Debian" (!!!) on distro check. So installer tried to use su. But root account is disabled on Ubuntu by default, so problem arises ("Please enter the root/superuser password:" instead of "Please enter the sudoer (%s)'s password: ").


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. And you can follow my instruction then.

  • If your issue is with Anaconda, as @n0rbert suggested, you can just temporarily turn conda off with 'conda deactivate' – Paparazio Mar 9 at 3:16

I had the same issue. I am from the Czech Republic and my password contained some special characters which are not available in the English alphabet (ě, š). What fixed the issue was to temporarily change the password so that it does not contain these characters. After that, the password was finally accepted and the rest of the installation finished without any other issues.


I solved this issue differently As an Ubuntu user (no root password)

me@mycomputer:~$ sudo -s
[sudo] password for me:

After this, the installer didn't ask me for any password.

  • 1
    The installer tells me "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?". Did you get the same? – Silicomancer Jun 24 '20 at 14:38
  • no, because I tried to do it as a sudo user and not a root user. unix.stackexchange.com/questions/291454/… – Fouad Djebbar Jun 25 '20 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.