It seems that you've run out of memory when trying build a new initramfs.
Setting up initramfs-tools (0.98.8ubuntu3.1) ... update-initramfs: deferring update (trigger activated) lzma: Cannot allocate memory dpkg: error processing initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1
It seems that you've run out of memory when trying build a new initramfs.
Setting up initramfs-tools (0.98.8ubuntu3.1) ...
update-initramfs: deferring update (trigger activated)
lzma: Cannot allocate memory
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1