Bug 729202

Summary: KpackageKit doesn't work on minimal install of Fedora
Product: [Fedora] Fedora Reporter: Kirin Yuri <kirin.yuri>
Component: PackageKitAssignee: Richard Hughes <richard>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: jonathan, kevin, ltinkl, rdieter, rhughes, richard, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: PackageKit-0.6.17-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-10 13:11:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Anaconda-ks.cfg
none
install.log
none
yum.log none

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.
Details
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):
kpackagekit-0.6.3.3-2.fc15.i686

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

Richard

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
and
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]
Anaconda-ks.cfg

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

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

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-0.6.3.3-2.fc15.i686
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".