Package: python3.8-minimal
Version: 3.8.6-1
python3.8-minimal fails during configuration (meaning also that reportbug
can't be installed) within a container (docker). I do not know if this
problem is limited to containers. This is reproduced every time with
following minimal Dockerfile:
FROM debian:bullseye-slim
RUN apt-get update
RUN apt-get install python3.8-minimal -y
This fails with:
Setting up python3.8-minimal (3.8.6-1) ...
Traceback (most recent call last):
File "/usr/lib/python3.8/py_compile.py", line 215, in <module>
sys.exit(main())
File "/usr/lib/python3.8/py_compile.py", line 207, in main
compile(filename, doraise=True)
File "/usr/lib/python3.8/py_compile.py", line 172, in compile
importlib._bootstrap_external._write_atomic(cfile, bytecode, mode)
File "<frozen importlib._bootstrap_external>", line 126, in _write_atomic
PermissionError: [Errno 13] Permission denied:
'/usr/lib/python3.8/__pycache__/__future__.cpython-38.pyc.139810828123920'
dpkg: error processing package python3.8-minimal (--configure):
installed python3.8-minimal package post-installation script subprocess
returned error exit status 1
Errors were encountered while processing:
python3.8-minimal
I also reproduced with other base images such as FROM ubuntu:focal