Mine
public text v1 · immutable(Reading database ... 45481 files and directories currently installed.)
Removing nginx ...
dpkg (subprocess): unable to execute pre-removal script: Exec format error
dpkg: error processing nginx (--remove):
subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)