Package: python3-lib2to3 Version: 3.7.2-1 Severity: normal
Hi. Upon upgrading python 3.7 and removing 3.6 the following happens: Removing libpython3.6:amd64 (3.6.8~rc1-1) ... Removing python3.6 (3.6.8~rc1-1) ... Removing libpython3.6-stdlib:amd64 (3.6.8~rc1-1) ... Removing python3.6-minimal (3.6.8~rc1-1) ... Unlinking and removing bytecode for runtime python3.6 Removing libpython3.6-minimal:amd64 (3.6.8~rc1-1) ... (Reading database ... 538427 files and directories currently installed.) Preparing to unpack .../0-python3.7-dev_3.7.2-1_amd64.deb ... Unpacking python3.7-dev (3.7.2-1) over (3.7.2~rc1-1) ... Preparing to unpack .../1-libpython3.7-dev_3.7.2-1_amd64.deb ... Unpacking libpython3.7-dev:amd64 (3.7.2-1) over (3.7.2~rc1-1) ... Preparing to unpack .../2-libpython3.7_3.7.2-1_amd64.deb ... Unpacking libpython3.7:amd64 (3.7.2-1) over (3.7.2~rc1-1) ... Preparing to unpack .../3-python3-lib2to3_3.7.2-1_all.deb ... Unpacking python3-lib2to3 (3.7.2-1) over (3.7.1-1) ... dpkg: warning: unable to delete old directory '/usr/lib/python3.6/lib2to3/pgen2': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/python3.6/lib2to3/fixes': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/python3.6/lib2to3': Directory not empty Preparing to unpack .../4-python3.7_3.7.2-1_amd64.deb ... Unpacking python3.7 (3.7.2-1) over (3.7.2~rc1-1) ... Preparing to unpack .../5-python3.7-minimal_3.7.2-1_amd64.deb ... Unpacking python3.7-minimal (3.7.2-1) over (3.7.2~rc1-1) ... Preparing to unpack .../6-libpython3.7-minimal_3.7.2-1_amd64.deb ... Unpacking libpython3.7-minimal:amd64 (3.7.2-1) over (3.7.2~rc1-1) ... Preparing to unpack .../7-libpython3.7-stdlib_3.7.2-1_amd64.deb ... Unpacking libpython3.7-stdlib:amd64 (3.7.2-1) over (3.7.2~rc1-1) ... Preparing to unpack .../8-python3-distutils_3.7.2-1_all.deb ... Unpacking python3-distutils (3.7.2-1) over (3.7.1-1) ... dpkg: warning: unable to delete old directory '/usr/lib/python3.6/distutils/command': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/python3.6/distutils': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/python3.6': Directory not empty ... These files: /usr/lib/python3.6 ├── distutils │ ├── command │ │ └── __pycache__ │ │ ├── bdist.cpython-36.pyc │ │ ├── bdist_dumb.cpython-36.pyc │ │ ├── bdist_msi.cpython-36.pyc │ │ ├── bdist_rpm.cpython-36.pyc │ │ ├── bdist_wininst.cpython-36.pyc │ │ ├── build_clib.cpython-36.pyc │ │ ├── build.cpython-36.pyc │ │ ├── build_ext.cpython-36.pyc │ │ ├── build_py.cpython-36.pyc │ │ ├── build_scripts.cpython-36.pyc │ │ ├── check.cpython-36.pyc │ │ ├── clean.cpython-36.pyc │ │ ├── config.cpython-36.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── install.cpython-36.pyc │ │ ├── install_data.cpython-36.pyc │ │ ├── install_egg_info.cpython-36.pyc │ │ ├── install_headers.cpython-36.pyc │ │ ├── install_lib.cpython-36.pyc │ │ ├── install_scripts.cpython-36.pyc │ │ ├── register.cpython-36.pyc │ │ ├── sdist.cpython-36.pyc │ │ └── upload.cpython-36.pyc │ └── __pycache__ │ ├── archive_util.cpython-36.pyc │ ├── bcppcompiler.cpython-36.pyc │ ├── ccompiler.cpython-36.pyc │ ├── cmd.cpython-36.pyc │ ├── config.cpython-36.pyc │ ├── core.cpython-36.pyc │ ├── cygwinccompiler.cpython-36.pyc │ ├── debug.cpython-36.pyc │ ├── dep_util.cpython-36.pyc │ ├── dir_util.cpython-36.pyc │ ├── dist.cpython-36.pyc │ ├── errors.cpython-36.pyc │ ├── extension.cpython-36.pyc │ ├── fancy_getopt.cpython-36.pyc │ ├── filelist.cpython-36.pyc │ ├── file_util.cpython-36.pyc │ ├── log.cpython-36.pyc │ ├── msvc9compiler.cpython-36.pyc │ ├── _msvccompiler.cpython-36.pyc │ ├── msvccompiler.cpython-36.pyc │ ├── spawn.cpython-36.pyc │ ├── sysconfig.cpython-36.pyc │ ├── text_file.cpython-36.pyc │ ├── unixccompiler.cpython-36.pyc │ ├── util.cpython-36.pyc │ └── versionpredicate.cpython-36.pyc └── lib2to3 ├── fixes │ └── __pycache__ │ ├── fix_apply.cpython-36.pyc │ ├── fix_asserts.cpython-36.pyc │ ├── fix_basestring.cpython-36.pyc │ ├── fix_buffer.cpython-36.pyc │ ├── fix_dict.cpython-36.pyc │ ├── fix_except.cpython-36.pyc │ ├── fix_exec.cpython-36.pyc │ ├── fix_execfile.cpython-36.pyc │ ├── fix_exitfunc.cpython-36.pyc │ ├── fix_filter.cpython-36.pyc │ ├── fix_funcattrs.cpython-36.pyc │ ├── fix_future.cpython-36.pyc │ ├── fix_getcwdu.cpython-36.pyc │ ├── fix_has_key.cpython-36.pyc │ ├── fix_idioms.cpython-36.pyc │ ├── fix_import.cpython-36.pyc │ ├── fix_imports2.cpython-36.pyc │ ├── fix_imports.cpython-36.pyc │ ├── fix_input.cpython-36.pyc │ ├── fix_intern.cpython-36.pyc │ ├── fix_isinstance.cpython-36.pyc │ ├── fix_itertools.cpython-36.pyc │ ├── fix_itertools_imports.cpython-36.pyc │ ├── fix_long.cpython-36.pyc │ ├── fix_map.cpython-36.pyc │ ├── fix_metaclass.cpython-36.pyc │ ├── fix_methodattrs.cpython-36.pyc │ ├── fix_ne.cpython-36.pyc │ ├── fix_next.cpython-36.pyc │ ├── fix_nonzero.cpython-36.pyc │ ├── fix_numliterals.cpython-36.pyc │ ├── fix_operator.cpython-36.pyc │ ├── fix_paren.cpython-36.pyc │ ├── fix_print.cpython-36.pyc │ ├── fix_raise.cpython-36.pyc │ ├── fix_raw_input.cpython-36.pyc │ ├── fix_reduce.cpython-36.pyc │ ├── fix_reload.cpython-36.pyc │ ├── fix_renames.cpython-36.pyc │ ├── fix_repr.cpython-36.pyc │ ├── fix_set_literal.cpython-36.pyc │ ├── fix_standarderror.cpython-36.pyc │ ├── fix_sys_exc.cpython-36.pyc │ ├── fix_throw.cpython-36.pyc │ ├── fix_tuple_params.cpython-36.pyc │ ├── fix_types.cpython-36.pyc │ ├── fix_unicode.cpython-36.pyc │ ├── fix_urllib.cpython-36.pyc │ ├── fix_ws_comma.cpython-36.pyc │ ├── fix_xrange.cpython-36.pyc │ ├── fix_xreadlines.cpython-36.pyc │ ├── fix_zip.cpython-36.pyc │ └── __init__.cpython-36.pyc ├── pgen2 │ └── __pycache__ │ ├── conv.cpython-36.pyc │ ├── driver.cpython-36.pyc │ ├── grammar.cpython-36.pyc │ ├── __init__.cpython-36.pyc │ ├── literals.cpython-36.pyc │ ├── parse.cpython-36.pyc │ ├── pgen.cpython-36.pyc │ ├── token.cpython-36.pyc │ └── tokenize.cpython-36.pyc └── __pycache__ ├── btm_matcher.cpython-36.pyc ├── btm_utils.cpython-36.pyc ├── fixer_base.cpython-36.pyc ├── fixer_util.cpython-36.pyc ├── __init__.cpython-36.pyc ├── __main__.cpython-36.pyc ├── main.cpython-36.pyc ├── patcomp.cpython-36.pyc ├── pygram.cpython-36.pyc ├── pytree.cpython-36.pyc └── refactor.cpython-36.pyc seem to be not cleaned up properly and left back forever: # dpkg -S /usr/lib/python3.6/distutils/command/__pycache__/build_py.cpython-36.pyc dpkg-query: no path found matching pattern /usr/lib/python3.6/distutils/command/__pycache__/build_py.cpython-36.pyc Any ideas? Chris. -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_DE.UTF-8, LC_CTYPE=en_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python3-lib2to3 depends on: ii python3 3.7.1-3 python3-lib2to3 recommends no packages. python3-lib2to3 suggests no packages. -- no debconf information