Phased updates not supported by apt test from hobbit-plugins packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hobbit-plugins (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When a package phased update is installed, the apt test reports it as "not installed from apt repositories".
It appears the Perl regexp to test packages origin matches with non-phased updates, but not with phased updates.
As per line 228, the package origin is checked using 'apt-cache policy' output.
As per 'apt-cache policy $package_name$' output, phased updates contains extra text which does not match with the regexp.
Non-phased update details as per 'apt-cache policy firefox':
firefox:
Installé : 1:1snap1-0ubuntu2
Candidat : 1:1snap1-0ubuntu2
Table de version :
*** 1:1snap1-0ubuntu2 500
500 http://
100 /var/lib/
Phased update details as per 'apt-cache policy grub2-common':
grub2-common:
Installé : 2.06-2ubuntu7.1
Candidat : 2.06-2ubuntu7.1
Table de version :
*** 2.06-2ubuntu7.1 500 (phased 51%)
500 http://
100 /var/lib/
2.06-2ubuntu7 500
500 http://
The difference is here:
Non-phased:
*** 1:1snap1-0ubuntu2 500
Phased:
*** 2.06-2ubuntu7.1 500 (phased 51%)
I found the regexp to modify resides at line 250 in /usr/lib/
if (/^ (?: |\*\*\*) (\S*[^\s:]) (\d+)$/) {
I wrote, tested and validated the replacement regexp to match with both non-phased and phased updates:
if (/^ (?: |\*\*\*) (\S*[^\s:]) (\d+)( \(phased (\d+)%\))?$/){
So please consider updating the /usr/lib/
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: hobbit-plugins 20201127 [modified: usr/lib/
ProcVersionSign
Uname: Linux 5.15.0-58-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckR
Date: Tue Jan 17 10:05:57 2023
InstallationDate: Installed on 2019-04-28 (1359 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: hobbit-plugins
UpgradeStatus: Upgraded to jammy on 2022-09-07 (131 days ago)
modified.
modified.
modified.
mtime.conffile.
mtime.conffile.
mtime.conffile.
Status changed to 'Confirmed' because the bug affects multiple users.