Ubuntu 17.10需要很长时间才能关闭

我安装了一个新的Ubuntu 17.10,关机需要很长时间。 我们说的是10分钟。

我的电脑:

  • 宏碁Aspire E 15 E5-575G-55F8
  • CPU:Intel Core i5-7200U
  • GPU:Nvidia GeForce 940MX
  • 拉姆:8GB
  • 高清:128 GB SSD

关机的形象

有什么建议?

编辑2017-10-28:

在我将grapich驱动程序更改为Nvidia之后,我可以从关闭中获得更多输出: 网络和WPA请求者关闭需要5分钟

其余的关机

编辑2017-10-29:

sudo 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" 

cat / 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). # #       # / 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 

cat / etc / 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) 

的gparted

 I installed it from Ubuntu Software, but I can not start the program. I go to Start -> gparted -> (Enter password) -> Nothing happens.. 

sudo journalctl –list-boots

  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 

编辑gparted: Gparted1 Gparted2

我受过教育的猜测是它与WiFi有关。 在关闭之前尝试关闭WiFi,看看它是如何工作的。

由于某种原因,您的加密/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不会为你启动,因为你可能在路上运行17.10 gnome。 最好注销,在登录界面,点击齿轮并gnome on xorg选择gnome on xorg ,现在gparted (和其他应用程序)将正常运行。

我的戴尔Latitude E6540也有同样的问题。 我在安装软件后用偶然格式读取SD卡,偶然解决了这个问题。
我跑了这个:

 sudo apt install exfat-fuse exfat-utils 

关闭问题很长一段时间都没有成功。
我不知道为什么,但它有效。

禁用cryptswap。 在大多数情况下它是矫枉过正的,你的目标应该是不要使用swap开头。

在你做完之后,报告回来,这样我们就可以捕获其他错误,因为现在大多数都是关于它的。

其他罪魁祸首通常是等待关闭/超时的网络连接。