今天我从Ubuntu 16升级到17,一切都很好,直到我的电脑开了2-3个小时。然后它崩溃了,除了没有错误的屏幕或消息。这是它坠毁前的最后一张照片。鼠标不动,键盘不工作,所有操作(我的下载停止了.我不知道是否一切都是这样)不要继续下去。我只是认为这是一个随机的问题,并继续通过手动关闭我的机器,但它再次发生,我不认为这只是一个不容忽视的东西。如果我不知道如何解决这个问题,任何帮助都是好的。此外,我正在使用Ubuntu桌面。
更新:ls -alt /var/crash的输出是
总计8 drwxr-xr-x14根4096 4月11日21:21 :21 .. drwxrwsrwt 2根须4096 4月11日21:14。
dpkg -l intel-microcode给了我错误
dpkg-查询:没有找到与intel-microcode匹配的包
Free -h total used free shared buff/cache available Mem: 7.7G 1.8G 349M 101M 5.6G 5.5G Swap: 0B 0B 0B
而swapon没有输出。
下一次更新:
cat /etc/fstab #If there was a hashtag at the start of a line it got bolded.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=8eedf4cb-b322-4455-905b- c50264691a4d / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0这是我的格蕾截图。

下一次更新:
sudo blkid的输出(PARTUUID在同一行上,只是它没有以这种方式输出)
/dev/sda1: UUID="8eedf4cb-b322-4455-905b-c50264691a4d" TYPE="ext4" PARTUUID="46d95458-01"
/dev/sda5: UUID="4e48c05f-02d1-47ef-9a5f-bb8cba50dd2b" TYPE="ext4" PARTUUID="46d95458-05"
/dev/sda6: UUID="7f7d6675-31a4-4100-9d32-5faa0e0cea3e" TYPE="swap" PARTUUID="46d95458-06"
/dev/sdb1: LABEL="HD-LXU3" UUID="F45A29EB5A29AB76" TYPE="ntfs" PARTUUID="aa1e0d10-01" ls -al /输出
总计2097264
drwxr-xr-x24根4096 5月26日12:10。
5月26日12:10 .
drwxr xr-x2根4096 5月27日23:15 bin
drwxr xr-x3根根4096 5月29日13:09引导
drwxrwxr x2根4096 5月26日11:44
drwxr xr-x22根4480 Jun 4 12:00 dev
根12288,6月2日,17:36等
drwxr-xr-x4根4096 5月26日11:47
lrwxrwxrwx 1根根,5月33,12:10 initrd.img -> boot/initrd.img-4.10.0-21-泛型
lrwxrwxrwx 1根根5月3日11:50 initrd.img.old -> boot/initrd.img-4.10.0-19-泛型
drwxr-xr-x25根4096 5月26日13:03 lib
drwxr xr-x2根4096 4月11日21:07 lib64
16384 05月26日11:43 lost+found
drwxr-xr-x3根4096 5月26日11:56介质
drwxr xr-x2根4096 / 11 21:07 mnt
drwxr-xr-x5根4096 5月28日09:51 opt
dr-xr-xr-x242根0六月4日11:58
drwx- 4096 -4096 5月29日21:03
drwxr-xr-x30根根960六月4日12:05运行
drwxr-xr-x2根12288 5月27日23:15
drwxr xr-x2根4096 002:32 snap
drwxr-xr-x2根4096 4月11日21:07 srv
-rw
dr-xr-xr-x13根0六月4日13:43
树根4096 6月4日13:46
drwxr-xr-x11根4096 4月11日21:13 usr
drwxr xr-x15根4096 5月28日14:08 var
lrwxrwxrwx 1根根5月30日12:10 vmlinuz -> boot/vmlinuz-4.10.0-21-泛型
lrwxrwxrwx 1根根5月30日11:50 vmlinuz.old -> boot/vmlinuz-4.10.0-19-泛型
free -h给了我:
> total used free shared buff/cache available
Mem: 7.7G 889M 6.2G 46M 692M 6.6G
Swap: 2.0G 0B 2.0G swapon给出:
NAME TYPE SIZE USED PRIO
> /dev/dm-0 partition 2G 0B -1ls -alh /swapfile给出了:
-rw
而且,我的创业时间也有了很大的增长。
发布于 2017-06-04 20:15:25
17.04和加密的交换文件似乎有问题.还有一些解决办法..。
编辑您的/etc/crypttab如下:
gksudo gedit /etc/crypttab更改这一行:
cryptswap1 UUID=xxxx-xxxx-xxxx-xxxx /dev/urandom swap,offset=1024,cipher=aes-xts-plain64对此:
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64还要确保您的/etc/fstab包含以下内容:
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0参考文献:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1668535
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1670336
https://askubuntu.com/questions/919285
复制相似问题