maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [solved] problem with PackageKit (https://talk.maemo.org/showthread.php?t=95840)

ronny_b 2015-08-10 16:10

[solved] problem with PackageKit
 
Hello,

pkcon is faultly since the update on SailfishOS 1.1.7.25 (Björnträsket). Here the error:

Code:

[root@Jolla nemo]# pkcon -v update
17:56:12        PackageKit          Verbose debugging enabled (on console 1)
17:56:12        PackageKit          notify::connected
17:56:12        PackageKit          filter=(null), filters=0
17:56:12        PackageKit          adding state 0x40c6b100
17:56:12        PackageKit          role now get-updates
Getting updates                                                                                                                                                                           
Waiting in queue                                                                                                      [                                                          ] (0%)  17:56:12  PackageKit          emit transaction-list-changed
                                                                                                                                                                                           
Starting                                                                                                              [ ==                                                        ]        17:56:12        PackageKit          remove state 0x40c6b100
Command failed: Could not configure normal mode.

What is wrong here?

Thanks!

Ronny

pycage 2015-08-11 16:02

Re: [help] problem with PackageKit
 
Try to see if you can find something in the pkmon output.

ronny_b 2015-08-11 16:32

Re: [help] problem with PackageKit
 
I didn't know that yet.

Here the output when I run warehouse:

Code:

[root@Jolla nemo]# pkmon
Transactions:
 [none]
daemon connected=0
daemon connected=1
network status=online
Transactions:
 1      /10789_ecedacbc
/10789_ecedacbc percentage  -1
/10789_ecedacbc role        get-repo-list
/10789_ecedacbc status      setup
/10789_ecedacbc status      query
/10789_ecedacbc status      finished
Transactions:
 1      /10789_ecedacbc
 2      /10790_acedceed
/10789_ecedacbc exit code: success
Transactions:
 1      /10790_acedceed
Transactions:
 [none]
/10790_acedceed percentage  -1
/10790_acedceed role        get-updates
/10790_acedceed status      finished

I can see nothing bad here. Nevertheless, the application aborts with an error message.

inte 2015-08-13 16:20

Re: [help] problem with PackageKit
 
Same problem here.
Any solution yet? Rebuilded rpmdb already. Did a zypper clean as well. Zypper update seem to work though. However, no change to install anything from the store nor the most recent update (.27).
Thanks!

EDIT:
pkmon output for a failed transaction:
[root@Jolla rpm]# pkmon -v
18:26:10 PackageKit Verbose debugging enabled (on console 1)
18:26:10 PackageKit refreshing task list
Transactions:
[none]
18:26:10 PackageKit notify::connected
daemon connected=1
18:26:10 PackageKit refreshing task list
network status=online
Daemon state: 'State:
'
18:26:15 PackageKit emit transaction-list-changed
18:26:15 PackageKit current: /55869_ebddadee
18:26:15 PackageKit emit added: /55869_ebddadee
18:26:15 PackageKit added: /55869_ebddadee
Transactions:
1 /55869_ebddadee
Daemon state: 'State:
0 refresh-cache /55869_ebddadee state[running] exclusive[1] background[0]
'
/55869_ebddadee allow_cancel 1
/55869_ebddadee percentage -1
18:26:15 PackageKit role now refresh-cache
/55869_ebddadee role refresh-cache
/55869_ebddadee status setup
/55869_ebddadee status finished
18:26:15 PackageKit emit transaction-list-changed
18:26:15 PackageKit last: /55869_ebddadee
18:26:15 PackageKit emit removed: /55869_ebddadee
18:26:15 PackageKit removed: /55869_ebddadee
Transactions:
[none]
18:26:15 PackageKit failed to adopt: Could not configure normal mode.
Daemon state: 'State:
0 refresh-cache /55869_ebddadee state[finished] exclusive[1] background[0]
'



and another try:

18:25:34 PackageKit Verbose debugging enabled (on console 1)
18:25:34 PackageKit refreshing task list
Transactions:
[none]
18:25:34 PackageKit notify::connected
daemon connected=1
18:25:34 PackageKit refreshing task list
network status=online
Daemon state: 'State:
'
18:25:38 PackageKit emit transaction-list-changed
18:25:38 PackageKit current: /55868_cbaddede
18:25:38 PackageKit emit added: /55868_cbaddede
18:25:38 PackageKit added: /55868_cbaddede
Transactions:
1 /55868_cbaddede
Daemon state: 'State:
0 refresh-cache /55868_cbaddede state[running] exclusive[1] background[0]
'
/55868_cbaddede percentage -1
18:25:38 PackageKit role now refresh-cache
/55868_cbaddede role refresh-cache
/55868_cbaddede status finished
18:25:38 PackageKit internal error: failed, but no exit code: failed
18:25:38 PackageKit failed to adopt: Failed: failed
18:25:38 PackageKit emit transaction-list-changed
18:25:38 PackageKit last: /55868_cbaddede
18:25:38 PackageKit emit removed: /55868_cbaddede
18:25:38 PackageKit removed: /55868_cbaddede
Transactions:
[none]
Daemon state: 'State:
0 refresh-cache /55868_cbaddede state[finished] exclusive[1] background[0]
'

inte 2015-08-13 17:59

Re: [help] problem with PackageKit
 
Update:
I managed to update to .27 with zypper.
Doesn't fix the pkcon error, though:(

pycage 2015-08-14 09:12

Re: [help] problem with PackageKit
 
Looks like refreshing caches failed? It could be that you have some repository configured that does no longer exist?

coderus 2015-08-14 09:50

Re: [help] problem with PackageKit
 
If your /var/cache/pk-zypp-cache is link do
Code:

unlink /var/cache/pk-zypp-cache
if it folder do
Code:

mv /var/cache/pk-zypp-cache /var/cache/.pk-zypp-cache
and then do
Code:

ln -sf /var/cache/zypp /var/cache/pk-zypp-cache
all commands should be executed as root

pycage 2015-08-14 10:15

Re: [help] problem with PackageKit
 
Quote:

Originally Posted by coderus (Post 1479477)
If your /var/cache/pk-zypp-cache is link do
Code:

unlink /var/cache/pk-zypp-cache
if it folder do
Code:

mv /var/cache/pk-zypp-cache /var/cache/.pk-zypp-cache
and then do
Code:

ln -sf /var/cache/zypp /var/cache/pk-zypp-cache
all commands should be executed as root

Or just remove that whole stuff, /var/cache/zypp, /var/cache/pk-zypp-cache, as it will get created by PackageKit automatically again. No need to create the symlink manually.

pk-zypp-cache is supposed to be a link to switch between apps package cache and OS update package cache.

But if there's an issue with one of the enabled repositories, the caches cannot be refreshed.

ronny_b 2015-08-14 13:41

Re: [solved] problem with PackageKit
 
Thanks for the tip with both directorys. After I have renamed these both, the stores can be open again!

Ronny

Jordi 2015-08-17 17:45

Re: [solved] problem with PackageKit
 
I had the same problem...

@Coderus : it works! Many thanks. :)


All times are GMT. The time now is 00:55.

vBulletin® Version 3.8.8