you seem to have some problem with /usr/bin/deb-systemd-invoke, which is a perl script, but it seems to be getting called by /bin/sh. You should try reinstalling init-system-helpers to fix any problem with your script, and/or if you made any changes yourself manually that may be causing the problem.
$ sudo apt --reinstall install init-system-helpers ** Package changed: fprintd (Ubuntu) => init-system-helpers (Ubuntu) ** Changed in: init-system-helpers (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1933188 Title: package libpam-fprintd:amd64 1.90.9-1~ubuntu20.04.1 failed to install/upgrade: installed libpam-fprintd:amd64 package post- installation script subprocess returned error exit status 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/init-system-helpers/+bug/1933188/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs