[packagekit] dbus policy error

Sveta Anisimova svet at bu.edu
Fri Apr 11 08:13:46 PDT 2008


Hi Richard,


a different dbus error occurs with the latest 0.1.11 release:

Traceback (most recent call last):
  File "./pk-frontend-test.py", line 49, in <module>
    installedPkgs, errorDataBase = schedule()
  File "/home/svet/bulinux-autoupdate/schedule.py", line 88, in schedule
    update_package(pkg)
  File "/home/svet/bulinux-autoupdate/PackageKit.py", line 164, in
update_package
    return p.UpdatePackage(pkg)
  File "/usr/lib/python2.5/site-packages/packagekit/pkdbus.py", line
40, in wrapper
    raise PackageKitException(e)
packagekit.pkexceptions.PackageKitException:
org.freedesktop.DBus.Error.UnknownMethod: Method "UpdatePackage" with
signature "ss" on interface "org.freedesktop.PackageKit" doesn't exist

thanks,

sveta



Quoting Sveta Anisimova <svet at bu.edu>:

> here it is. thanks a lot.
>
> [svet at svet autoupdate]$ ./pk-frontend-test-test.py update_package
> "emacs;22.1.50-4.fc9;i386;development"
> Traceback (most recent call last):
>   File "./pk-frontend-test-test.py", line 168, in <module>
>     globals()[args[0]](args[1:])
>   File "./pk-frontend-test-test.py", line 155, in update_package
>     return p.UpdatePackage(args[0][0])
>   File "/usr/lib/python2.5/site-packages/packagekit/pkdbus.py", line
> 40, in wrapper
>     raise PackageKitException(e)
> packagekit.pkexceptions.PackageKitException:
> org.freedesktop.PackageKit.RefusedByPolicy:
> org.freedesktop.packagekit.update-package auth_self_keep_always
>
>
>
> [svet at svet autoupdate]$ ck-list-sessions
> Session2:
>         uid = '500'
>         realname = 'Sveta Anisimova'
>         seat = 'Seat1'
>         session-type = ''
>         active = TRUE
>         x11-display = ':0'
>         x11-display-device = '/dev/tty7'
>         display-device = ''
>         remote-host-name = ''
>         is-local = TRUE
>         on-since = '2008-03-06T19:32:19Z'
>
>
>>
>> Hi Richard,
>>
>> unfortunately, the same error persists with the latest 1.9 release:
>>
>> [svet at svet autoupdate]$ sudo ./pk-frontend-test-test.py update_package
>> "emacs;22.1.50-4.fc9;i386;development"
>> Password:
>> Traceback (most recent call last):
>>   File "./pk-frontend-test-test.py", line 168, in <module>
>>     globals()[args[0]](args[1:])
>>   File "./pk-frontend-test-test.py", line 155, in update_package
>>     return p.UpdatePackage(args[0][0])
>>   File "/usr/lib/python2.5/site-packages/packagekit/pkdbus.py", line
>> 40, in wrapper
>>     raise PackageKitException(e)
>> packagekit.pkexceptions.PackageKitException:
>> org.freedesktop.PackageKit.RefusedByPolicy:
>> org.freedesktop.packagekit.update-package no
>>
>>
>>
>> On Mon, 2008-03-03 at 14:50 -0500, Sveta Anisimova wrote:
>> [Hide Quoted Text]
>>> [svet at svet autoupdate]$ ./pk-frontend-test-test.py update_package
>>> "xemacs-packages-base;20070427-1.fc8;noarch;development"
>>> Traceback (most recent call last):
>>>    File "./pk-frontend-test-test.py", line 168, in <module>
>>>      globals()[args[0]](args[1:])
>>>    File "./pk-frontend-test-test.py", line 155, in update_package
>>>      return p.UpdatePackage(args[0][0])
>>>    File "/usr/lib/python2.5/site-packages/packagekit/pkdbus.py", line
>>> 40, in wrapper
>>>      raise PackageKitException(e)
>>> packagekit.pkexceptions.PackageKitException:
>>> org.freedesktop.PackageKit.RefusedByPolicy:
>>> org.freedesktop.packagekit.update-package auth_self_keep_always
>>
>> Are you using the latest packagekit from git? There's a few nice fixes
>> for PolicyKit in git.
>>
>> Richard.
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Thu, 6 Mar 2008 19:58:45 +0000
>> From: "Richard Hughes" <hughsient at gmail.com>
>> Subject: Re: [packagekit] dbus policy error
>> To: "PackageKit users and developers list"
>> 	<packagekit at lists.freedesktop.org>
>> Message-ID:
>> 	<15e53e180803061158xadb68dar32beefc9c6fd5f9c at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> On 3/6/08, Sveta Anisimova <svet at bu.edu> wrote:
>>> Hi Richard,
>>>
>>>  unfortunately, the same error persists with the latest 1.9 release:
>>>
>>>  [svet at svet autoupdate]$ sudo ./pk-frontend-test-test.py update_package
>>>  "emacs;22.1.50-4.fc9;i386;development"
>>
>> Can you try withhout sudo pls. Also, ck-list-sessions output would be
>> great, thanks.
>>
>> Richard
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> PackageKit mailing list
>> PackageKit at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/packagekit
>>
>>
>> End of PackageKit Digest, Vol 8, Issue 17
>> *****************************************
>>
>
>
>






More information about the PackageKit mailing list