Bug 535431

Summary: kupdateapplet fails to start online update
Product: [openSUSE] openSUSE 11.2 Reporter: Stephan Binner <binner>
Component: YaST2Assignee: Thomas Göttlicher <tgoettlicher>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Blocker    
Priority: P1 - Urgent CC: coolo, dmacvicar, dmueller, fs, graham.anderson, lnussel, matti.kukkola, meissner, sreeves, tgoettlicher, wstephenson
Version: FactoryFlags: coolo: SHIP_STOPPER+
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stephan Binner 2009-08-29 07:49:42 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-3.1 Firefox/3.5.2

Build 0249, kupdateapplet notifies about available package management test update. Trying to start update fails with "User is not permitted: org.freedesktop.packagekit.system-update"

Reproducible: Always
Comment 1 Stephan Binner 2009-09-02 04:44:40 UTC
*** Bug 535948 has been marked as a duplicate of this bug. ***
Comment 2 Thomas Göttlicher 2009-09-08 14:45:46 UTC
kupdateapplet uses PolicyKit to figure out whether the user is permitted to install updates. kupdateapplet's code has not changed for months. I guess the problem is somewhere in the PolicyKit mechanism. Is PolicyKit-kde installed?
Comment 3 Stephan Binner 2009-09-08 16:00:14 UTC
Yes.And it's running.
Comment 4 Thomas Göttlicher 2009-09-10 14:50:15 UTC
It seems to be a generic packagekit/policykit bug. See: #538087
Comment 5 Stephan Binner 2009-09-11 10:31:35 UTC
Another error message I (now?) get on Factory: "DBus error : org.freedesktop.DBus.Error.UnknownMethod : Method "UpdatePackages" with signature "as" on interface "org.freedesktop.PackageKit.Transaction" doesn't exist "
Comment 6 Thomas Göttlicher 2009-09-11 10:53:10 UTC
Scott, has the PackageKit api changed?
Comment 7 Scott Reeves 2009-09-11 17:58:35 UTC
*** Bug 538087 has been marked as a duplicate of this bug. ***
Comment 8 Scott Reeves 2009-09-11 18:07:31 UTC
(In reply to comment #6)
> Scott, has the PackageKit api changed?

PackageKit has changed to use the new polkit instead of PolicyKit for
authentication. Is polkitd running.

Not sure if this is the same issue but we had a similar issue in the past with
nothing providing an authentication agent on KDE. Is there a counterpart to polkit-gnome available (similar to the old PolicyKit-gnome / PolicyKit-kde) ?

Note: I see upstream commits in lib/packagekit-qt (on 8/13 and 8/14) dealing with this change...
Comment 10 Lubos Lunak 2009-09-14 08:25:21 UTC
This is wonderful :((( . One thing we need to talk about at the openSUSE conference is how to not push in random unstable stuff without telling others.
Comment 11 Stephan Kulow 2009-09-14 12:22:26 UTC
Scott, when was PackageKit changed? The PackageKit.changes only talks about PolicyKit and not about polkit.
Comment 12 Marcus Meissner 2009-09-14 12:23:32 UTC
i think it was policykit that was changed.
Comment 14 Stephan Kulow 2009-09-14 12:40:19 UTC
I don't want new version of PackageKit, so we need to fix this.
Comment 15 Stephan Kulow 2009-09-14 12:54:34 UTC
@#12 - Policykit only saw the fix for bnc#509108 since 11.1 release, so I have my doubts.
Comment 16 Lubos Lunak 2009-09-14 13:07:06 UTC
I can see 'Port to polkit1' in 'rpm -q --changelog PackageKit' on 11.2. And the newer version of PolicyKit is indeed called polkit (gee).

Since 11.2 ships both PolicyKit and polkit, would it be possible to go back to the PackageKit version that uses the released version (i.e. PolicyKit) and keep the polkit version only somewhere for GNOME? That would keep both KUpdateApplet and PolicyKit-kde working (assuming there are not any important changes that would warrant porting of both to the newer version).
Comment 17 Thomas Göttlicher 2009-09-17 15:44:52 UTC
Do you think using an older version of PolicyKit and Packagekit might fix these incompatibilities?
Comment 18 Duncan Mac-Vicar 2009-09-18 11:34:10 UTC
PolicyKit 0.5.x is only compatible with polkit1. Is there a chance we switch to polkit1?
Comment 19 Duncan Mac-Vicar 2009-09-18 11:42:45 UTC
Well, we use 0.94 which seems to be the polkit1 API anyways.
Comment 20 Duncan Mac-Vicar 2009-09-18 14:20:53 UTC
Comment #4 is because the applet was not synced with PackageKit 0.5.x API. I have fixed this in my local git. After doing that I was able to install patches successfully.
Comment 21 Duncan Mac-Vicar 2009-09-18 21:05:35 UTC
I have submitted home:dmacvicar:branches:KDE:KDE4:Factory:Desktop/kupdateapplet to KDE4:Factory:Desktop

this makes it compatible with PackageKit 0.5.x, merges the kde4- renaming that never got back into the git repository and removes policykit dependencies. This should be handled 100% by PackageKit now.

I was sucessfull at updating my system. I have sudo enabled for my local user, so I guess we still need a KDE4 agent for polkit.
Comment 22 Duncan Mac-Vicar 2009-09-18 21:09:12 UTC
Testing appreciated, may be the bug is fixed, as the PolicyKit problem Stefan describes then switched to the API incompatible error and the 2 problems are mixed in the bug report.
Comment 23 Christian Boltz 2009-09-19 19:12:18 UTC
*** Bug 540155 has been marked as a duplicate of this bug. ***
Comment 24 Stephan Binner 2009-09-22 16:49:11 UTC
Tested, update works if polkit-gnome-authentication-agent-1 is running. Let's close this one and keep bug 538897 open to track the authentication issue.
Comment 25 Stephan Binner 2009-09-22 17:05:05 UTC
Let see if it can be close now. :-)
Comment 26 Lubos Lunak 2009-09-27 22:24:07 UTC
No, this cannot be closed yet :(. Right now it looks like the only feasible resolution for bug #538897 is WONTFIX.

Thomas, can you please comment on the possibility of dumping the kupdateapplet packagekit backend for 11.2 and going with the zypp backend? To me it looks that should be the preferred choice anyway and it would solve this mess in a very trivial way, but the backend seems to have issues here (sometimes correctly reports updates available, but then complains about having nothing to do when told to proceed).
Comment 27 Thomas Göttlicher 2009-09-28 08:32:37 UTC
(In reply to comment #26)
> Thomas, can you please comment on the possibility of dumping the kupdateapplet
> packagekit backend for 11.2 and going with the zypp backend? To me it looks
> that should be the preferred choice anyway and it would solve this mess in a
> very trivial way, but the backend seems to have issues here (sometimes
> correctly reports updates available, but then complains about having nothing to
> do when told to proceed).

kupdateapplet's zypp backend has neither been maintained nor tested for a long time. That's the reason why we shouldn't use the zypp backend as default.

Comment #24 tells that the packagekit backend works aside from packagekit authentication. I think authentication should be fixed instead of using a  workaround.

Any objections?
Comment 28 Lubos Lunak 2009-09-28 08:47:01 UTC
Authentication cannot be fixed, because it does not exist. You can see bug #538897 for all the gory details (and some missing, like the fact that policykit docs are pathetically useless in practice). To put it in a perspective - for M8 the zypp backend is bound to work better in KDE, regardless of its state. I have doubts about feasibility of #538897 even for RC1.
Comment 29 Lubos Lunak 2009-09-28 14:34:45 UTC
I don't understand why our native solution is unmaintained in favour of something that just brings us trouble, but then the only solution for 11.2 is going with the GNOME polkit authentication agent, so closing this one again.