我安装了全新的 Ubuntu 17.10,关机需要很长时间。大约 10 分钟。
我的电脑:
- 宏碁 Aspire E 15 E5-575G-55F8
- 中央处理器:Intel Core i5-7200U
- 显卡:Nvidia GeForce 940MX
- 内存:8GB
- 硬盘:128 GB SSD
有什么建议么?
编辑2017-10-28:
在我将图形驱动程序更改为 Nvidia 之后,我能够从关机中获得更多输出: 网络和 WPA 请求者关闭耗时 5 分钟
编辑2017-10-29:
命令 blkid
[sudo] password for sindre:
/dev/sda1: LABEL="Recovery" UUID="4C52B20E52B1FD30" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="afd7eb36-49c2-48df-93b7-a8f328f98581"
/dev/sda2: UUID="C8B2-804F" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="7c25539d-2831-487b-b467-3a6e3a62fe12"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="59075249-24b1-413e-8310-4ae8dc65c50c"
/dev/sda4: LABEL="Windows" UUID="1AC0C05AC0C03E2F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8d462818-1f35-4925-858f-02ccc1a4900c"
/dev/sdb1: UUID="8037-5488" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="ce57fe35-c6af-42b8-bc25-49f2267c633f"
/dev/sdb2: UUID="ecd9e853-3f4b-47b8-b620-e2fbb5a5c677" TYPE="ext4" PARTUUID="f3879da4-fe63-4066-a2a6-c46dabaa200e"
猫/etc/fstab
# /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/sdc2 during installation
UUID=ecd9e853-3f4b-47b8-b620-e2fbb5a5c677 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=C8B2-804F /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
猫/等/crypttab
cryptswap1 /target/swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
免费-h
total used free shared buff/cache available
Mem: 7,7G 1,6G 4,5G 469M 1,6G 5,5G
Swap: 0B 0B 0B
sudo swapon-s
(no output in terminal - blank screen)
分区
I installed it from Ubuntu Software, but I can not start the program. I go to Start -> gparted -> (Enter password) -> Nothing happens..
sudo journalctl--列表引导
0 89202fbe0dae42f98301d9f6decdddf2 Sun 2017-10-29 11:04:51 CET—Sun 2017-10-29 1
sudo journalctl-b-1
Data from the specified boot (-1) is not available: No such boot ID in journal
sudo jornalctl -b -0
-- Logs begin at Sun 2017-10-29 11:04:51 CET, end at Sun 2017-10-29 11:26:28 CET. --
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: microcode: microcode updated early to revision 0x62, date = 2017-04-27
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: random: get_random_bytes called from start_kernel+0x42/0x4e1 with crng_init=0
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: Linux version 4.13.0-16-generic (buildd@lcy01-02) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu2)) #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 (Ubuntu 4.13.0-16.19-gener
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-4.13.0-16-generic.efi.signed root=UUID=ecd9e853-3f4b-47b8-b620-e2fbb5a5c677 ro
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: KERNEL supported cpus:
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: Intel GenuineIntel
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: AMD AuthenticAMD
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: Centaur CentaurHauls
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: e820: BIOS-provided physical RAM map:
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000000059000-0x000000000009dfff] usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000000009e000-0x00000000000fffff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000000100000-0x000000007110afff] usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000007110b000-0x000000007110bfff] ACPI NVS
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000007110c000-0x000000007110cfff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000007110d000-0x0000000072a87fff] usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000072a88000-0x0000000073b87fff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000073b88000-0x0000000089d9dfff] usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000089d9e000-0x000000008a78dfff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000008a78e000-0x000000008ae7dfff] ACPI NVS
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000008ae7e000-0x000000008aefdfff] ACPI data
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000008aefe000-0x000000008aefefff] usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x000000008aeff000-0x000000008fffffff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000fd000000-0x00000000fe7fffff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000fed00000-0x00000000fed00fff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000fed10000-0x00000000fed19fff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000fed84000-0x00000000fed84fff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x00000000ffa00000-0x00000000ffffffff] reserved
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: BIOS-e820: [mem 0x0000000100000000-0x000000026effffff] usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: NX (Execute Disable) protection: active
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: e820: update [mem 0x70ec0018-0x70ed0057] usable ==> usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: e820: update [mem 0x70ec0018-0x70ed0057] usable ==> usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: e820: update [mem 0x70ea6018-0x70ebf857] usable ==> usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: e820: update [mem 0x70ea6018-0x70ebf857] usable ==> usable
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: extended physical RAM map:
okt. 29 11:04:51 sindre-Aspire-E5-575G kernel: reserve setup_data: [mem 0x0000000000000000-0x0000000000057fff] usable
ls -al /
total 2097264
drwxr-xr-x 24 root root 4096 okt. 29 16:09 .
drwxr-xr-x 24 root root 4096 okt. 29 16:09 ..
drwxr-xr-x 2 root root 4096 okt. 29 17:01 bin
drwxr-xr-x 4 root root 4096 okt. 29 16:35 boot
drwxrwxr-x 2 root root 4096 okt. 29 16:08 cdrom
drwxr-xr-x 20 root root 4420 okt. 29 16:55 dev
drwxr-xr-x 127 root root 12288 okt. 29 17:01 etc
drwxr-xr-x 4 root root 4096 okt. 29 16:08 home
lrwxrwxrwx 1 root root 33 okt. 29 16:09 initrd.img -> boot/initrd.img-4.13.0-16-generic
drwxr-xr-x 23 root root 4096 okt. 29 16:10 lib
drwxr-xr-x 2 root root 4096 okt. 18 20:32 lib64
drwx------ 2 root root 16384 okt. 29 16:06 lost+found
drwxr-xr-x 2 root root 4096 okt. 18 20:32 media
drwxr-xr-x 2 root root 4096 okt. 18 20:32 mnt
drwxr-xr-x 2 root root 4096 okt. 18 20:32 opt
dr-xr-xr-x 240 root root 0 okt. 29 16:55 proc
drwx------ 4 root root 4096 okt. 29 16:59 root
drwxr-xr-x 28 root root 800 okt. 29 16:59 run
drwxr-xr-x 2 root root 12288 okt. 29 17:01 sbin
drwxr-xr-x 5 root root 4096 okt. 29 16:59 snap
drwxr-xr-x 2 root root 4096 okt. 18 20:32 srv
-rw------- 1 root root 2147483648 okt. 29 16:08 swapfile
dr-xr-xr-x 13 root root 0 okt. 29 16:55 sys
drwxrwxrwt 13 root root 4096 okt. 29 18:17 tmp
drwxr-xr-x 10 root root 4096 okt. 18 20:32 usr
drwxr-xr-x 14 root root 4096 okt. 18 20:42 var
lrwxrwxrwx 1 root root 30 okt. 29 16:09 vmlinuz -> boot/vmlinuz-4.13.0-16-generic
答案1
我的猜测是它与 WiFi 有关。尝试在关机前关闭 WiFi,看看效果如何。
答案2
由于某种原因,您的加密/swapfile
设置不正确,因此您根本没有使用交换。
主要问题似乎出在您的/etc/crypttab
文件中。
使用以下方式编辑此文件...
sudo -H gedit /etc/crypttab
改变这个:
cryptswap1 /target/swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
更改为:
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
然后...
sudo swapon -a # enable swap
free -h # review memory and swap usage
swapon -s # review swap summary
注意:gparted
无法为您启动,因为您可能在 wayland 上运行 17.10 gnome。最好注销,然后在登录屏幕上单击齿轮并选择gnome on xorg
,现在gparted
(和其他应用程序)将正常运行。
答案3
我在 Dell Latitude E6540 上遇到了同样的问题。安装软件以读取 ex-fat 格式的 SD 卡后,我偶然解决了这个问题。
我运行了此命令:
sudo apt install exfat-fuse exfat-utils
关机时间很长的问题也消失了。
我不知道为什么,但它起作用了。
答案4
禁用 cryptswap。在大多数情况下,这是过度的,你应该从一开始就不要使用交换。
完成后,请报告,以便我们可以查找其他错误,因为现在大多数错误都与此有关。
其他罪魁祸首通常是等待关闭/超时的网络连接。