Package: python3-tk Followup-For: Bug #1031909 Dear Maintainer,
Please find a merge request on Salsa to resolve this issue for future versions of python3-tk at https://salsa.debian.org/cpython-team/python3-stdlib/-/merge_requests/5 This has been tested by installing the previous version of the package reported by the user (python3-tk_3.10.8-1) and then manually invoking the bytecode compilation[1] steps from the dpkg 'configure' script, before upgrading to the current version of the package (3.11.2-2). Without the fix applied to the previous package, the following output appears: Unpacking python3-tk:amd64 (3.11.2-2) over (3.10.8-1) ... dpkg: warning: unable to delete old directory '/usr/lib/python3.10/tkinter': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/python3.10': Directory not empty Setting up python3-tk:amd64 (3.11.2-2) ... With the fix applied, the following output appears: Unpacking python3-tk:amd64 (3.11.2-2) over (3.10.8-1) ... Setting up python3-tk:amd64 (3.11.2-2) ... Thanks, James [1] - https://salsa.debian.org/cpython-team/python3-stdlib/-/blob/3.10.8-1/debian/python3-tk.postinst.in#L9-21