Analysis result
===============

Code and resulting database can be found on
https://github.com/bdrung/bdrung-scripts/tree/lp-2075337-find-affected

122 packages failed to analyze:

```
$ sqlite3 affected.sqlite3 "SELECT section, count(*) from package_affected 
WHERE install_affected IS NULL or (remove_affected IS NULL and remove_duration 
IS NOT NULL) GROUP by section;"
main|6
multiverse|16
restricted|32
universe|68
```

70 source packages are affected:

```
$ sqlite3 affected.sqlite3 "SELECT section, COUNT(DISTINCT source) FROM 
package_affected WHERE install_affected = 1 AND (remove_affected = 1 OR 
remove_affected ISNULL) GROUP BY section;"
main|8
multiverse|2
universe|61
```

```
$ sqlite3 affected.sqlite3 "SELECT source FROM package_affected WHERE 
install_affected = 1 AND (remove_affected = 1 OR remove_affected ISNULL) GROUP 
BY source ORDER BY source;"
a2d
apertium-apy
autopilot
blueman
borgmatic
btchip-python
cloud-init
condor
cpupower-gui
debomatic
dell-recovery
deluge
depthcharge-tools
dhcpy6d
dkimpy-milter
fenrir
galileo
glances
graphite-carbon
grokmirror
guerillabackup
ionit
jupyterhub
liquidctl
localslackirc
logdata-anomaly-miner
lomiri
mailman3
matrix-sydent
mom
mopidy
mpd-sima
nordugrid-arc
notus-scanner
nrpe-ng
nvme-stas
onionprobe
openscap-daemon
ospd-openvas
pagekite
pagure
pglistener
policyd-rate-limit
postfix-mta-sts-resolver
powa-collector
prelude-correlator
prometheus-pgbouncer-exporter
prometheus-xmpp-alerts
pyro5
pyroman
python-rtslib-fb
r4d
razercfg
sgt-launcher
sms4you
supervisor
syncplay
targetcli-fb
timekpr-next
twms
ubiquity
ubuntu-advantage-tools
ubuntu-drivers-common
vanguards
vaultlocker
virtualbox
voctomix-outcasts
walinuxagent
weborf
xdiagnose
```

or 76 binary packages:

```
$ sqlite3 affected.sqlite3 "SELECT section, COUNT(*) FROM package_affected 
WHERE install_affected = 1 AND (remove_affected = 1 OR remove_affected ISNULL) 
GROUP BY section;"
main|10
multiverse|2
universe|64
```

```
$ sqlite3 affected.sqlite3 "SELECT package, source, section, install_version 
FROM package_affected WHERE install_affected = 1 AND (remove_affected = 1 OR 
remove_affected ISNULL) ORDER BY section, package;"
cloud-init|cloud-init|main|24.1.3-0ubuntu3.3
nvme-stas|nvme-stas|main|2.3.1-1
python3-rtslib-fb|python-rtslib-fb|main|2.1.74-0ubuntu5
targetcli-fb|targetcli-fb|main|1:2.1.53-1ubuntu3
ubiquity|ubiquity|main|24.04.5
ubiquity-frontend-debconf|ubiquity|main|24.04.5
ubiquity-frontend-gtk|ubiquity|main|24.04.5
ubuntu-drivers-common|ubuntu-drivers-common|main|1:0.9.7.6ubuntu3
ubuntu-pro-client|ubuntu-advantage-tools|main|32.3.1~24.04
walinuxagent|walinuxagent|main|2.9.1.1-0ubuntu3
r4d|r4d|multiverse|1.7-4
virtualbox|virtualbox|multiverse|7.0.16-dfsg-2ubuntu1
a2d|a2d|universe|2.0.3-2
apertium-apy|apertium-apy|universe|0.11.7-2.1
blueman|blueman|universe|2.3.5-3build1
borgmatic|borgmatic|universe|1.8.3-1
condor|condor|universe|23.4.0+dfsg-1ubuntu4
cpupower-gui|cpupower-gui|universe|0.7.2-2.1ubuntu2
debomatic|debomatic|universe|0.26-3
dell-recovery|dell-recovery|universe|1.66
deluge-web|deluge|universe|2.1.2~dev0+20240121-1
depthcharge-tools|depthcharge-tools|universe|0.6.2-1
dhcpy6d|dhcpy6d|universe|1.2.3-1
dkimpy-milter|dkimpy-milter|universe|1.2.3-1
fenrir|fenrir|universe|1.9.8-1
galileo|galileo|universe|0.5.1-9.1
glances|glances|universe|3.4.0.3+dfsg-1
graphite-carbon|graphite-carbon|universe|1.1.7-1.1
grokmirror|grokmirror|universe|2.0.11-2
guerillabackup|guerillabackup|universe|0.5.0-1
ionit|ionit|universe|0.5.0-1.1
jupyterhub|jupyterhub|universe|3.0.0+ds1-1
liquidctl|liquidctl|universe|1.13.0-2
localslackirc|localslackirc|universe|1.27-1
logdata-anomaly-miner|logdata-anomaly-miner|universe|2.6.1-1
lomiri|lomiri|universe|0.2.1-10build1
mailman3|mailman3|universe|3.3.8-3.1
mailman3-full|mailman3|universe|
matrix-sydent|matrix-sydent|universe|2.5.1-1.1
mom|mom|universe|0.6.0-2.1
mopidy|mopidy|universe|3.4.2-1
mpd-sima|mpd-sima|universe|0.18.2-1
nordugrid-arc-arex|nordugrid-arc|universe|6.18.0-2.2build3
notus-scanner|notus-scanner|universe|22.6.2-1
nrpe-ng|nrpe-ng|universe|0.2.0-1.1
onionprobe|onionprobe|universe|1.1.2+ds-1
openscap-daemon|openscap-daemon|universe|0.1.10-3.1ubuntu3
ospd-openvas|ospd-openvas|universe|22.6.2-1
pagekite|pagekite|universe|1.5.2.201011-2
pagure|pagure|universe|5.11.3+dfsg-2.1
pagure-ev-server|pagure|universe|5.11.3+dfsg-2.1
pagure-milters|pagure|universe|5.11.3+dfsg-2.1
pglistener|pglistener|universe|5.0-2
policyd-rate-limit|policyd-rate-limit|universe|1.0.1.1-2.1
postfix-mta-sts-resolver|postfix-mta-sts-resolver|universe|1.1.2-1.1
powa-collector|powa-collector|universe|1.2.0-2
prelude-correlator|prelude-correlator|universe|5.2.0-1.1
prometheus-pgbouncer-exporter|prometheus-pgbouncer-exporter|universe|1.7-3
prometheus-xmpp-alerts|prometheus-xmpp-alerts|universe|0.5.3-1.1
pyroman|pyroman|universe|0.6.2-1.1
python3-autopilot|autopilot|universe|1.6.1+21.04.20210120-0ubuntu14
python3-btchip|btchip-python|universe|0.1.32-3
python3-pyro5|pyro5|universe|5.14-2
qweborf|weborf|universe|1.0-1build2
razercfg|razercfg|universe|0.42+ds-4
sgt-launcher|sgt-launcher|universe|0.2.8-0ubuntu1
sms4you|sms4you|universe|0.0.7-2
supervisor|supervisor|universe|4.2.5-1
syncplay-server|syncplay|universe|1.7.0+repack1-2
timekpr-next|timekpr-next|universe|0.5.4-1ubuntu3
twms|twms|universe|0.07z+git20201202+bb7c3f8-2
ubiquity-frontend-kde|ubiquity|universe|24.04.5
vanguards|vanguards|universe|0.3.1-2.3
vaultlocker|vaultlocker|universe|1.0.6-0ubuntu1
voctomix-outcasts|voctomix-outcasts|universe|1.0.0-1
xdiagnose|xdiagnose|universe|3.8.10
```

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dh-python in Ubuntu.
https://bugs.launchpad.net/bugs/2075337

Title:
  py3clean fails when using alternate character set

Status in dh-python package in Ubuntu:
  New
Status in python3-defaults package in Ubuntu:
  New
Status in dh-python source package in Noble:
  New
Status in python3-defaults source package in Noble:
  New

Bug description:
  We noticed this in bug 2060769 but think it is a separate issue.

  dh_python3 is putting a py3clean invocation into package prerm
  maintainer scripts. When that runs, it explodes if the system
  character set is for example ISO-8859-1.

  This appears to affect every package for which dh_python3 has inserted
  a call to py3clean into the package prerm.

  python3-minimal 3.12.3-0ubuntu1

  In this reproducer, cloud-init is at 24.1.3-0ubuntu3.3.

  Steps to reproduce:

  $ lxc launch ubuntu:noble rbasak-pro-l8n
  $ lxc shell rbasak-pro-l8n
  # locale-gen fr_FR
  Generating locales (this might take a while)...
    fr_FR.ISO-8859-1... done
  Generation complete.
  # update-locale LANG=fr_FR
  # exit
  # adjust terminal to ISO-8859-1
  $ lxc shell rbasak-pro-l8n
  # apt update && apt install --reinstall cloud-init

  Expected results: success

  Actual results:

  Lecture des listes de paquets... Fait
  Construction de l'arbre des dépendances... Fait
  Lecture des informations d'état... Fait        
  0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 5 non 
mis à jour.
  Il est nécessaire de prendre 598 ko dans les archives.
  Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
  Réception de :1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 
cloud-init all 24.1.3-0ubuntu3.3 [598 kB]
  598 ko réceptionnés en 1s (926 ko/s)
  Préconfiguration des paquets...
  (Lecture de la base de données... 34406 fichiers et répertoires déjà 
installés.)
  Préparation du dépaquetage de .../cloud-init_24.1.3-0ubuntu3.3_all.deb ...
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 210, in <module>
      main()
    File "/usr/bin/py3clean", line 196, in main
      pfiles = set(dpf.from_package(options.package))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/share/python3/debpython/files.py", line 54, in from_package
      stdout = str(stdout, 'utf-8')
               ^^^^^^^^^^^^^^^^^^^^
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2417: 
invalid continuation byte
  dpkg: avertissement: le sous-processus ancien paquet cloud-init script 
pre-removal a renvoyé un état de sortie d'erreur 1
  dpkg: tentative d'exécution du script du nouveau paquet à la place...
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 210, in <module>
      main()
    File "/usr/bin/py3clean", line 196, in main
      pfiles = set(dpf.from_package(options.package))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/share/python3/debpython/files.py", line 54, in from_package
      stdout = str(stdout, 'utf-8')
               ^^^^^^^^^^^^^^^^^^^^
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2417: 
invalid continuation byte
  dpkg: erreur de traitement de l'archive 
/var/cache/apt/archives/cloud-init_24.1.3-0ubuntu3.3_all.deb (--unpack) :
   le sous-processus nouveau cloud-init paquet pre-removal script a renvoyé un 
état de sortie d'erreur 1
  dmesg: read kernel buffer failed: Operation not permitted
                                                           Traceback (most 
recent call last):
    File "/usr/bin/py3compile", line 323, in <module>
      main()
    File "/usr/bin/py3compile", line 302, in main
      compile(files, versions,
    File "/usr/bin/py3compile", line 185, in compile
      for fn, versions_to_compile in filter_files(files, e_patterns, versions):
    File "/usr/bin/py3compile", line 128, in filter_files
      for fpath in files:
    File "/usr/share/python3/debpython/files.py", line 71, in filter_public
      for fn in files:
    File "/usr/share/python3/debpython/files.py", line 54, in from_package
      stdout = str(stdout, 'utf-8')
               ^^^^^^^^^^^^^^^^^^^^
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2417: 
invalid continuation byte
  dpkg: erreur lors du nettoyage:
   le sous-processus paquet cloud-init script post-installation installé a 
renvoyé un état de sortie d'erreur 1
  Des erreurs ont été rencontrées pendant l'exécution :
   /var/cache/apt/archives/cloud-init_24.1.3-0ubuntu3.3_all.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-python/+bug/2075337/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to