Using CentOS Release 6.4 x86 when I go to System > Administration > Add/Remove Software and try to add software or refresh the package list, I immediately get the following error:
You have failed to provide correct authentication. Please check any passwords or account settings.
Failed to obtain authentication
However the reason I failed to provide authentication is because I was never asked for a password at all. I'm running as a normal user who is a member of the
wheel group and can run commands via
sudo. I also can
su to root. I am able to install software via
How can I fix the issue where Add/Remove Software never asks for a password?
UPDATE: The issue appears to be with PolicyKit. Specifically, I have no authentication agent running and trying to start it results in the error
Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess()
Some terminal output:
[jnet@dogYears Desktop]$ pkexec echo "test" Error executing command as another user: No authentication agent was found. [jnet@dogYears Desktop]$ ps awwwx|grep polkit 2059 ? S 0:00 /usr/libexec/polkit-1/polkitd 28688 pts/3 S+ 0:00 grep polkit [jnet@dogYears Desktop]$ /usr/libexec/polkit-gnome-authentication-agent-1 (polkit-gnome-authentication-agent-1:28725): polkit-gnome-1-WARNING **: Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '28725' org.freedesktop.ConsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for%20process%20%2728725%27