"Software can't be installed or removed because the authentication service is not available. "
I have 12.10 ubuntu and when I try to remove / install programs I get notification :
Software can't be installed or removed because the authentication service is not available.
(org.freedesktop.PolicyKit.Error.Failed: ('system-bus-name', {'name': ':1.104'}): org.debian.apt.install-or-remove-packages
When I log in as root user (instead of user account that I regulary use) i have no problems.
Solution 1:
It seems like the policy kit authentication agent is not started in startup applications program.
Add the below line to startup applications.
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
Also note that this was already raised as a bug and fixed is provided in software-center - 5.3.9
Update your software center to fix the issue.
Here is the bug details
Solution 2:
I had the same problem. It turned out to be because PolicyKit Authentication Agent was unchecked in Startup Programs. I checked it, and the problem was fixed. Hopefully that will take care of it for you as well.
Solution 3:
I feel you can just reinstall the ubuntu software it will get fixed i hav tred it. just type down this command in your terminal it will re-install the software center
sudo apt-get update; sudo apt-get --purge --reinstall install software-center software-properties-common software-properties-gtk
Solution 4:
Sorry to be reviving this thread, but for those who still encounter this problem running the software center using gksudo
fixed it for me and gave the graphical software center the permissions needed.
Solution 5:
@Devav and @Zoids are right. There is a similar question on SO here: Authentication error when trying to install or uninstall using Ubuntu Software Center (14.04)
Adding the link, so that it will help others.
Apart from adding it to Startup items, you should even run the application, so that the application works for your current session. Hence run the application as
sudo /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1