It appears that your devices are timing out because the top layer is not able to unmount because it is still in use, which causes the layers underneath to never be able to close out properly.
You may need to write a helper script which runs at shutdown which unmounts things and closes the cryptsetup in the proper order.
As a more complete answer about the order:
General Rule: If you had to mount it in a certain order, unmount it in reverse order.
More Specifically: In your case, from the output you gave, the order to unmount would be your partition(s) which are mounted as part of you encrypted directory (sda5_crypt) including possible encrypted swap with a sudo swapoff /path/to/swap; sudo umount /path/to/swap
and once everything is unmounted from the encrypted drive, then close the crypt device with sudo cryptdisk_stop sda5_crypt
. If this gives you an error, then you missed unmounting something.
Now if your LVM happens to be one of those, you will need to do vgchange -a n /dev/vgname
before closing your crypt device, which will allow for the lvm pv to be cleanly stopped.
Hope this helps...
Edit:
At another glance, you might also want to try this link: Unattended upgrades failing as I think you might be hitting a bug in the unattended Upgrades service.
Best Answer
I'm guessing this is related to ACPI not working as it should. Try enforcing the power interface as a boot option to see if this fixes it.
First open a terminal and try
and see if it turns off properly (i'm guessing it won't, but just to make sure).
If it does not, reboot, when grub appears press e, this should show your boot parameters
add acpi=force to it
hit enter to boot, now try to shut it down again and see if it turns off.
If it does, you can make this option permanent by editing the grub config.
Make a backup of your current grub.cfg (just in case)
Now open the file in an editor, like
And search for
and change it to
save it, and run
and try shutting down again. This is the same as before, but permanently added, if you want to go back/restore your backup, remember to run update-grub again, after changing the config.