今天我从 Ubuntu 16 升级到了 17。一切都很好,直到我离开我的电脑大约 2-3 个小时。然后它崩溃了,除了没有错误屏幕或消息。只是在它崩溃之前发生的最后一张图像。鼠标不动,键盘不工作,所有操作(我的下载停止了......我不完全知道是否一切正常)不会继续。我只是认为这是一个随机问题,并通过手动关闭我的机器电源来继续,但它再次发生,我认为这不是可以忽略的事情。任何帮助都会很好地解决这个问题,因为我不知道。我也在使用 Ubuntu 桌面。
更新:的输出ls -alt /var/crash是
总共 8
drwxr-xr-x 14 root root 4096 Apr 11 21:21 ..
drwxrwsrwt 2 root whoopsie 4096 Apr 11 21:14 。
dpkg -l intel-microcode
Run Code Online (Sandbox Code Playgroud)
给我错误
dpkg-query: 没有找到匹配 intel-microcode 的包
Free -h
Run Code Online (Sandbox Code Playgroud)
Run Code Online (Sandbox Code Playgroud)total used free shared buff/cache available内存:7.7G 1.8G 349M 101M 5.6G 5.5G
交换: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
Run Code Online (Sandbox Code Playgroud)
这是我的 Gparted 屏幕截图。
下次更新:
输出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"
Run Code Online (Sandbox Code Playgroud)
ls -al /
总输出2097264
drwxr-xr-x 24 root root 4096 May 26 12:10 。
drwxr-xr-x 24 root root 4096 May 26 12:10 ..
drwxr-xr-x 2 root root 4096 May 27 23:15 bin
drwxr-xr-x 3 root root 4096 May 29 13:09 boot
drwxrx2 root root 4096 May 26 11:44 cdrom
drwxr-xr-x 22 root root 4480 Jun 4 12:00 dev
drwxr-xr-x 140 root root 12288 Jun 2 17:36 etc
drwxr-xr-x 4 root root 269 11:47 home
lrwxrwxrwx 1 root root 33 May 26 12:10 initrd.img -> boot/initrd.img-4.10.0-21-generic lrwxrwxrwx
1 root root 33 May 26 11:50 initrd.img.old -> boot /initrd.img-4.10.0-19-generic
drwxr-xr-x 25 root root 4096 May 26 13:03 lib
drwxr-xr-x 2 root root 4096 Apr 11 21:07 lib64
drwx------ 2 root root 16384 May 26 11:43 lost+found
drwxr -xr-x 3 root root 4096 May 26 11:56 media
drwxr-xr-x 2 root root 4096 Apr 11 21:07 mnt
drwxr-xr-x 5 root root 4096 May 28 09:51 opt
dr-xr-xr- x 242 root root 0 Jun 4 11:58 proc
drwx------ 4 root root 4096 May 29 21:03 root
drwxr-xr-x 30 root root 960 Jun 4 12:05 run
drwxr-xr-x 2 root root 12288 May 27 23:15 sbin
drwxr-xr-x 2 root root 4096 Apr 6 02:32 snap
drwxr-xr-x 2 root root 4096 Apr 11 21:07 srv
-rw------- 1 root root 2147483648 May 26 11:44 swapfile
dr-xr-xr-x 13 root root 0 Jun 4 13:43 sys
drwxrwxrwt 16 root root 4096 Jun 4 13:46 tmp
drwxr-xr -x 11 root root 4096 Apr 11 21:13 usr
drwxr-xr-x 15 root root 4096 May 28 14:08 var
lrwxrwxrwx 1 root root 30 May 26 12:10 vmlinuz -> boot/vmlinuz-4.11通用
lrwxrwxrwx 1 root root 30 May 26 11:50 vmlinuz.old -> boot/vmlinuz-4.10.0-19-generic
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
Run Code Online (Sandbox Code Playgroud)
swapon 给出:
NAME TYPE SIZE USED PRIO
> /dev/dm-0 partition 2G 0B -1
Run Code Online (Sandbox Code Playgroud)
并ls -alh /swapfile给出:
-rw------- 1 根根 2.0G Jun 4 21:41 /swapfile
我的启动时间也颤抖着增加了。
17.04 和加密交换文件似乎存在问题......并且有一些解决方法......
/etc/crypttab像这样编辑:
gksudo gedit /etc/crypttab
Run Code Online (Sandbox Code Playgroud)
改变这一行:
cryptswap1 UUID=xxxx-xxxx-xxxx-xxxx /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Run Code Online (Sandbox Code Playgroud)
对此:
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Run Code Online (Sandbox Code Playgroud)
还要确保您/etc/fstab包含以下内容:
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
Run Code Online (Sandbox Code Playgroud)
参考:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1668535
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1670336