Ubuntu MATE 24.04.1 LTS xdiagnose package update failure

I just ran an apt-get update/upgrade cycle tonight. Version is 24.04.1 LTS running in a VirtualBox VM. The upgrade found one package to update: xdiagnose. This update failed with the following error reported:

The following packages will be upgraded:
  xdiagnose
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/57.5 kB of archives.
After this operation, 2,048 B disk space will be freed.
Do you want to continue? [Y/n] Y
Supported
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-bu7aib3l/@' in '/tmp/apt-btrfs-snapshot-mp-bu7aib3l/@apt-snapshot-2024-11-29_01:51:21'
(Reading database ... 413856 files and directories currently installed.)
Preparing to unpack .../xdiagnose_3.8.10ubuntu0.1_all.deb ...
Unpacking xdiagnose (3.8.10ubuntu0.1) over (3.8.10) ...
dpkg: error processing archive /var/cache/apt/archives/xdiagnose_3.8.10ubuntu0.1_all.deb (--unpack):
 unable to open '/usr/lib/systemd/system/failsafe-x.service.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
         /usr/lib/python3/dist-packages/xdiagnose/applet.py:185: SyntaxWarning: invalid escape sequence '\w'
  re_kparam = re.compile("^([\w\.]+)=(.*)")
/usr/lib/python3/dist-packages/xdiagnose/applet.py:195: SyntaxWarning: invalid escape sequence '\w'
  re_kparam = re.compile("^([\w\.]+)=(.*)")
/usr/lib/python3/dist-packages/xdiagnose/applet.py:324: SyntaxWarning: invalid escape sequence '\['
  re_xorg_error = re.compile("^\[\s*([\d\.]+)\] \(EE\) (.*)$")
/usr/lib/python3/dist-packages/xdiagnose/applet.py:325: SyntaxWarning: invalid escape sequence '\['
  re_dmesg_error = re.compile("^\[\s*(\d+\.\d+)\] (.*(?:BUG|ERROR|WARNING).*)$")
/usr/lib/python3/dist-packages/xdiagnose/applet.py:326: SyntaxWarning: invalid escape sequence '\d'
  re_jockey_error = re.compile("^(\d+\-\d+-\d+ \d+:\d+:\d+,\d+) ERROR: (.*)$")
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:105: SyntaxWarning: invalid escape sequence '\s'
  re_param = re.compile("^\s*(\w+)\s*"+delim+"\s*(.*)")
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:105: SyntaxWarning: invalid escape sequence '\s'
  re_param = re.compile("^\s*(\w+)\s*"+delim+"\s*(.*)")
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:133: SyntaxWarning: invalid escape sequence '\s'
  p = re.compile("^\s*"+key+"\s*"+delim+"\s*(\"?)(.*)(\"?)")
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:133: SyntaxWarning: invalid escape sequence '\s'
  p = re.compile("^\s*"+key+"\s*"+delim+"\s*(\"?)(.*)(\"?)")
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:133: SyntaxWarning: invalid escape sequence '\s'
  p = re.compile("^\s*"+key+"\s*"+delim+"\s*(\"?)(.*)(\"?)")
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:145: SyntaxWarning: invalid escape sequence '\s'
  p = re.compile("^\s*"+key+"\s*"+delim)
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:145: SyntaxWarning: invalid escape sequence '\s'
  p = re.compile("^\s*"+key+"\s*"+delim)
/usr/lib/python3/dist-packages/xdiagnose/config_update.py:175: SyntaxWarning: invalid escape sequence '\o'
  'BAR':                        'f(1&&2*$i^2) # \o/',
/usr/lib/python3/dist-packages/xdiagnose/edid.py:67: SyntaxWarning: invalid escape sequence '\('
  re_head = re.compile("\(II\) .*\(\d+\): EDID \(in hex\):$")
/usr/lib/python3/dist-packages/xdiagnose/edid.py:68: SyntaxWarning: invalid escape sequence '\('
  re_edid = re.compile("\(II\) .*\(\d+\):\s\t([0-9a-f]{32})$")
/usr/lib/python3/dist-packages/xdiagnose/edid.py:287: SyntaxWarning: invalid escape sequence '\('
  regex = re.compile("\(II\) .*\(\d+\):\s+(.*)$")
/usr/lib/python3/dist-packages/xdiagnose/pci_devices.py:97: SyntaxWarning: invalid escape sequence '\/'
  PciDevice('i945g',      '(8086:2772|945G[ \/])',  [INTEL], gen='i945',      opengl='1.4' ),
/usr/lib/python3/dist-packages/xdiagnose/pci_devices.py:99: SyntaxWarning: invalid escape sequence '\/'
  PciDevice('i945gm',     '(8086:27a2|945GM[ \/])', [INTEL], gen='i945',      opengl='1.4' ),
/usr/lib/python3/dist-packages/xdiagnose/utils/config.py:16: SyntaxWarning: invalid escape sequence '\)'
  '''Yet another INI-style config file parser.
/usr/lib/python3/dist-packages/xdiagnose/xorglog.py:94: SyntaxWarning: invalid escape sequence '\('
  m = re.search('\(II\) Loading.*modules\/drivers\/(.+)_drv\.so', line)
Errors were encountered while processing:
 /var/cache/apt/archives/xdiagnose_3.8.10ubuntu0.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

[UPDATE] Looks like this is a known bug:

[SRU] Failed to upgrade xdiagnose (3.8.10ubuntu1) over (3.8.10)

3 Likes