Problem

[German] Recently an apt upgrade aborted because there was a problem in a package with the scripts that were supposed to be executed after the installation. The whole thing looked like this:

So the problem here was in the pengwin-base package.

Solution

First I changed to the directory /var/lib/dpkg/info and searched for the file pengwin-base.postinst.

Now I opened the file in an editor and commented out the set statement.

I then ran an apt --fix-broken install, which allowed the package to be upgraded.
 
Lastly, uncomment the set -e and everything is up and running.