As of Noble, there is no longer any lsb_release.py module offered for us to import. Instead, we'll either need to open /etc/lsb-release and read out the DISTRIB_CODENAME or subprocess call /usr/bin/lsb_release -cs.
FYI, LSB hasn't been updated since 2015 and is effectively deprecated. Ubuntu seems to be holding onto its corpse, but in the longer run, we should consider moving away from lsb_release.
Refer to the crash in the linux-noble-unprovisioned-gcc-cmake-nightly-packaging job.
As of Noble, there is no longer any
lsb_release.py
module offered for us to import. Instead, we'll either need to open/etc/lsb-release
and read out theDISTRIB_CODENAME
or subprocess call/usr/bin/lsb_release -cs
.Towards #21335.