Open uday1kiran opened 1 year ago
I got the same error when combining --after-remove
and --after-upgrade
. If I use just --after-remove
, it works, but when apt install new-package
(upgrade), it seems my postrm (after-remove) script runs, which messes the installation. Hm.
That's on Debian Bookworm with dpkg 1.21.22 and apt 2.6.1.
For testing, I created a basic command.
fpm -s empty -t deb -n test --after-install ./tmp/post-install.sh
post-install.sh content is very basic used for testing.
dpkg: error processing package test (--configure): installed test package post-installation script subprocess returned error exit status 2 Errors were encountered while processing: test E: Sub-process /usr/bin/dpkg returned an error code (1)