Bug 907041
Summary: | "Install Updates & Restart" displayed when no new updates are available | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Catanzaro <mcatanzaro+wrong-account-do-not-cc> |
Component: | PackageKit | Assignee: | Richard Hughes <rhughes> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | admiller, cra, fmuellner, jonathan, mark.harfouche, otaylor, rdieter, rhughes, rvitale, samkraju, smparrish, walters |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-12-10 17:32:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael Catanzaro
2013-02-02 20:39:31 UTC
(In reply to comment #0) > I'm not familiar with the update mechanisms -- maybe it's not a shell issue > and something deeper is wrong -- but I suspect we're just bad at deciding > when to display the offline updates options. It probably is a problem down the stack. From the shell side, the mechanism is fairly simple - the "Install Updates & Reboot" item is shown iff the file /var/lib/PackageKit/prepared-update exists. So unless there is a bug with regard to monitoring that file, the PackageKit daemon fails to remove the file (probably after updates have been applied "online" via yum). If it happens again, can you confirm that /var/lib/PackageKit/prepared-update is present and reassign to PackageKit if that's the case? Today I installed updates as prompted by the "Important updates are available" notification; i.e. I installed the "online" updates using gpk-update-viewer. "Install Updates & Restart" was visible on the shell menu after I noticed the notification. After installing updates, I was prompted to log out and log back in (I don't think I had to do this last time but I might be wrong). Install Updates & Restart is still visible. /var/lib/PackageKit/prepared-update still exists and contains a list of all the files that were just updated: [michael@victory-road ~]$ cat /var/lib/PackageKit/prepared-update rpm;4.10.3.1-1.fc18;x86_64;updates qemu-common;2:1.2.2-6.fc18;x86_64;updates libsmbclient;2:4.0.2-1.fc18;x86_64;updates selinux-policy-targeted;3.11.1-76.fc18;noarch;updates samba-common;2:4.0.2-1.fc18;x86_64;updates glusterfs;3.3.1-9.fc18;x86_64;updates rpm-python;4.10.3.1-1.fc18;x86_64;updates iproute;3.6.0-6.fc18;x86_64;updates rpm-libs;4.10.3.1-1.fc18;x86_64;updates qemu-img;2:1.2.2-6.fc18;x86_64;updates selinux-policy;3.11.1-76.fc18;noarch;updates qemu-kvm;2:1.2.2-6.fc18;x86_64;updates nss-sysinit;3.14.2-2.fc18;x86_64;updates nss-tools;3.14.2-2.fc18;x86_64;updates selinux-policy-doc;3.11.1-76.fc18;noarch;updates xorg-x11-drv-synaptics;1.6.3-1.fc18;x86_64;updates rpm-build-libs;4.10.3.1-1.fc18;x86_64;updates libsss_idmap;1.9.4-3.fc18;x86_64;updates pytalloc;2.0.8-1.fc18;x86_64;updates dnsmasq;2.65-4.fc18;x86_64;updates selinux-policy-devel;3.11.1-76.fc18;noarch;updates qemu-system-x86;2:1.2.2-6.fc18;x86_64;updates nspr;4.9.5-1.fc18;x86_64;updates nss-util;3.14.2-2.fc18;x86_64;updates sssd;1.9.4-3.fc18;x86_64;updates libldb;1.1.15-2.fc18;x86_64;updates nss-softokn-freebl;3.14.2-3.fc18;x86_64;updates sssd-client;1.9.4-3.fc18;x86_64;updates libtalloc;2.0.8-1.fc18;x86_64;updates nss;3.14.2-2.fc18;x86_64;updates graphite2;1.1.1-4.fc18;x86_64;updates glusterfs-fuse;3.3.1-9.fc18;x86_64;updates nss-softokn;3.14.2-3.fc18;x86_64;updates libwbclient;2:4.0.2-1.fc18;x86_64;updates libipa_hbac;1.9.4-3.fc18;x86_64;updates libtdb;1.2.11-1.fc18;x86_64;updates samba-libs;2:4.0.2-1.fc18;x86_64;updates libcacard;2:1.2.2-6.fc18;x86_64;updates telepathy-gabble;0.16.4-3.fc18;x86_64;updates I'm about to click "Install Updates & Restart" to see what happens, but I suspect it'll be another "update nothing". Yup, "Install Updates & Restart" is still here and nothing was updated. It goes away when I manually check for updates, and then /var/lib/PackageKit/prepared-update is gone. (I did forget to check if it was there after restarting and before running "check for updates".) So this is probably not a shell problem. (Note that I don't have permission to reassign this bug to another component.) I recently did an update in the same manner on openSUSE 12.3 RC1 where "Install Updates & Restart" disappeared after gpk-update-viewer finished its work, so it's possible this is not an issue for other distros. OK, so this is indeed a problem of PackageKit not removing the file after doing the update "online". Maybe this commit is a fix? http://gitorious.org/packagekit/packagekit/commit/c8646c384392106ff5e64ae5def957fb71d866b9 I think this was fixed with this week's PackageKit update. (In reply to Michael Catanzaro from comment #6) > I think this was fixed with this week's PackageKit update. Agreed. |