![Ubuntu 16.10 或 17.04 关机时报告 5 个“失败”错误](https://linux22.com/image/999763/Ubuntu%2016.10%20%E6%88%96%2017.04%20%E5%85%B3%E6%9C%BA%E6%97%B6%E6%8A%A5%E5%91%8A%205%20%E4%B8%AA%E2%80%9C%E5%A4%B1%E8%B4%A5%E2%80%9D%E9%94%99%E8%AF%AF.png)
我不确定这是否表示存在严重错误。关闭时,我看到 5 行“FAILED”因错误而停止。
[FAILED] Stopped (with error) /dev/dm-0.
[FAILED] Stopped (with error) /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-cryptswmp1
[FAILED] Stopped (with error) /dev/disk/by-id/dm-name-cryptswmp1
[FAILED] Stopped (with error) /dev/disk/by-uuid/99c89684-2f0d-4a87-b7d2-696b4fa6ed09
[FAILED] Stopped (with error) /sys/devices/virtual/block/dm-0
答案1
这是 systemd 中的一个错误,这是我的解决方法。
root@x360:~# cat /lib/systemd/system-shutdown/fix-shutdown-errors.sh /bin/bash #!/bin/bash /sbin/swapoff -a /sbin/cryptsetup luks关闭 mmc_crypt /sbin/cryptsetup luks关闭 sda5_crypt