Minimal test case, unpacking python3-minimal and python3-apt from artful on xenial:
root@lp1768379:~# dpkg --unpack /home/jak/Downloads/python3-minimal_3.6.3-0ubuntu2_amd64.deb
(Reading database ... 25653 files and directories currently installed.)
Preparing to unpack .../python3-minimal_3.6.3-0ubuntu2_amd64.deb ...
Unpacking python3-minimal (3.6.3-0ubuntu2) over (3.5.1-3) ...
Processing triggers for man-db (2.7.5-1) ...
root@lp1768379:~# dpkg --unpack /home/jak/Downloads/python3-apt_1.4.0_beta3build2_amd64.deb
(Reading database ... 25653 files and directories currently installed.)
Preparing to unpack .../python3-apt_1.4.0_beta3build2_amd64.deb ...
/var/lib/dpkg/info/python3-apt.prerm: 6: /var/lib/dpkg/info/python3-apt.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /home/jak/Downloads/python3-apt_1.4.0_beta3build2_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python3-apt.postinst: 6: /var/lib/dpkg/info/python3-apt.postinst: py3compile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/home/jak/Downloads/python3-apt_1.4.0_beta3build2_amd64.deb
Minimal test case, unpacking python3-minimal and python3-apt from artful on xenial:
root@lp1768379:~# dpkg --unpack /home/jak/ Downloads/ python3- minimal_ 3.6.3-0ubuntu2_ amd64.deb minimal_ 3.6.3-0ubuntu2_ amd64.deb ... Downloads/ python3- apt_1.4. 0_beta3build2_ amd64.deb apt_1.4. 0_beta3build2_ amd64.deb ... dpkg/info/ python3- apt.prerm: 6: /var/lib/ dpkg/info/ python3- apt.prerm: py3clean: not found dpkg/tmp. ci/prerm: 6: /var/lib/ dpkg/tmp. ci/prerm: py3clean: not found Downloads/ python3- apt_1.4. 0_beta3build2_ amd64.deb (--unpack): dpkg/info/ python3- apt.postinst: 6: /var/lib/ dpkg/info/ python3- apt.postinst: py3compile: not found jak/Downloads/ python3- apt_1.4. 0_beta3build2_ amd64.deb
(Reading database ... 25653 files and directories currently installed.)
Preparing to unpack .../python3-
Unpacking python3-minimal (3.6.3-0ubuntu2) over (3.5.1-3) ...
Processing triggers for man-db (2.7.5-1) ...
root@lp1768379:~# dpkg --unpack /home/jak/
(Reading database ... 25653 files and directories currently installed.)
Preparing to unpack .../python3-
/var/lib/
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/
dpkg: error processing archive /home/jak/
subprocess new pre-removal script returned error exit status 127
/var/lib/
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/home/