Created attachment 153845 [details] Screenshot showing a konsole running "dnf updates" and Discover updates section empty SUMMARY Discover (or it packagekit backend) do not shows current updates even if I click the "update" button. It shows the updates if I manually run "pkcon refresh force" on command line then click "update" button. STEPS TO REPRODUCE 1. Open discover, go to the updates and click "update" button: note that no updates are displayed; 2. Open konsole and run "dnf upgrade" and see that updates are available; 3. Run "sudo pkcon refresh force" and reopen Discover: note that now it shows the updates; OBSERVED RESULT No updates are shown. EXPECTED RESULT Updates must be displayed when available. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 37 (x86_64) KDE Plasma Version: 5.23.3 KDE Frameworks Version: 5.100.0 Qt Version: 5.15.6
Update: Plasma version is 5.26.3, not 5.23.3.
This is a very weird problem. Does running "plasma-discover --backends packagekit" on the terminal show any errors?
It returns: [tosta@metallica ~]$ plasma-discover --backends packagekit adding empty sources model QStandardItemModel(0x55eddede43b0) file:///usr/lib64/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:76:5: QML Binding: Binding loop detected for property "value" file:///usr/lib64/qt5/qml/org/kde/kirigami.2/BasicListItem.qml:276:18: QML QQuickItem*: Binding loop detected for property "implicitWidth" no component found for "org.fedoraproject.fedora" file:///usr/lib64/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:203:9: QML MouseArea: Binding loop detected for property "implicitHeight" file:///usr/lib64/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:203:9: QML MouseArea: Binding loop detected for property "implicitHeight" qrc:/qml/DiscoverPage.qml:17:13: QML InlineMessage: Cannot anchor to an item that isn't a parent or sibling.
What does `pkcon get-updates` say when you're in this state? Seems like it could be an issue with PackageKit, which Discover relies on for providing these updates.
Problem occurs in my 2 machines. Here output from my main computer: [tosta@deeppurple ~]$ LANG=C sudo pkcon refresh Refreshing cache [=========================] Loading cache [=========================] Finished [=========================] [tosta@deeppurple ~]$ LANG=C sudo pkcon get-updates Getting updates [=========================] Starting [=========================] Finished [=========================] There are no updates available at this time. [tosta@deeppurple ~]$ LANG=C sudo pkcon refresh force Refreshing cache [=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Querying [=========================] Loading cache [=========================] Finished [=========================] [tosta@deeppurple ~]$ LANG=C sudo pkcon get-updates Getting updates [=========================] Starting [=========================] Finished [=========================] Bug fix bluez-5.66-4.fc37.x86_64 (updates) Bluetooth utilities Bug fix bluez-cups-5.66-4.fc37.x86_64 (updates) CUPS printer backend for Bluetooth printers Bug fix bluez-libs-5.66-4.fc37.i686 (updates) Libraries for use in Bluetooth applications Bug fix bluez-libs-5.66-4.fc37.x86_64 (updates) Libraries for use in Bluetooth applications Bug fix btrfs-progs-6.0.2-1.fc37.x86_64 (updates) Userspace programs for btrfs Bug fix curl-7.85.0-4.fc37.x86_64 (updates) A utility for getting files from remote servers (FTP, HTTP, and others) Bug fix fontconfig-2.14.1-2.fc37.i686 (updates) Font configuration and customization library Bug fix fontconfig-2.14.1-2.fc37.x86_64 (updates) Font configuration and customization library Available gegl04-0.4.40+git2.584bb34-944.1.x86_64 (graphics_gimp_master) Generic Graphics Library Normal git-annex-10.20221103-1.fc37.x86_64 (updates) Manage files with git, without checking their contents into git Bug fix gtk-update-icon-cache-3.24.35-1.fc37.x86_64 (updates) Icon theme caching utility Bug fix gtk3-3.24.35-1.fc37.i686 (updates) GTK+ graphical user interface library Bug fix gtk3-3.24.35-1.fc37.x86_64 (updates) GTK+ graphical user interface library Bug fix gtk3-immodule-xim-3.24.35-1.fc37.x86_64 (updates) XIM support for GTK+ Bug fix ipcalc-1.0.2-1.fc37.x86_64 (updates) IP network address calculator Available javascriptcoregtk4.1-2.38.2-1.fc37.x86_64 (fedora) JavaScript engine from webkit2gtk4.1 Normal kf5-kipi-plugins-22.08.3-1.fc37.x86_64 (updates) Plugins to use with kf5-libkipi applications Normal kf5-kipi-plugins-libs-22.08.3-1.fc37.x86_64 (updates) Runtime libraries for kf5-kipi-plugins Bug fix krita-5.1.3-1.fc37.x86_64 (updates) Krita is a sketching and painting program Bug fix krita-libs-5.1.3-1.fc37.x86_64 (updates) Shared libraries for krita Available kscreen-1:5.26.3-2.fc37.x86_64 (copr:copr.fedorainfracloud.org:zawertun:kde) KDE Display Management software Bug fix libaom-3.5.0-2.fc37.x86_64 (updates) Library files for aom Bug fix libcurl-7.85.0-4.fc37.i686 (updates) A library for getting files from web servers Bug fix libcurl-7.85.0-4.fc37.x86_64 (updates) A library for getting files from web servers Available libgegl-0_4-0-0.4.40+git2.584bb34-944.1.x86_64 (graphics_gimp_master) Generic Graphics Library Available microsoft-edge-stable-107.0.1418.62-1.x86_64 (microsoft-edge) Microsoft Edge Bug fix pipewire-0.3.61-1.fc37.x86_64 (updates) Media Sharing Server Bug fix pipewire-alsa-0.3.61-1.fc37.i686 (updates) PipeWire media server ALSA support Bug fix pipewire-alsa-0.3.61-1.fc37.x86_64 (updates) PipeWire media server ALSA support Bug fix pipewire-gstreamer-0.3.61-1.fc37.x86_64 (updates) GStreamer elements for PipeWire Bug fix pipewire-jack-audio-connection-kit-0.3.61-1.fc37.x86_64 (updates) PipeWire JACK implementation Bug fix pipewire-libs-0.3.61-1.fc37.i686 (updates) Libraries for PipeWire clients Bug fix pipewire-libs-0.3.61-1.fc37.x86_64 (updates) Libraries for PipeWire clients Bug fix pipewire-pulseaudio-0.3.61-1.fc37.x86_64 (updates) PipeWire PulseAudio implementation Bug fix pipewire-utils-0.3.61-1.fc37.x86_64 (updates) PipeWire media server utilities Enhancement qt6-qt5compat-6.4.1-1.fc37.x86_64 (updates) Qt6 - Qt 5 Compatibility Libraries Enhancement qt6-qtbase-6.4.1-1.fc37.x86_64 (updates) Qt6 - QtBase components Enhancement qt6-qtbase-common-6.4.1-1.fc37.noarch (updates) Common files for Qt6 Enhancement qt6-qtbase-gui-6.4.1-1.fc37.x86_64 (updates) Qt6 GUI-related libraries Enhancement qt6-qtdeclarative-6.4.1-1.fc37.x86_64 (updates) Qt6 - QtDeclarative component Enhancement qt6-qtimageformats-6.4.1-1.fc37.x86_64 (updates) Qt6 - QtImageFormats component Enhancement qt6-qtshadertools-6.4.1-1.fc37.x86_64 (updates) Qt6 - Qt Shader Tools module builds on the SPIR-V Open Source Ecosystem Enhancement qt6-qtsvg-6.4.1-1.fc37.x86_64 (updates) Qt6 - Support for rendering and displaying SVG Enhancement qt6-qtwayland-6.4.1-1.fc37.x86_64 (updates) Qt6 - Wayland platform support and QtCompositor module Bug fix sane-backends-libs-1.1.1-9.fc37.x86_64 (updates) SANE libraries Bug fix selinux-policy-37.15-1.fc37.noarch (updates) SELinux policy configuration Bug fix selinux-policy-targeted-37.15-1.fc37.noarch (updates) SELinux targeted policy Available spotify-client-1:1.1.99.878.g1e4ccc6e-1.fc37.x86_64 (fedora-spotify) Spotify music player native client Available telegram-desktop-4.3.4-1.fc37.x86_64 (rpmfusion-free-updates) Telegram Desktop official messaging app Available webkit2gtk4.1-2.38.2-1.fc37.x86_64 (fedora) WebKitGTK for GTK 3 and libsoup 3 [tosta@deeppurple ~]$ rpm -qa | grep -i packagekit PackageKit-glib-1.2.5-2.fc37.x86_64 PackageKit-1.2.5-2.fc37.x86_64 PackageKit-Qt5-1.0.2-5.fc37.x86_64 PackageKit-command-not-found-1.2.5-2.fc37.x86_64 PackageKit-gstreamer-plugin-1.2.5-2.fc37.x86_64 plasma-discover-packagekit-5.26.3-1.fc37.x86_64 tosta@deeppurple ~]$ LANG=C sudo dnf repolist repo id repo name code Visual Studio Code copr:copr.fedorainfracloud.org:cpuhouse:cert-tools Copr repo for cert-tools owned by cpuhouse copr:copr.fedorainfracloud.org:cpuhouse:kde-extras Copr repo for kde-extras owned by cpuhouse copr:copr.fedorainfracloud.org:cpuhouse:sped-rfb Copr repo for sped-rfb owned by cpuhouse copr:copr.fedorainfracloud.org:ekaaty:core Copr repo for core owned by ekaaty copr:copr.fedorainfracloud.org:zawertun:kde Copr repo for kde owned by zawertun fedora Fedora 37 - x86_64 fedora-cisco-openh264 Fedora 37 openh264 (From Cisco) - x86_64 fedora-modular Fedora Modular 37 - x86_64 fedora-spotify negativo17 - Spotify google-cloud-cli Google Cloud CLI graphics_gimp_master The Gimp - Master standards (Fedora_36) hashicorp Hashicorp Stable - x86_64 microsoft-edge microsoft-edge rpmfusion-free RPM Fusion for Fedora 37 - Free rpmfusion-free-updates RPM Fusion for Fedora 37 - Free - Updates rpmfusion-nonfree RPM Fusion for Fedora 37 - Nonfree rpmfusion-nonfree-updates RPM Fusion for Fedora 37 - Nonfree - Updates updates Fedora 37 - x86_64 - Updates updates-modular Fedora Modular 37 - x86_64 - Updates
Thanks. It's pretty clear that PackageKit or the distro package manager plugin for it is at fault here. I'd recommend filing a bug report at https://github.com/PackageKit/PackageKit/issues. Thanks!
PackageKit bug filled: https://github.com/PackageKit/PackageKit/issues/588
Thanks a lot!
Hi Nate, If a run pkcon with "-c" option, the caches updates and available updates are displayed in cmdline and on Discover. So, it's possible to set that flag where Discover does the call to packagekit? Please see the last comment on upstream issue and that bug in Fedora bugzilla: https://github.com/PackageKit/PackageKit/issues/588 https://bugzilla.redhat.com/show_bug.cgi?id=1950041 [tosta@deeppurple ~]$ LANG=C sudo pkcon refresh -c 21600 Refreshing cache [=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] ... Downloading repository information[=========================] Loading cache [=========================] Finished [=========================] [tosta@deeppurple ~]$ LANG=C sudo pkcon refresh get-updates (Shows a lot of updates - not pasted here) Upgrades also displayed in Discover.
Seems like this is a bug in the DNF PackageKit plugin, yeah. I'll see if I can find a Fedora person to re-open it.
Only for your info: From Alessandro Astone on Fedora Bugzilla: Fedora applies a patch to discover that forces packagekit to rebuild the cache when checking for updates: https://src.fedoraproject.org/rpms/plasma-discover/blob/f37/f/discover-5.21.4-pk_refresh_force.patch It seems to do its job on my system. Are you perhaps building discover yourself without the patch?