Comment 12 for bug 1682934

Revision history for this message
Adam Conrad (adconrad) wrote : Re: package python3 3.5.1-4 failed to install/upgrade: pre-dependency problem - not installing python3

The problem here is that python's postinst scripts call python without a qualified path:

(base)adconrad@nosferatu:~/py/python3.5-3.5.3$ rgrep '@PVER@ -E'
debian/libPVER-testsuite.postinst.in: @PVER@ -E -S /usr/lib/@PVER@/py_compile.py $files
debian/libPVER-testsuite.postinst.in: @PVER@ -E -S -O /usr/lib/@PVER@/py_compile.py $files
debian/PVER-dbg.postinst.in: @PVER@ -E -S /usr/lib/@PVER@/py_compile.py $files
debian/PVER-dbg.postinst.in: @PVER@ -E -S -O /usr/lib/@PVER@/py_compile.py $files
debian/PVER-venv.postinst.in: @PVER@ -E -S /usr/lib/@PVER@/py_compile.py $files
debian/PVER-venv.postinst.in: @PVER@ -E -S -O /usr/lib/@PVER@/py_compile.py $files
debian/PVER-minimal.postinst.in: @PVER@ -E -S /usr/lib/@PVER@/py_compile.py $files
debian/PVER-minimal.postinst.in: @PVER@ -E -S -O /usr/lib/@PVER@/py_compile.py $files
debian/PVER.postinst.in: @PVER@ -E -S /usr/lib/@PVER@/py_compile.py $files
debian/PVER.postinst.in: @PVER@ -E -S -O /usr/lib/@PVER@/py_compile.py $files

All of those should have /usr/bin prepended to make sure we're getting the *right* python. Odds are this same bug is in all python versions (or, at least, all python3 versions), given they likely share common packaging, as evidenced by the magic @PVER@ substitution.