Software shows already-installed updates not shown by pkcon or dnf
Submitted by Dag Odenhall
Link to original bug (#791478)
Description
Created attachment 365360 OS Updates in Software
For the last few updates, Software has been showing me updates already installed in previous transactions, that are not shown by dnf or pkcon. I've tried to refresh in Software, and I've tried pkcon repair and refresh force with no effect. Restart & Update seems to work without a problem: it installs the actually available updates and doesn't complain about the already installed ones. I think it does report the update as failed when I get back into the Shell, unless I remember incorrectly (I'll try this update and report back), but in fact the updates get installed.
This is on a Fedora 27 system. In the attached screenshot you can tell by the scrollbar that it's showing a long list of updates unlike the output of the following commands.
rpm -qa 'PackageKit*' gnome-software
PackageKit-1.1.7-1.fc27.x86_64 PackageKit-command-not-found-1.1.7-1.fc27.x86_64 PackageKit-glib-1.1.7-1.fc27.x86_64 PackageKit-gtk3-module-1.1.7-1.fc27.x86_64 gnome-software-3.26.3-1.fc27.x86_64 PackageKit-gstreamer-plugin-1.1.7-1.fc27.x86_64
dnf repolist
Last metadata expiration check: 1:10:09 ago on Mon 11 Dec 2017 13:10:39 CET. repo id repo name status dirkdavidis-papirus-icon-theme Copr repo for papirus-icon-theme owned by 2 *fedora Fedora 27 - x86_64 54,801 heikoada-gtk-themes Copr repo for gtk-themes owned by heikoada 312 *rpmfusion-free RPM Fusion for Fedora 27 - Free 574 *rpmfusion-free-updates RPM Fusion for Fedora 27 - Free - Updates 72 *updates Fedora 27 - x86_64 - Updates 6,919
dnf upgrade
Last metadata expiration check: 1:14:16 ago on Mon 11 Dec 2017 13:10:39 CET. Dependencies resolved.
Package Arch Version Repository Size
Installing:
kernel x86_64 4.14.3-300.fc27 updates 76 k
kernel-core x86_64 4.14.3-300.fc27 updates 21 M
kernel-modules x86_64 4.14.3-300.fc27 updates 25 M
kernel-modules-extra x86_64 4.14.3-300.fc27 updates 2.1 M
Upgrading:
adapta-gtk-theme-common noarch 3.92.2-2.201712102100gitc68e765.fc27
heikoada-gtk-themes 25 k
adapta-gtk-theme-gedit noarch 3.92.2-2.201712102100gitc68e765.fc27
heikoada-gtk-themes 11 k
adapta-gtk-theme-gtk2 noarch 3.92.2-2.201712102100gitc68e765.fc27
heikoada-gtk-themes 154 k
adapta-gtk-theme-gtk3 noarch 3.92.2-2.201712102100gitc68e765.fc27
heikoada-gtk-themes 836 k
adapta-gtk-theme-gtk4 noarch 3.92.2-2.201712102100gitc68e765.fc27
heikoada-gtk-themes 405 k
gnome-shell-theme-adapta noarch 3.92.2-2.201712102100gitc68e765.fc27
heikoada-gtk-themes 122 k
kernel-headers x86_64 4.14.3-300.fc27 updates 1.2 M
Removing:
kernel x86_64 4.13.15-300.fc27 @updates 0
kernel-core x86_64 4.13.15-300.fc27 @updates 55 M
kernel-modules x86_64 4.13.15-300.fc27 @updates 24 M
kernel-modules-extra x86_64 4.13.15-300.fc27 @updates 2.0 M
Transaction Summary
Install 4 Packages Upgrade 7 Packages Remove 4 Packages
Total download size: 51 M Is this ok [y/N]:
pkcon get-updates
Getting updates [=========================]
Finished [=========================]
Available adapta-gtk-theme-common-3.92.2-2.201712102100gitc68e765.fc27.noarch (heikoada-gtk-themes) Files common to Adapta themes
Available adapta-gtk-theme-gedit-3.92.2-2.201712102100gitc68e765.fc27.noarch (heikoada-gtk-themes) Adapta gEdit theme
Available adapta-gtk-theme-gtk2-3.92.2-2.201712102100gitc68e765.fc27.noarch (heikoada-gtk-themes) Adapta GTK+2 themes
Available adapta-gtk-theme-gtk3-3.92.2-2.201712102100gitc68e765.fc27.noarch (heikoada-gtk-themes) Adapta GTK+3 themes
Available adapta-gtk-theme-gtk4-3.92.2-2.201712102100gitc68e765.fc27.noarch (heikoada-gtk-themes) Adapta GTK+4 themes
Available gnome-shell-theme-adapta-3.92.2-2.201712102100gitc68e765.fc27.noarch (heikoada-gtk-themes) Adapta GNOME Shell theme
Available kernel-4.14.3-300.fc27.x86_64 (updates) The Linux kernel
Available kernel-core-4.14.3-300.fc27.x86_64 (updates) The Linux kernel
Available kernel-headers-4.14.3-300.fc27.x86_64 (updates) Header files for the Linux kernel for use by glibc
Available kernel-modules-4.14.3-300.fc27.x86_64 (updates) kernel modules to match the core kernel
Available kernel-modules-extra-4.14.3-300.fc27.x86_64 (updates) Extra kernel modules to match the kernel
pkcon offline-get-prepared
Prepared updates: adapta-gtk-theme-common-3.92.2-2.201712102100gitc68e765.fc27.noarch gnome-shell-theme-adapta-3.92.2-2.201712102100gitc68e765.fc27.noarch adapta-gtk-theme-gtk4-3.92.2-2.201712102100gitc68e765.fc27.noarch adapta-gtk-theme-gtk3-3.92.2-2.201712102100gitc68e765.fc27.noarch adapta-gtk-theme-gtk2-3.92.2-2.201712102100gitc68e765.fc27.noarch adapta-gtk-theme-gedit-3.92.2-2.201712102100gitc68e765.fc27.noarch kernel-headers-4.14.3-300.fc27.x86_64 kernel-core-4.14.3-300.fc27.x86_64 kernel-4.14.3-300.fc27.x86_64 kernel-modules-extra-4.14.3-300.fc27.x86_64 kernel-modules-4.14.3-300.fc27.x86_64