I'm using Ubuntu 10.10. The software center was asking me for password when I wanted to install/remove any application. Since last week, it doesn't prompt for password. Also, I have the same problem with update-manager. However, Synaptic and sudo apt-get ask for password.
How to fix this?

this is link to the files that you guys need to know

sudoers file



sudo grep -IR '^[^#]' /var/lib/polkit-1

grep '^[^#]' /etc/apt/apt.conf.d/20dbus /etc/dbus-1/system.d/org.debian.apt.conf /usr/share/dbus-1/system-services/org.debian.apt.service

  • What is the output of your /etc/sudoers file? – user6658 Jan 21 '11 at 20:05
  • 1
    That's unreadable without the newlines, and it seem to be missing the last part. Could you put that in your question instead? Also, keep in mind that once you type in the password once, it'll "remember" it for about 15 minutes. – geirha Jan 21 '11 at 21:52
  • The difference between update-manager/software center and synaptic/apt-get is the policykit integration in the former pair -- the issue may lie there – jasonbrooks Jan 21 '11 at 23:45
  • @geirha I know it will remember the password for 15 minutes but the last time i put the password was last week! – aziz joh Jan 22 '11 at 4:06
  • @jasonbrooks how I can check it if the issues there or not? what I have to do? – aziz joh Jan 22 '11 at 4:07

As already said, the problem may be your PolicyKit configuration. I would be interested in the contents of the files in /etc/polkit-1 directory and the file /usr/share/polkit-1/actions/org.debian.apt.policy. The output can be lengthy, so you may want to compress it and upload it somewhere rather than copy it here...

grep -IR '^[^#]' /etc/polkit-1

cat /usr/share/polkit-1/actions/org.debian.apt.policy

EDIT: After you've uploaded the files I can see that the problem is in your /var/lib/polkit-1/localauthority/50-local.d/20-xbmclive.pkla file which seems to have been installed by XBMC and effectively turns off all authentication via polkit (why it has done so and if it is really needed I don't know, I don't use this software).

[XBMC-Live user permissions]
| improve this answer | |
  • I upload it as a GoogleDoc see the link Up at the end of the question thanks – aziz joh Jan 22 '11 at 20:49
  • 1
    I don't see in the output any reason why it should not work... Could you also post sudo grep -IR '^[^#]' /var/lib/polkit-1 and grep '^[^#]' /etc/apt/apt.conf.d/20dbus /etc/dbus-1/system.d/org.debian.apt.conf /usr/share/dbus-1/system-services/org.debian.apt.service? – arrange Jan 22 '11 at 22:44
  • I add it to the question – aziz joh Jan 22 '11 at 23:09
  • see my edit in the original answer – arrange Jan 22 '11 at 23:23
  • 1
    I comment all the lines in the file that you said to me. XBMC still work and the software center prompting for password thanks – aziz joh Jan 23 '11 at 0:51

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.