Bug 866486 - Cannot update system via PackageKit-based apps in KDE with update checking enabled
Summary: Cannot update system via PackageKit-based apps in KDE with update checking en...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F18Beta, F18BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2012-10-15 13:36 UTC by Martin Krizek
Modified: 2012-11-01 19:05 UTC (History)
13 users (show)

Fixed In Version: PackageKit-0.8.4-7.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-01 19:05:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
pkmon output (141.66 KB, text/plain)
2012-10-24 11:01 UTC, Martin Krizek
no flags Details

Description Martin Krizek 2012-10-15 13:36:28 UTC
Description of problem:
When selecting 'Apply' to install new updates, it goes back to the list of available packages.

Version-Release number of selected component (if applicable):
yum-3.4.3-45.fc18.noarch
PackageKit-0.8.4-3.fc18.x86_64
apper-0.8.0-0.7.20121002git.fc18.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run Apper
2. Go to Updates
3. Click Apply
  
Actual results:
Seems like the updates process is started but before downloading packages starts it goes back to the list of available updates.

Expected results:
Updates are installed.

Comment 1 Martin Krizek 2012-10-15 13:38:57 UTC
Proposing as a beta blocker per criterion: "The installed system must be able to download and install updates with yum and the default graphical package manager in all release-blocking desktops"

Comment 2 Adam Williamson 2012-10-15 15:47:31 UTC
Discussed at 2012-10-15 QA meeting acting as a blocker review meeting: http://meetbot.fedoraproject.org/fedora-meeting/2012-10-15/fedora-qa.2012-10-15-15.00.log.txt . Accepted as a blocker per criterion cited in comment #1.

Comment 3 Lukáš Tinkl 2012-10-15 16:07:16 UTC
Ok, going to try with the most recent snapshot

Comment 4 Lukáš Tinkl 2012-10-15 16:46:20 UTC
Pushed in git, can't build atm due to:

Error: Package: PackageKit-yum-0.8.4-4.fc19.i686 (build)
           Requires: yum >= 3.4.3-45
           Installing: yum-3.4.3-43.fc19.noarch (build)
               yum = 3.4.3-43.fc19
Error: Package: PackageKit-yum-0.8.4-4.fc19.i686 (build)
           Requires: yum >= 3.4.3-45
           Available: yum-3.4.3-43.fc19.noarch (build)
               yum = 3.4.3-43.fc19

Comment 5 Rex Dieter 2012-10-15 18:46:29 UTC
Hoping this build should help fix it:
http://koji.fedoraproject.org/koji/taskinfo?taskID=4592340

(this one worked for me in 4 test tries, after various other attempts failed).

In short, it's a 20121002git snapshot rebuild minus an experimental systemd_inhibit patch.

Comment 6 Martin Krizek 2012-10-16 14:46:49 UTC
The build works for me.

Comment 7 Fedora Update System 2012-10-16 15:18:13 UTC
apper-0.8.0-0.8.20121002git.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/apper-0.8.0-0.8.20121002git.fc18

Comment 8 Fedora Update System 2012-10-16 17:44:18 UTC
Package apper-0.8.0-0.8.20121002git.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing apper-0.8.0-0.8.20121002git.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16233/apper-0.8.0-0.8.20121002git.fc18
then log in and leave karma (feedback).

Comment 9 Adam Williamson 2012-10-16 22:33:57 UTC
setting VERIFIED per martix's test above (same build).

Comment 10 Martin Krizek 2012-10-22 09:29:49 UTC
I hit this again with apper-0.8.0-0.8.20121002git.fc18 on F18 Beta TC6

Comment 11 Adam Williamson 2012-10-23 00:34:03 UTC
this seems a bit confusing...

Comment 12 Kamil Páral 2012-10-23 13:05:02 UTC
Martin says the same build worked for him in TC4 and doesn't work in TC6. Setting back to ASSIGNED. Rex, tell us what logs Martin can provide to help you debug this issue.

Comment 13 Rex Dieter 2012-10-23 13:14:23 UTC
For starters,

* output from 'pkmon'

* and see if 'pkcon update' has similar issues (or not)

Comment 14 Martin Krizek 2012-10-24 11:01:17 UTC
Created attachment 632691 [details]
pkmon output

Comment 15 Martin Krizek 2012-10-24 11:02:57 UTC
So I tested it a bit more and found out what caused the confusion with the build working in TC4 and not in TC6. According to my testing, updating only works when 'Check for updates' is set to Never. So on default clean install it doesn't work. It affects pkcon as well. pkmon output attached.

Comment 16 Adam Williamson 2012-10-25 00:17:06 UTC
I concur with mkrizek. I did a DVD install of TC6 and tried installing updates with Apper. As described in this bug, it just cycles back to the 'available updates' screen. After setting check for updates to 'never' and trying again, it has hit the 'Downloading packages' step, which it didn't before, so it seems to be working.

Comment 17 Kevin Kofler 2012-10-25 01:05:08 UTC
Unfortunately, never checking for updates is NOT an acceptable workaround.

Comment 18 Adam Williamson 2012-10-25 01:53:26 UTC
of course not, but it seems like it's useful for diagnosis purposes. I was just providing confirmation of mkrizek's diagnosis of the problem.

Comment 19 Rex Dieter 2012-10-26 16:56:06 UTC
So, one big complicating factor here is that subsequent commits to apper upstream have up'd the PackageKit requirement to 0.8.5
:(

Comment 20 Rex Dieter 2012-10-26 17:31:11 UTC
I poked dannti on irc today, he said he'd try to take a look at the current state of things over the weekend.

Comment 21 Adam Williamson 2012-10-26 17:37:44 UTC
Thanks. Go/No-Go for Beta is on 11-01, so we really need this pretty soon :)

Comment 22 Jaroslav Reznik 2012-10-30 14:44:08 UTC
Rex,
any news? One possibility ltinkl proposed today is to use GPK in case we would need it this week and there will be no known Apper solution (for Beta).

Comment 23 Lukáš Tinkl 2012-10-30 16:16:56 UTC
http://koji.fedoraproject.org/koji/taskinfo?taskID=4639708 (test build)

Comment 24 Fedora Update System 2012-10-30 18:27:46 UTC
PackageKit-0.8.4-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/PackageKit-0.8.4-5.fc18

Comment 25 Adam Williamson 2012-10-30 22:59:03 UTC
0.8.4-6 (which was submitted later) does not appear to fix this for me. I built a KDE live image for testing with that version of PK included. I installed and immediately attempted to update. It behaved as reported in this bug; almost no change at all. It found the packages for update, I selected them all and hit Apply, it did a few steps and then cycled right back to the list of available updates. After changing the configuration to check for updates from 'Daily' to 'Never' and trying again, it worked.

The only difference is that at the time it failed, a crash in packagekitd was reported by abrt. According to abrt that crash was https://bugzilla.redhat.com/show_bug.cgi?id=871032 . But that bug was filed with an older PackageKit, so it may be coincidental. So far as I can tell the main behaviour here has not changed.

Comment 26 Adam Williamson 2012-10-31 01:27:42 UTC
dantti said he can reproduce this with gnome-packagekit, but I can't reproduce it on a GNOME install. I guess the difference is the KDE update checker - remember, this bug doesn't happen if you disable checking for updates. I'll check that I can reproduce it using gnome-packagekit in KDE.

Comment 27 Adam Williamson 2012-10-31 01:54:09 UTC
OK, I confirm I can reproduce the bug using gnome-packagekit (gpk-update-viewer) within KDE - but not with a GNOME install. So the bug is not apper-specific, but it *is* KDE specific. Definitely sounds like it's to do with the KDE update checking mechanism somehow.

Re-assigning bug to PackageKit for now and adjusting summary.

Comment 28 Lukáš Tinkl 2012-10-31 10:33:41 UTC
This is weird, what KDE code could gpk-update-viewer use when running in a KDE session... I can't think of any. Can you try to reproduce the behavior of gpk-update-viewer in KDE with apper uninstalled?

Comment 29 Martin Krizek 2012-10-31 11:56:28 UTC
So according to my testing in KDE, gpk-update-viewer is affected by this bug *only* when apper is installed (I had to reboot after uninstalling apper).

Comment 30 Lukáš Tinkl 2012-10-31 12:46:39 UTC
The only thing I could come up with that gpk-update-viewer and apper have in common is polkit-kde (when running under KDE). Just for completeness, have you tried running apper inside Gnome Shell?

Comment 31 Martin Krizek 2012-10-31 13:06:16 UTC
Running Apper inside Gnome Shell works.

Comment 32 Jaroslav Reznik 2012-10-31 13:14:24 UTC
Could you retry with Gnome polkit in KDE?

Comment 33 Richard Hughes 2012-10-31 14:07:11 UTC
I've also built PackageKit-0.8.4-7.fc18 with some more fixes backported from upstream. It could be the UpdatesChanged fix would fix the apper background process somehow, although I'm not familiar with how apper works internally.

Comment 34 Jaroslav Reznik 2012-10-31 15:49:21 UTC
(In reply to comment #33)
> I've also built PackageKit-0.8.4-7.fc18 with some more fixes backported from
> upstream. It could be the UpdatesChanged fix would fix the apper background
> process somehow, although I'm not familiar with how apper works internally.

Great, I was able to update using PackageKit-0.8.4-7.fc18!

Comment 35 Lukáš Tinkl 2012-10-31 16:54:56 UTC
I can too confirm that with PackageKit-0.8.4-7.fc18, apper is back in business, yay!

Comment 36 Fedora Update System 2012-10-31 18:13:51 UTC
Package PackageKit-0.8.4-7.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing PackageKit-0.8.4-7.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17371/PackageKit-0.8.4-7.fc18
then log in and leave karma (feedback).

Comment 37 Adam Williamson 2012-11-01 01:01:02 UTC
Yup, works for me too. karma changed.

Comment 38 Martin Krizek 2012-11-01 08:25:33 UTC
Confirming, works for me as well.

Comment 39 Tim Flink 2012-11-01 19:05:19 UTC
Closing this because the update from c#36 has been pushed to stable after the fix was verified.


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