ubuntu gnome 17.04 問題解決

**嚴重問題:系統有時卡死,徹底無響應 **
看kernel日誌,錯誤信息以下:linux

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
給出的解決方法爲shell

sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
sudo update-grub
sudo reboot

如下問題經過 journalctl -b 查看啓動日誌中失敗項ubuntu

  1. 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
手動解決方法:vim

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
  1. 錯誤信息: Could not parse desktop file orca-autostart.desktop or it reference
    **緣由:**由於不用屏幕朗讀,因此卸載了orca。
    解決方法:
sudo rm /usr/share/gdm/greeter/autostart/orca-autostart.desktop
  1. 錯誤信息: 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

未理會的錯誤:api

  1. Apparmor Init Failed, Exit Code 123
    sudo apt install apparmor-easyprof-ubuntu
  2. 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
  3. nvidia: loading out-of-tree module taints kernel.
  4. iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
  5. failed to open statefile /var/run/network/ifstate:
  6. [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
  7. pulseaudio.desktop[1936]: 打開聲音文件失敗。
    gnome-session[1711]: gnome-session-binary[1711]: WARNING: App 'pulseaudio.desktop' exited with code 1
  8. gsd-housekeepin[1950]: Failed to enumerate children of /tmp/systemd-private
相關文章
相關標籤/搜索