Install HPLIP does not accept root password












1















I am running in my shell:



./hplip-3.18.7.run



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:



NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


This what the installer outputs at the beginning:



enter image description here










share|improve this question

























  • Ubuntu has no root password. Did you try sudo ./hplip-3.18.7.run ?

    – RoVo
    Aug 30 '18 at 12:27






  • 2





    The I get warning: hp-systray should not be run as root/superuser

    – saitam
    Aug 30 '18 at 12:28











  • Any reason to not use the version from the repo? sudo apt-get install hplip-gui. See this.

    – RoVo
    Aug 30 '18 at 12:29











  • How can I uninstall the one I have installed?

    – saitam
    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


















1















I am running in my shell:



./hplip-3.18.7.run



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:



NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


This what the installer outputs at the beginning:



enter image description here










share|improve this question

























  • Ubuntu has no root password. Did you try sudo ./hplip-3.18.7.run ?

    – RoVo
    Aug 30 '18 at 12:27






  • 2





    The I get warning: hp-systray should not be run as root/superuser

    – saitam
    Aug 30 '18 at 12:28











  • Any reason to not use the version from the repo? sudo apt-get install hplip-gui. See this.

    – RoVo
    Aug 30 '18 at 12:29











  • How can I uninstall the one I have installed?

    – saitam
    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
















1












1








1








I am running in my shell:



./hplip-3.18.7.run



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:



NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


This what the installer outputs at the beginning:



enter image description here










share|improve this question
















I am running in my shell:



./hplip-3.18.7.run



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:



NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


This what the installer outputs at the beginning:



enter image description here







drivers software-installation printing hp hplip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 30 '18 at 15:57







saitam

















asked Aug 30 '18 at 12:25









saitamsaitam

357216




357216













  • Ubuntu has no root password. Did you try sudo ./hplip-3.18.7.run ?

    – RoVo
    Aug 30 '18 at 12:27






  • 2





    The I get warning: hp-systray should not be run as root/superuser

    – saitam
    Aug 30 '18 at 12:28











  • Any reason to not use the version from the repo? sudo apt-get install hplip-gui. See this.

    – RoVo
    Aug 30 '18 at 12:29











  • How can I uninstall the one I have installed?

    – saitam
    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





















  • Ubuntu has no root password. Did you try sudo ./hplip-3.18.7.run ?

    – RoVo
    Aug 30 '18 at 12:27






  • 2





    The I get warning: hp-systray should not be run as root/superuser

    – saitam
    Aug 30 '18 at 12:28











  • Any reason to not use the version from the repo? sudo apt-get install hplip-gui. See this.

    – RoVo
    Aug 30 '18 at 12:29











  • How can I uninstall the one I have installed?

    – saitam
    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



















Ubuntu has no root password. Did you try sudo ./hplip-3.18.7.run ?

– RoVo
Aug 30 '18 at 12:27





Ubuntu has no root password. Did you try sudo ./hplip-3.18.7.run ?

– RoVo
Aug 30 '18 at 12:27




2




2





The I get warning: hp-systray should not be run as root/superuser

– saitam
Aug 30 '18 at 12:28





The I get warning: hp-systray should not be run as root/superuser

– saitam
Aug 30 '18 at 12:28













Any reason to not use the version from the repo? sudo apt-get install hplip-gui. See this.

– RoVo
Aug 30 '18 at 12:29





Any reason to not use the version from the repo? sudo apt-get install hplip-gui. See this.

– RoVo
Aug 30 '18 at 12:29













How can I uninstall the one I have installed?

– saitam
Aug 30 '18 at 12:29





How can I uninstall the one I have installed?

– saitam
Aug 30 '18 at 12:29




2




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







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












3 Answers
3






active

oldest

votes


















1














Analysis



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: ").



Conclusion



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.






share|improve this answer































    1














    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.






    share|improve this answer































      0














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



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



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






      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1070477%2finstall-hplip-does-not-accept-root-password%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        Analysis



        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: ").



        Conclusion



        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.






        share|improve this answer




























          1














          Analysis



          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: ").



          Conclusion



          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.






          share|improve this answer


























            1












            1








            1







            Analysis



            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: ").



            Conclusion



            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.






            share|improve this answer













            Analysis



            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: ").



            Conclusion



            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 30 '18 at 16:27









            N0rbertN0rbert

            23.2k649110




            23.2k649110

























                1














                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.






                share|improve this answer




























                  1














                  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.






                  share|improve this answer


























                    1












                    1








                    1







                    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.






                    share|improve this answer













                    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.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 23 '18 at 17:04









                    OndraOndra

                    111




                    111























                        0














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



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



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






                        share|improve this answer




























                          0














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



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



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






                          share|improve this answer


























                            0












                            0








                            0







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



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



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






                            share|improve this answer













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



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



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







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 28 at 16:57









                            Fouad DjebbarFouad Djebbar

                            134




                            134






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1070477%2finstall-hplip-does-not-accept-root-password%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                How to make a Squid Proxy server?

                                第一次世界大戦

                                Touch on Surface Book