Package: nftables
Version: 0.9.0-2

Hello,

Trying to install iptables in a container, nftables installation fails
because preinst / postrm scripts use /bin/bash, which is not present
in the container and not a dependency

apt logs extract:
~~~~~~~~~~~~~~~~~~~~~~~~
Preparing to unpack .../08-nftables_0.9.0-2_amd64.deb ...
dpkg (subprocess): unable to execute new nftables package
pre-installation script (/var/lib/dpkg/tmp.ci/preinst): No such file
or directory
dpkg: error processing archive
/tmp/apt-dpkg-install-LOgXvP/08-nftables_0.9.0-2_amd64.deb (--unpack):
 new nftables package pre-installation script subprocess returned
error exit status 2
dpkg (subprocess): unable to execute new nftables package post-removal
script (/var/lib/dpkg/tmp.ci/postrm): No such file or directory
dpkg: error while cleaning up:
 new nftables package post-removal script subprocess returned error
exit status 2
~~~~~~~~~~~~~~~~~~~~~~~~

beginning of preinst:
~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash

set -e

dpkg-maintscript-helper rm_conffile \
    /etc/nftables/bridge-filter \
    0.5+snapshot20151106-1 nftables -- "$@"
~~~~~~~~~~~~~~~~~~~~~~~~

Etienne

Reply via email to