Bug 729202 - KpackageKit doesn't work on minimal install of Fedora
Summary: KpackageKit doesn't work on minimal install of Fedora
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 15
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-09 03:05 UTC by Kirin Yuri
Modified: 2011-08-10 13:11 UTC (History)
7 users (show)

Fixed In Version: PackageKit-0.6.17-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-08-10 13:11:16 UTC

Attachments (Terms of Use)
Anaconda-ks.cfg (1.18 KB, text/plain)
2011-08-10 08:17 UTC, Kirin Yuri
no flags Details
install.log (8.65 KB, text/plain)
2011-08-10 08:20 UTC, Kirin Yuri
no flags Details
yum.log (25.37 KB, text/plain)
2011-08-10 08:21 UTC, Kirin Yuri
no flags Details

Description Kirin Yuri 2011-08-09 03:05:17 UTC
Description of problem:

Kpackagekit do not work, if system was installed without any additional packages.
When Kpackagekit is started and any action is made (check updates, for example), it says: 

"A problem that we were not expecting has occurred.
Please report this bug with the error description.
The backend exited unexpectedly. This is a serious error as the spawned backend did not complete the pending transaction."

But "yum update" with root privileges works perfectly.

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. Install Fedora 15 from minimal cd, remove any components, so only very base system will be installed.
2. Set "group_package_types=mandatory" in /etc/yum.conf
3. Install "X Window System", "KDE Software Compilation", kdm, kpackagekit.
4. Set up runlevel (ln -s ...graphical.target ....default)
5. Add normal user.
6. Reboot, login and start kpackagekit from menu.
Actual results:
Kpackagekit can't update, install or remove packages.

Expected results:
Kpackagekit must update, install and remove packages as like as on full-installation-version of Fedora.

Additional info:

Comment 1 Richard Hughes 2011-08-09 10:01:34 UTC
What's the full output from:

sudo /usr/share/PackageKit/helpers/yum/yumBackend.py get-updates none


Comment 2 Kirin Yuri 2011-08-10 02:23:38 UTC
Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 55, in <module>
    import gio
ImportError: No module named gio

That's all. So reason is module gio.

Comment 3 Kirin Yuri 2011-08-10 02:28:46 UTC
Installation of pygobject2 fixes it. But shouldn't PackageKit be in hard dependency of pygobject2?

Comment 4 Kevin Kofler 2011-08-10 02:33:21 UTC
Yes, it's a missing dependency in the PackageKit package. Reassigning.

Comment 5 Rex Dieter 2011-08-10 03:22:47 UTC
PackageKit Requires: PackageKik-backend
PackageKit-yum Provides: PackageKit-backend
PackageKit-yum Requires: pygobject2

So, reporter, 
is PackageKit-yum installed or not?
or perhaps did you have PackageKit-zif instead?

Comment 6 Rex Dieter 2011-08-10 03:27:13 UTC
Nevermind, if /usr/share/PackageKit/helpers/yum/yumBackend.py existed to run, PackageKit-yum was indeed installed.  Strange how that could have happened without pygobject2 dependency being satisfied.

Comment 7 Kirin Yuri 2011-08-10 08:17:16 UTC
Created attachment 517535 [details]

Comment 8 Kirin Yuri 2011-08-10 08:20:52 UTC
Created attachment 517537 [details]

Comment 9 Kirin Yuri 2011-08-10 08:21:49 UTC
Created attachment 517538 [details]

Comment 10 Kirin Yuri 2011-08-10 08:22:08 UTC
No, i have no PackageKit-zif installed.

Here is my anaconda-ks.cfg, install.log and yum.log.

Did you try to reproduce this bug by my steps?

Comment 11 Kevin Kofler 2011-08-10 13:11:16 UTC
This is the transaction which installed KPackageKit:

Aug 01 21:09:57 Installed: libarchive-2.8.4-3.fc15.i686
Aug 01 21:09:58 Installed: comps-extras-20-2.fc15.noarch
Aug 01 21:09:58 Installed: PackageKit-yum-0.6.16-1.fc15.i686
Aug 01 21:10:01 Installed: PackageKit-0.6.16-1.fc15.i686
Aug 01 21:10:02 Installed: PackageKit-glib-0.6.16-1.fc15.i686
Aug 01 21:10:02 Installed: PackageKit-qt-0.6.16-1.fc15.i686
Aug 01 21:10:04 Installed: kpackagekit-
Aug 01 21:10:05 Installed: ntpdate-4.2.6p3-4.fc15.i686

PackageKit-yum got dragged in, pygobject2 didn't.

But I see this is PackageKit-0.6.16-1.fc15. The current stable update is 0.6.17-1.fc15, and the diff between the 2 versions includes:
+# python(gio)
+Requires: pygobject2

So this is already fixed, just "yum update".

Note You need to log in before you can comment on or make changes to this bug.