Software Updates lists phased Ubuntu updates that PackageKit cannot install
Explain what happens
- On Ubuntu Server 26.04, refresh Software Updates in Cockpit.
- Ubuntu has two updates which are currently being held back by APT due to phased updates:
python3-software-properties software-properties-common
apt upgrade --dry-run correctly reports these two packages as not being upgraded.
apt policy python3-software-properties reports:
Installed: 0.120 Candidate: 0.120.1
0.120.1 500 (phased 0%)
- Cockpit nevertheless lists version 0.120.1 of both packages as available updates and enables "Install all updates".
In my initial test, Cockpit showed 49 available updates in total. APT considered 47 of these eligible for installation and held back only the two packages above due to phasing.
- Clicking "Install all updates" fails with:
Package id 'python3-software-properties;0.120.1;all;ubuntu-resolute-updates-main' is not available as an update candidate
The entire update transaction is aborted. None of the other 47 non-phased updates are installed.
- I then installed the 47 non-phased updates successfully using
apt upgrade. After this, Cockpit showed only the two phased packages as available.
Clicking "Install all updates" again produced the same error.
Expected behavior:
Cockpit/PackageKit should handle Ubuntu phased updates consistently with APT. Packages which are currently excluded by phasing should not prevent other eligible updates from being installed.
Ideally, phased packages should not be presented as currently installable updates. At minimum, their presence should not cause the entire "Install all updates" transaction to fail.
Actual behavior:
Cockpit presents phased packages as available updates. When "Install all updates" is selected, PackageKit considers the phased package version unavailable as an update candidate and aborts the entire transaction, including updates which APT considers eligible for installation.
This was reproduced both before and after upgrading PackageKit from 1.3.4-3ubuntu1.1 to 1.3.4-3ubuntu1.2.
Environment:
Ubuntu Server 26.04 LTS Cockpit 360-1 PackageKit 1.3.4-3ubuntu1.2
Version of Cockpit
Cockpit 360-1
Where is the problem in Cockpit?
Software updates
Server operating system
Ubuntu
Server operating system version
Ubuntu Server 26.04 LTS
What browsers are you using?
Chrome
System log
Source: cockpit-project/cockpit