**严重问题:系统有时卡死,完全无响应 **
看kernel日志,错误信息如下:
kernel BUG at /build/linux-7LGLH_/linux-4.10.0/include/linux/swapops.h:129
看上去和swap有关系,17.04默认使用swap文件,非swap分区。
搜到的信息:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1674838
** 解决方法(效果待观察): **
修改fstab,改为使用swap分区
更新(2017.5.10): 换用swap分区无效。看kernel日志,似乎发生了死锁,有Intel api的字样,搜到下面的帖子:
ubuntu-15-10-and-16-04-keep-freezing-randomly
给出的解决方法为
sudo vi /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1" sudo update-grub sudo reboot
以下问题通过 journalctl -b 查看启动日志中失败项
- nvidia驱动问题:
安装了nvidia-375,tested驱动,但启动日志里一堆失败:
[Failed] Failed to start NVIDIA Persistence Daemon. See 'systemctl status nvidia-persistenced.service' for details. nvidia-persistenced.service: Failed at step EXEC spawning /usr/bin/nvidia-persistenced: No such file nvidia-persistenced[12507]: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file
都是文件找不到(安装包的问题?)。用 nvidia-smi
查看状态也提示找不到 libnvidia-ml.so
手动解决方法:
sudo ln -s /usr/lib/nvidia-375/libnvidia-ml.so.1 /usr/lib/ sudo ln -s /usr/lib/nvidia-375/libnvidia-cfg.so.1 /usr/lib/ sudo ln -s /usr/lib/nvidia-375/bin/nvidia-persistenced /usr/bin
- 错误信息:
Could not parse desktop file orca-autostart.desktop or it reference
**原因:**因为不用屏幕朗读,所以卸载了orca。
解决方法:
sudo rm /usr/share/gdm/greeter/autostart/orca-autostart.desktop
- 错误信息:
spice-vdagent[1434]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice
**原因:**桌面机,非虚拟机
解决方法:
sudo vim /usr/share/gdm/greeter/autostart/spice-vdagent.desktop 添加:X-GNOME-Autostart-enabled=false
未理会的错误:
- Apparmor Init Failed,Exit Code 123
sudo apt install apparmor-easyprof-ubuntu
- AppArmor parser error for /etc/apparmor.d/usr.bin.firefox. line 23: Could not open 'abstractions/ubuntu-browsers.d/firefox'
sudo systemctl status -l apparmor.service
- nvidia: loading out-of-tree module taints kernel.
- iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
- failed to open statefile /var/run/network/ifstate:
- [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.
dbus-send --system --type=method_call --print-reply --dest=org.ofono / org.freedesktop.DBus.Introspectable.Introspect
- pulseaudio.desktop[1936]: 打开声音文件失败。
gnome-session[1711]: gnome-session-binary[1711]: WARNING: App 'pulseaudio.desktop' exited with code 1 - gsd-housekeepin[1950]: Failed to enumerate children of /tmp/systemd-private