LMDE upgrade to LMD2 broke polkit?

Archived topics about LMDE 1
Forum rules
Locked
ddurdle
Level 3
Level 3
Posts: 131
Joined: Sat Dec 17, 2011 10:03 am

LMDE upgrade to LMD2 broke polkit?

Post by ddurdle » Mon Aug 31, 2015 1:30 pm

I upgraded successfully on two machines, but on this system, polkit seems broken as mounting devices from caja yield not authorized errors, I can't run synaptic, gparted, or any program that normally prompts for a sudo password.

I never migrated to systemd prior to the upgrade, which I confirmed. I can see dbus running:

Code: Select all

message+  4712     1  0 12:46 ?        00:00:00 /usr/bin/dbus-daemon --system
durdle    7074  6977  0 12:46 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session mate-session
durdle    7079     1  0 12:46 ?        00:00:00 /usr/bin/dbus-launch --exit-with-session mate-session
durdle    7085     1  0 12:46 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 6 --print-address 9 --session
durdle    7261  7229  0 12:46 ?        00:00:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
durdle    9426     1  0 12:52 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
 
I tried reinstalling polkit, but it didn't make a difference.

ddurdle
Level 3
Level 3
Posts: 131
Joined: Sat Dec 17, 2011 10:03 am

Re: LMDE upgrade to LMD2 broke polkit?

Post by ddurdle » Mon Aug 31, 2015 2:23 pm

If I run it from command line, I see that it prompts for a password. It should be prompting through dbus notifications. Any idea why it isn't?

durdle@t420-ssd [] /downloads $ gparted-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.gparted ===
Authentication is required to run the GParted Partition Editor
Authenticating as: durdle
Password:


This holds true for all programs that were prompting prior to the upgrade.

ddurdle
Level 3
Level 3
Posts: 131
Joined: Sat Dec 17, 2011 10:03 am

Re: LMDE upgrade to LMD2 broke polkit?

Post by ddurdle » Wed Oct 07, 2015 1:10 pm

looks like this problem is related to LXC which I had installed prior to the upgrade, and which broke the system afterwards (at least for authorizing gui apps to have privileged access). Makes even switching wifi access points impossible (unless you run nm-applet under sudo or root).

I realized the link to LXC after installing LXC (apt-get install lxc) on a system already on LMDE2 that was working perfectly. After reboot, the system suffered the same issue. Remove LXC and system works. Likewise, on the first system, where I upgraded to LMDE2 having LXC already setup, removing LXC resolved the issues there was well.

Locked

Return to “Archive”