ubuntu gnome 17.04 problem solving

**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

  1. 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-smiview 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
  1. 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
  1. 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:

  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]: Failed to open sound file.
    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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325537853&siteId=291194637