For reference for myself and anyone else who happens upon the error E: Internal Error, Could not perform immediate configuration (2) on initramfs-tools when trying to upgrade a Linux machine, it can be resolved using:
cd /var/cache/apt/archives
sudo dpkg -i --force-all initramfs-tools*
sudo apt-get -f install