**Serious problem: The system sometimes freezes and does not respond at all**
Look at the kernel log, the error message is as follows:
kernel BUG at /build/linux-7LGLH_/linux-4.10.0/include/linux/swapops.h:129
It seems to be related to swap. 17.04 uses the swap file by default, not the swap partition.
Information found: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1674838
** Solution (effect to be seen): **
Modify fstab and use swap partition
update (2017.5. 10): The swap partition is invalid. Looking at the kernel log, it seems that a deadlock has occurred, with the words Intel api, and I found the following post: The solution given by
ubuntu-15-10-and-16-04-keep-freezing-randomly is
sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
sudo update-grub
sudo reboot
For the following problems, use journalctl -b to view the failed items in the startup log
- nvidia driver problem:
nvidia-375, tested driver installed, but a bunch of failures in the startup log:
[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
All files cannot be found ( problems with the installation package? ). Using the nvidia-smi
view status also prompts that libnvidia-ml.so cannot be found
manually. Solution:
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
- Error message:
Could not parse desktop file orca-autostart.desktop or it reference
**Cause: **Uninstalled orca because screen reading is not used.
Solution:
sudo rm /usr/share/gdm/greeter/autostart/orca-autostart.desktop
- Error message:
spice-vdagent[1434]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice
**Cause: **Desktop, not a virtual machine
Solution:
sudo vim /usr/share/gdm/greeter/autostart/spice-vdagent.desktop
添加:X-GNOME-Autostart-enabled=false
Ignored errors:
- 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]: Failed to open sound file.
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