Bug 20231 - packagekitd crash
Summary: packagekitd crash
Status: RESOLVED INVALID
Alias: None
Product: PackageKit
Classification: Unclassified
Component: backend-apt (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-20 05:04 UTC by Giuseppe Calà
Modified: 2012-01-05 10:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Giuseppe Calà 2009-02-20 05:04:15 UTC
Hi,
I have compiled packagekit on my kubuntu 8.10 64bit with these commands:

./configure --enable-apt --prefix=/usr
make
make install

The compilation was ok but the daemon crash when started; the log is in the following pastebin.ca link:

http://pastebin.ca/1342832

Seems that it can't find org.freedesktop.PackageKit.conf in /etc/dbus-1/system.d; this file was installed in /usr/etc/dbus-1/system.d but creating a symbolic link not resolve the error.

Thanks,
Giuseppe
Comment 1 Richard Hughes 2009-02-20 05:08:52 UTC
--prefix=/usr can't work like that. You need to set the directories for the sysconfdir and all that stuff. DBus is quite specific that it needs _all_ the .conf (two for apt backend) and service files installed in the right place.
Comment 2 Giuseppe Calà 2009-02-20 05:23:41 UTC
Have recompiled without 'prefix' argument but the error is always the same: can't find org.freedesktop.PackageKit.conf that is installed in /usr/local/etc/dbus-1/system.d/

Here the log:
http://pastebin.ca/1342847

Regards
Comment 3 Richard Hughes 2009-02-20 06:14:22 UTC
You have to install the conf files in /etc/dbus-1/system.d/
Comment 4 Giuseppe Calà 2009-02-20 08:02:36 UTC
Some news: I have compiled packagekit with

./configure --enable-apt --sysconfdir=/etc

Now if I start the daemon it runs but with strange behaviour; first the log:

http://pastebin.ca/1342935

Here the output of pkcon:

$ pkcon get-updates
Errore: internal-error: Cannot launch daemon, file not found or permissions invalid

and this regardless I'm root or not. Same error if I use kpackagekit.


One more thing: an other error that compares in the output is 'unable to open database file':

TI:16:55:00     TH:0x9a6930     FI:pk-post-trans.c      FN:pk_post_trans_init,808                                                                                                           
 - trying to open database '/var/lib/PackageKit/desktop-files.db'                                                                                                                           
TI:16:55:00     TH:0x9a6930     FI:pk-post-trans.c      FN:pk_post_trans_init,811                                                                                                           
 - Can't open database: unable to open database file                                                                                                                                        
                                                                                                                                                                                            
TI:16:55:00     TH:0x9a6930     FI:pk-transaction-db.c  FN:pk_transaction_db_init,565                                                                                                       
 - trying to open database './transactions.db'                                                                                                                                              
TI:16:55:00     TH:0x9a6930     FI:pk-transaction.c     FN:pk_transaction_set_sender,1200                                                                                                   
 - setting sender to :1.56                                                                                                                                                                  
TI:16:55:00     TH:0x9a6930     FI:pk-security-polkit.c FN:pk_security_caller_new_from_sender,76                                                                                            
 - failed to get caller org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '6959'                                                            
TI:16:55:00     TH:0x9a6930     FI:pk-transaction-list.c        FN:pk_transaction_list_create,409                                                                                           
 - adding transaction 0x9d5220, item 0x9bdca0


Comment 5 Jean-François Fortin Tam 2012-01-05 10:12:19 UTC
Hi there,
This bug report is very old and based on a version not supported anymore. By upgrading to a newer version of PackageKit you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of PackageKit.
Please feel free to reopen this bug if the problem still occurs with the latest version.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.