Could not get authorization that is needed for continuing the installation.



  • I have created an installer for my project in Ubuntu 10.04 (MinGW compiler) using Qt Installer Framework .
    The installer works fine (/opt path) on my Ubuntu and Ubuntu 11.04 with sudo password or without sudo password directly by double click or using the terminal .
    But if i run the same installer in rhel 6.7 by double click i get an error

    Enter your password to authozize for sudo
    ok cancel.
    

    On clicking OK it pop ups the window

    Error acquring admin rights
    [Sudo] password for user 
    ok
    

    On clicking OK it pop ups one more window .

    could not get authorization.
    Could not get authorization that is needed for continuing the installation.
     Either abort the installation or use the fallback solution by running
    /home/user/Desktop/app--startserver PRODUCTION,{b08aff57-f30b-46f9-91bc-59443e6da1ae},{90cf60e8-8d5e-468c-95bf-ff5e5978c183}
    as root and then clicking OK.
    ok abort
    

    clicking OKhangs and pop ups the message error while elevating access rights ok-->finish
    clicking abort just closes all the error windows.

    If i run the same installer on rhel using terminal the installer installs without problem.
    I have seen the similar errror on Ubuntu 12.04 x86_64 . Is the same bug here ? For MInGW one more error has been reported . remoteclient_p.h code is here . Is there anything to be added on .pro file so that the executable does not ask for password ?



  • I've run into this same problem on Windows 7 while attempting to install to Program Files(x86) without permissions. But I don't think this is a QT bug.


  • Moderators

    As far as I know RHEL does not use sudo by default. What you should do instead is: log in as root calling "su" in the command line and then start the installer.



  • @jsulm
    In Ubuntu 10.04,11.04 using double click or from the terminal in all users and using root works fine for all paths.
    In rhel using terminal for all users and root user works fine for all path.
    Problem is only with users other than root using double click only for only /opt path. For other path it works fine .


  • Moderators

    @Ratzz Normal users are not allowed to write to /opt
    In general, normal users are only allowed to write in their home directory an /tmp
    So, you need to be root if you want to install in /opt.
    If you do call a command with sudo on Ubuntu then you become root during execution of that command, that's why it works with sudo on Ubuntu.
    On RHEL try to call su in a terminal and enter your root password and then call the install app from same terminal.



  • @jsulm said:

    On RHEL try to call su in a terminal and enter your root password and then call the install app from same terminal.

    It works on this case.


  • Moderators

    @Ratzz What's the problem then?



  • @jsulm
    Problem only when i try to install the installer on double click on /opt path only.



  • @Ratzz said:

    Problem only when i try to install the installer on double click on /opt path only.

    On linux this is not meant to be done this way... Install scripts are meant to be run from the terminal, using root privileges. Ubuntu tweaks the logic by allowing everyone to prepend a sudo to every possible command, but it by far not the standard way.


  • Moderators

    @Ratzz As I already sad before on UNIX/Linux a normal, non root, user is NOT allowed to write to /opt!



  • @jsulm
    but in ubuntu on double click of installer on /opt path it ask for root password and it installs with root password .
    But in rhel on double click of installer on /opt path it ask for root password and it installs with root password it gives error as show in original post.



  • @Ratzz said:

    but in ubuntu on double click of installer on /opt path it ask for root password and it installs with root password .

    As you were told Ubuntu's not linux. They've tweaked the usual behaviour to allow people to do things without thinking.


  • Moderators

    @Ratzz Is the user you are using member of the group "sudo"? You can check this by typing "groups" in a terminal. At least on Ubuntu a user must be member of "sudo" group to be able to use sudo command.



  • @jsulm said:

    You can check this by typing "groups" in a terminal.

    it gave me "root"


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.