PackageKit 1.2.5 unable to perform upgrades

Bug #1961837 reported by Erich Eickmeyer
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PackageKit
Fix Released
Unknown
packagekit (Ubuntu)
Fix Released
Critical
Matthias Klumpp
Jammy
Fix Released
Critical
Matthias Klumpp

Bug Description

After being notified of upgrades available in Plasma Discover, I attempted to do an upgrade of all available packages. Unfortunately, it would not but also wouldn't show an error.

I attempted to run 'pkcon update' which showed no available upgrades, whereas 'apt update' showed several packages available for upgrade.

Expected behavior: 'pkcon update' would have performed the upgrade.
Actual behavior: 'pkcon update' did nothing, saying no packages were available to upgrade.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: packagekit 1.2.5-1ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-18.18-lowlatency 5.15.12
Uname: Linux 5.15.0-18-lowlatency x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu77
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Tue Feb 22 11:33:52 2022
InstallationDate: Installed on 2021-03-20 (338 days ago)
InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 (20210320)
SourcePackage: packagekit
UpgradeStatus: Upgraded to jammy on 2021-11-07 (107 days ago)

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

Matthias, could this be a result of allowing PK to switch versions?

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Julian, we've got some discussion upstream:

https://github.com/PackageKit/PackageKit/issues/534

Revision history for this message
Matthias Klumpp (ximion) wrote :

Sounded like a daemon crash at first, but the deeper I dig the more nonsensical it gets at the moment...

Changed in packagekit (Ubuntu):
importance: Undecided → Critical
Matthias Klumpp (ximion)
Changed in packagekit (Ubuntu):
assignee: nobody → Matthias Klumpp (ximion)
Changed in packagekit (Ubuntu Jammy):
status: New → In Progress
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

I patched PackageKit from Matthias's upstream commits, and it works as expected now. Attached said patch, will also attach debdiff.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Debdiff as mentioned above

Revision history for this message
Matthias Klumpp (ximion) wrote :

Debian package is available: https://tracker.debian.org/news/1305719/accepted-packagekit-125-2-source-into-unstable/
I forgot to mark this issue as being explicitly closed in the changelog, but I guess Julian can do that when merging the changes into Ubuntu :-)

Changed in packagekit (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: patch
Changed in packagekit:
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package packagekit - 1.2.5-2ubuntu1

---------------
packagekit (1.2.5-2ubuntu1) jammy; urgency=low

  * Merge from Debian unstable (LP: #1961837). Remaining changes:
    - debian/control: Added recommends for packagekit-installer

packagekit (1.2.5-2) unstable; urgency=medium

  * Add fix-single-candidate-pkgid-emission.patch
    - Unblock updates by emitting package-IDs again even if there
      is just one candidate available.

 -- Julian Andres Klode <email address hidden> Wed, 23 Feb 2022 11:10:46 +0100

Changed in packagekit (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Matthias Klumpp (ximion) wrote :

For completeness, a much better and simpler patch is this: https://salsa.debian.org/pkgutopia-team/packagekit/-/blob/0c43611b82879bd71e633af02878d9c80283f7da/debian/patches/01_fix-single-candidate-pkgid-emission.patch
Maybe that will make its way into Ubuntu Jammy too, but it's not as urgent :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.