我知道还有其他类似的问题,但我会提供有关该问题的更多详细信息。
当我尝试关闭/重新启动系统时,系统永远挂起。这出现在 Ubuntu 16.04 64 位上。它出现在升级后的 Kubuntu (14.04 » 16.04) 上的同一台机器上,新安装的 Lubuntu 16.04 上和 live CD 上的事件(iso 从带有 grml-rescue 的硬盘引导)。
如果我从桌面环境关闭/重新启动并且我从终端执行此操作,它会出现。
该问题未出现在安装在同一硬盘上的 Ubuntu 14.04 上。
磁盘
我尝试在分区上运行 fdisk,但没有发现错误。
中断轮询
我试图将irqpoll
参数添加到系统启动
linux /boot/vmlinuz-4.4.0-31-generic root=UUID=c50c612d-813b-4e76-a6d0-92e697658b7a ro irqpoll $vt_handoff
BIOS USB3
有人通过关闭bios上的usb3 legacy支持解决了,但是我的主板很旧,bios上没有usb3支持
systemctl 和交换
这个答案https://askubuntu.com/a/769953/23130 谈到了2个可能的问题:systemctl和swap
sudo swapoff
sudo systemctl reboot
但没有一个主题工作
关机调试
上一个答案指向了一个有趣的 Launchpad 讨论 https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1464917
有一段介绍性文字说:
如果您遇到关机挂起,请提交单独的错误报告并按照 /usr/share/doc/systemd/README.Debian.gz 的“调试启动/关机问题”部分中描述的调试说明检查是否有关机时的任何挂起作业。在救援外壳中捕获“journalctl -b”的屏幕照片可能会很有启发性。
所以调试说明说
sudo systemctl enable debug-shell
sudo halt
然后当关机挂起时,您在 VT9CTRL+ALT+F9上有一个控制台,您可以在其中执行
systemctl
找到状态活跃的单位
systemctl list-jobs
列出的所有作业都处于等待状态,唯一具有运行状态的作业是upower.service
粗体。
所以我关闭了电脑并重新启动,现在在我已经完成的终端中
sudo systemctl list-jobs
输出是
JOB UNIT TYPE STATE
1341 upower.service start running
1 jobs listed.
所以我试图关闭它并为将来禁用它
sudo systemctl stop upower.service
sudo systemctl disable upower.service
sudo systemctl mask upower.service
然后我再次尝试使用调试控制台进行击落
sudo systemctl enable debug-shell
sudo halt
但是关机像往常一样冻结,而且现在我什至无法访问调试外壳。
在没有quiet splash grub 选项的情况下启动我可以看到关机挂在输出线上
Reached target Shutdown
这些是关于关机的系统日志行
Aug 5 11:45:12 pc-dev udisksd[2930]: Mounted /dev/sdc1 at /media/luca/TOSHIBA EXT on behalf of uid 1000
Aug 5 11:45:12 pc-dev ntfs-3g[3141]: Version 2015.3.14AR.1 integrated FUSE 28
Aug 5 11:45:12 pc-dev ntfs-3g[3141]: Mounted /dev/sdc1 (Read-Write, label "TOSHIBA EXT", NTFS 3.1)
Aug 5 11:45:12 pc-dev ntfs-3g[3141]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=1000,uhelper=udisks2
Aug 5 11:45:12 pc-dev ntfs-3g[3141]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdc1,blkdev,blksize=4096
Aug 5 11:45:12 pc-dev ntfs-3g[3141]: Global ownership and permissions enforced, configuration type 7
Aug 5 11:45:16 pc-dev com.canonical.indicator.application[2749]: (process:3129): indicator-application-service-WARNING **: Application already exists, re-requesting properties.
Aug 5 11:45:19 pc-dev systemd[1]: Started Daemon for generating UUIDs.
Aug 5 11:45:28 pc-dev spideroak_inotify[3253]: Program started
Aug 5 11:45:36 pc-dev systemd[1]: Starting Stop ureadahead data collection...
Aug 5 11:45:36 pc-dev systemd[1]: Stopped Read required files in advance.
Aug 5 11:45:36 pc-dev systemd[1]: Started Stop ureadahead data collection.
Aug 5 11:45:40 pc-dev systemd[1]: Started Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Aug 5 11:45:53 pc-dev systemd[1]: Stopped target Sound Card.
Aug 5 11:45:53 pc-dev systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Aug 5 11:45:53 pc-dev systemd[1]: Stopped target Timers.
Aug 5 11:45:53 pc-dev systemd[1]: Stopped Daily apt activities.
Aug 5 11:45:53 pc-dev systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Aug 5 11:45:53 pc-dev systemd[1]: Stopped Stop ureadahead data collection 45s after completed startup.
Aug 5 11:45:53 pc-dev systemd[1]: Stopped target Graphical Interface.
Aug 5 11:45:53 pc-dev org.freedesktop.Notifications[2749]: xfce4-notifyd: Fatal IO error 11 (Risorsa temporaneamente non disponibile) on X server :0.
Aug 5 11:45:53 pc-dev systemd[1]: Stopping Light Display Manager...
Aug 5 11:45:53 pc-dev systemd[1]: Stopping Accounts Service...
Aug 5 11:45:53 pc-dev ntfs-3g[3141]: Unmounting /dev/sdc1 (TOSHIBA EXT)
Aug 5 11:45:53 pc-dev systemd[1]: Stopping Disk Manager...
Aug 5 11:45:53 pc-dev ModemManager[2245]: <info> Caught signal, shutting down...
Aug 5 11:45:53 pc-dev systemd[1]: Stopping Daemon for power management...
Aug 5 11:45:53 pc-dev systemd[1]: Stopped target System Time Synchronized.
Aug 5 11:45:53 pc-dev dbus[2266]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkitd.service'
Aug 5 11:45:53 pc-dev systemd[1]: Stopping User Manager for UID 1000...
Aug 5 11:45:53 pc-dev rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="2228" x-info="http://www.rsyslog.com"] exiting on signal 15.
Aug 5 11:48:26 pc-dev rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="2232" x-info="http://www.rsyslog.com"] start
Aug 5 11:48:26 pc-dev rsyslogd-2222: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222 ]
Aug 5 11:48:26 pc-dev rsyslogd: rsyslogd's groupid changed to 108
Aug 5 11:48:26 pc-dev rsyslogd: rsyslogd's userid changed to 104
Aug 5 11:48:26 pc-dev loadkeys[764]: Caricamento di /etc/console-setup/cached.kmap.gz
Aug 5 11:48:26 pc-dev systemd[1]: Started Set console keymap.
Aug 5 11:48:26 pc-dev systemd[1]: Started Create Static Device Nodes in /dev.
Aug 5 11:48:26 pc-dev systemd[1]: Starting udev Kernel Device Manager...
Aug 5 11:48:26 pc-dev systemd[1]: Started Uncomplicated firewall.
Aug 5 11:48:26 pc-dev systemd[1]: Started udev Kernel Device Manager.
Aug 5 11:48:26 pc-dev systemd[1]: Starting Remount Root and Kernel File Systems...
Aug 5 11:48:26 pc-dev systemd[1]: Started Remount Root and Kernel File Systems.
Aug 5 11:48:26 pc-dev systemd[1]: Starting Flush Journal to Persistent Storage...
Aug 5 11:48:26 pc-dev systemd[1]: Reached target Local File Systems (Pre).
Aug 5 11:48:26 pc-dev systemd[1]: Reached target Local File Systems.
Aug 5 11:48:26 pc-dev systemd[1]: Starting Tell Plymouth To Write Out Runtime Data...
Aug 5 11:48:26 pc-dev systemd[1]: Starting LSB: AppArmor initialization...
Aug 5 11:48:26 pc-dev systemd[1]: Starting Set console font and keymap...
Aug 5 11:48:26 pc-dev systemd[1]: Starting udev Coldplug all Devices...
Aug 5 11:48:26 pc-dev systemd[1]: Starting Load/Save Random Seed...
Aug 5 11:48:26 pc-dev systemd[1]: Started Tell Plymouth To Write Out Runtime Data.
Aug 5 11:48:26 pc-dev systemd[1]: Started Load/Save Random Seed.
Aug 5 11:48:26 pc-dev systemd[1]: Started Flush Journal to Persistent Storage.
Aug 5 11:48:26 pc-dev systemd[1]: Starting Create Volatile Files and Directories...
Aug 5 11:48:26 pc-dev systemd-tmpfiles[958]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Aug 5 11:48:26 pc-dev systemd[1]: Started udev Coldplug all Devices.
Aug 5 11:48:26 pc-dev systemd[1]: Starting Show Plymouth Boot Screen...
Aug 5 11:48:26 pc-dev kernel: [ 0.000000] Initializing cgroup subsys cpuset
Aug 5 11:48:26 pc-dev apparmor[943]: * Starting AppArmor profiles
Aug 5 11:48:26 pc-dev kernel: [ 0.000000] Initializing cgroup subsys cpu
Aug 5 11:48:26 pc-dev kernel: [ 0.000000] Initializing cgroup subsys cpuacct
这是我的lshw 输出
有人能帮我吗?对我来说,如此严重的错误会影响 LTS,这让我难以置信。
全新的华硕 L502S 也有同样的问题。我试过 Mint、Mate、Ubuntu - 都一样。问题很常见。我尝试了所有可以在论坛上找到的关于这个问题的方法。
最终当我发现这个时我放弃了:https ://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1594023
检查您的问题是否相同,我希望您不要像我一样浪费一天的时间。
这对我有用,希望你也一样。
我有 Lubuntu 16.04.1 LTS
我为解决问题所做的步骤
blacklist dw_dmac blacklist dw_dmac_core
sudo update-grub
注意:为此,您需要在 Grub 步骤中彻底擦除橡皮擦:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
橡皮擦quiet splash
注意:这适用于 ASER E-11 与以前的 Windows8.1 和现在的 Lubuntu 16.04.1 LTS。
缺点:在“开始”或“关机”中,计算机只会显示控制台,但它会起作用。
我想我找到了解决方案。我正在寻找另一个问题的解决方案:
lsusb
命令永远挂起,所以我找到了这篇文章 https://ubuntuforums.org/showthread.php?t=2301619然后我想起我有一个USB3 PCI卡插在主板上但没有通电,拔掉它后问题就解决了。
希望能帮助到你。
我知道 OP 说这
nomodeset
没有帮助,但由于这是这个问题的最佳谷歌结果,我想我会投入最终帮助我的东西。我在所有答案中都尝试了与 grub 相关的一切,并尝试了我能找到的所有其他建议的答案。
最后,当我用 启动时
nomodeset
,它关机正常,这是我的第一个线索。我刚刚更新到最新的 nvidia 驱动程序 (381),并且将 prime 设置为“intel”模式。将其改回nvidia,再一次硬关机(设置在启动之前不会完全更改),并且在将prime设置为nvidia时它可以正常工作。
希望这可以在将来对其他人有所帮助。
在 /etc/modprobe.d/blacklist.conf
添加以下行:
来源:https ://bbs.archlinux.org/viewtopic.php?id=148033