[BPO] distro-info/0.18ubuntu0.18.04.1 from bionic

Bug #1862305 reported by Christian Ehrhardt 
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Xenial Backports
Won't Fix
Undecided
Unassigned
distro-info (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

[Impact]

 * The current distro-info in xenial-backports is straight 0.18 from Debian
 * Later SRU changes to distro-info (LP: 1808038) changed the data format in distro-info-data
 * Due to that the package in xenial-backports is broken
 * A discussion happened on #ubuntu-devel (teward/mapreri/paelzer) how to best resolve
 * A backport of the current bionic-updates was considered the best option

[Scope]

 * backport 0.18ubuntu0.18.04.1 from bionic-updates to xenial-backports

[Other Info]

 * Former title was "distro-info in xenial backports needs a newer distro-info-data and versioned dependency"

---

Hi,
askubuntu [1] made me aware of this issue.

What I see is:
root@x:~# apt-cache policy distro-info distro-info-data
distro-info:
  Installed: (none)
  Candidate: 0.14ubuntu0.1
  Version table:
     0.18~ubuntu16.04.1 100
        100 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
     0.14ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     0.14build1 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
distro-info-data:
  Installed: 0.28ubuntu0.13
  Candidate: 0.28ubuntu0.13
  Version table:
 *** 0.28ubuntu0.13 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     0.28 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

The distro-info in backports is this atm: https://launchpad.net/ubuntu/+source/distro-info/0.18~ubuntu16.04.1

The problem is that this is non-functional with the `distro-info-data` in Xenial.

$ apt install distro-info=0.18~ubuntu16.04.1
$ distro-info --lts
ubuntu-distro-info: Header `version,codename,series,created,release,eol,eol-server,eol-esm' in file `/usr/share/distro-info/ubuntu.csv' does not match excatly `version,codename,series,created,release,eol,eol-server'.

For distro-info=0.18~ubuntu16.04.1 to work there should:
- also be a distro-info-data in backports
- the distro-info=0.18~ubuntu16.04.1 probably needs a versioned dependency on the newer distro-info

[1]: https://askubuntu.com/questions/1208133/virtual-machine-with-uvitools-problem

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I subscribed Laney as I see his name on the backport upload.
I beg your pardon if you are not really involved in this.

Changed in distro-info (Ubuntu):
status: New → Invalid
Revision history for this message
Dan Streetman (ddstreet) wrote :

Hello,

the backports process has recently been updated, please see the new documentation:
https://wiki.ubuntu.com/UbuntuBackports

I'm closing this bug, but please feel free to open a new bug (or reopen this bug) using the new process, if appropriate.

Changed in xenial-backports:
status: New → Won't Fix
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Sadly we see more fallout due to that still being broken.
And the efforts around the new backport process dried out.

TBH Removing distro-info from backports seems right (as it is dysfunctional) but not helpful to anyone already having it installed.

The next option that comes to mind is update distro-info in xenial-backports to be compatible to the new distro-info-data | 0.28ubuntu0.18 | xenial-updates
For example we could replace it with the Ubuntu version from 0.18ubuntu0.18.04.1 bionic.

But is the xenial-backports pocket is closed, as it is over the initial 5 years?
@teward WDYT - Could we even still accept that to xenial-backports or would you prefer anything else?

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Download full text (6.7 KiB)

Making the great discussion on #ubuntu-devel discoverable later by moving it here as well:

[16:27] <cpaelzer> teward: if I might ask what do you think of https://bugs.launchpad.net/ubuntu/+source/distro-info/+bug/1862305 ?
[16:41] <teward> cpaelzer: i'll have to play catchup but email <email address hidden> with the request for our review / input. backport team meeting is tomorrow so all three of us in backporters can chime in
[16:42] <cpaelzer> teward: my question is more, would you still take anything for xenial? before I prepare and it is wasted effort
[17:50] <mapreri> cpaelzer: well, wasn't that the fault of whoever thought that adding columns to the csv in a stable update was a good idea? That had to be fixed in a distro-info SRU long ago, not in bpo now....
[17:50] <mapreri> I don't even know if that helps anybody really. /cc teward
[18:23] <cpaelzer> mapreri: it was fixed in a distro-info sru, just the backport is left behind
[18:28] <teward> cpaelzer: then i would purge the backport. if it's already been SRU-fixed then the SRU should be 'superior' to the backport.
[18:28] <teward> (this is why i wanted to play catchup)
[18:29] <teward> mapreri: i don't think adding a newer version to backports would solve tis if the SRU has already fixed the problem. In which case I should just poke AAs for removal.
[18:30] <teward> but that will require anyone using the backports version to do a manual downgrade
[18:30] <teward> since apt is picky about that
[18:33] <teward> cpaelzer: ^^ the only way to fix it if we remove backports version which is having this problem is that manual downgrade to what's in xenial-updates. if there's no objection to that then we can poke the AAs for removal of the backport
[18:37] <mapreri> cpaelzer: ah, I see, I missed this part.
[18:37] <mapreri> teward: that would not fix systems that are currently running that.
[18:38] <teward> mapreri: correct. but does it make sense to continue to do this in backports if SRU is already ahead? Because Xenial is beyond standard support cycle this sounds like something that *should* be solved in ESM/pro
[18:38] <mapreri> cpaelzer: I think I would be fine, in this case, to backport what is currently in bionic-updates.
[18:38] <mapreri> which seems to be a bugfix-only update on top of what is currently in xenial-backports
[18:39] <teward> that's also an option
[18:39] <mapreri> all of this is assuming cpaelzer would prepare the update, of course :3
[18:39] <teward> :P
[18:39] <teward> and then we should probably *freeze* Xenial officially for that in -updates, etc. and any more Xenial updates need to go via pro/esm
[18:40] <teward> (my opinion)
[18:40] <mapreri> teward: In my mind, xenial is already in that state, this is already an exception handling to me.
[18:40] <teward> mapreri: then is there a reason we don't do this 'backport' of the higher version in Pro/ESM which would override -backports entirely?
[18:41] <teward> anyone still using Xenial without pro/esm is "frozen" then if we adopt this logic
[18:41] <mapreri> teward: how do I check what's in ESM? LP in xenial is only showing lower versions.
[18:41] <teward> granted then we need Canonical to do the upload a...

Read more...

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

xenial-updates:
ii distro-info 0.14ubuntu0.2
ii distro-info-data 0.28ubuntu0.18

root@x-bpotest:~# distro-info --supported-esm
xenial
bionic
focal
root@x-bpotest:~# distro-info --lts
focal

Going to the bad version in backports

$ apt install distro-info/xenial-backports

As expected it doesn't know about --supported-esm

# distro-info --supported-esm
ubuntu-distro-info: unrecognized option `--supported-esm'

But even --lts fails due to the data format change.

Update to the build from xenial-unapproved
=> https://launchpadlibrarian.net/689166277/distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_source.changes
Build in sbuild against xenial-backports fine, just the expected non fatal Lintian warnings.

# apt install ./distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'distro-info' instead of './distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb'
The following packages were automatically installed and are no longer required:
  gettext-base libasprintf0v5 libfreetype6 libpng12-0
Use 'apt autoremove' to remove them.
Suggested packages:
  shunit2
The following packages will be upgraded:
  distro-info
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /root/distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb distro-info amd64 0.18ubuntu0.18.04.1~bpo18.04.1 [20.3 kB]
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 13054 files and directories currently installed.)
Preparing to unpack .../distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb ...
Unpacking distro-info (0.18ubuntu0.18.04.1~bpo18.04.1) over (0.18~ubuntu16.04.1) ...
Setting up distro-info (0.18ubuntu0.18.04.1~bpo18.04.1) ...

With that things work again.

root@x-bpotest:~# distro-info --lts
focal
root@x-bpotest:~# distro-info --supported-esm
xenial
bionic
focal

Review of the changes:
1. The debdiff to 0.18ubuntu0.18.04.1 in current bionic-updates
  $ debdiff distro-info_0.18ubuntu0.18.04.1.dsc distro-info_0.18ubuntu0.18.04.1~bpo18.04.1.dsc
  - set distro-info-data that has been the backport of esm data in xenial-updates
  - use older debian/compat
  - changelog referring to this bug
  => That should be save and just right
2. The debdiff to the 0.18~ubuntu16.04.1 in current xenial-backports
  $ debdiff distro-info_0.18~ubuntu16.04.1.dsc distro-info_0.18ubuntu0.18.04.1~bpo18.04.1.dsc
  - same as above
  - support for the milestone eol-esm and add filters for supported-esm (LP: #1808038)
  => which is exactly what we want

So yes, this LGTM, please accept it to xenial-backports

description: updated
summary: - distro-info in xenial backports needs a newer distro-info-data and
- versioned dependency
+ [BPO] distro-info/0.18ubuntu0.18.04.1 from bionic
description: updated
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.