![远程解决“出现错误”错误](https://linux22.com/image/949449/%E8%BF%9C%E7%A8%8B%E8%A7%A3%E5%86%B3%E2%80%9C%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%E2%80%9D%E9%94%99%E8%AF%AF.png)
关于烦人且无用的“哦不。出了点问题”错误消息,有几个类似的问题,但是:
- 没有解决方案对我有用(见下文)
- 我无法物理访问该机器,只有 SSH 连接(或 Gnome 工作时的远程桌面...)
机器运行的是Ubuntu 22.04,登录时出现错误。我试过:
$ mv ~/.config ~/.config-backup && reboot
$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt --fix-broken install
$ sudo dpkg --configure -a
我很确定这是由 gnome 引起的,因为:
$ ls /var/crash
_usr_bin_gnome-shell.123.crash
$ sudo dmesg | grep error
[ 9.426568] EDAC pnd2: Failed to register device with error -22.
[ 9.547525] EDAC pnd2: Failed to register device with error -22.
[ 9.621761] EDAC pnd2: Failed to register device with error -22.
[ 9.693187] EDAC pnd2: Failed to register device with error -22.
[ 22.831223] gnome-shell[1100]: segfault at 25e9b00b8 ip 00007f102937308d sp 00007ffd248632d0 error 4 in libxkbcommon-x11.so.0.0.0[7f1029372000+4000]
[ 23.302667] gnome-shell[1106]: segfault at 2060300b8 ip 00007f185f9ca08d sp 00007ffcfb152710 error 4 in libxkbcommon-x11.so.0.0.0[7f185f9c9000+4000]
$ cat /var/log/syslog | grep error
Oct 6 07:18:33 mark kernel: [8112176.475263] audit: type=1400 audit(1665033513.397:37): apparmor="STATUS" operation="profile_remove" info="profile does not exist" error=-2 profile="unconfined" name="/usr/sbin/mariadbd" pid=377011 comm="apparmor_parser"
Oct 6 07:18:37 mark mariadbd[377159]: 2022-10-06 7:18:37 0 [ERROR] mariadbd: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
Oct 6 07:18:37 mark /etc/mysql/debian-start[377180]: Reading datadir from the MariaDB server failed. Got the following error when executing the 'mysql' command line client
Oct 6 07:34:16 mark pipewire[401657]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:34:16 mark pipewire-media-session[401658]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:34:16 mark pipewire[401657]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:39:02 mark cloud-init[689]: 2022-10-06 05:39:01,384 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors.
Oct 6 07:39:02 mark systemd[1]: Condition check resulted in Process error reports when automatic reporting is enabled (file watch) being skipped.
Oct 6 07:39:02 mark systemd[1]: Condition check resulted in Process error reports when automatic reporting is enabled (timer based) being skipped.
Oct 6 07:39:02 mark kernel: [ 8.558820] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:39:02 mark kernel: [ 8.632859] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:39:02 mark kernel: [ 8.718295] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:39:02 mark kernel: [ 8.761076] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:39:02 mark mariadbd[858]: 2022-10-06 7:39:02 0 [ERROR] mariadbd: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
Oct 6 07:39:03 mark /etc/mysql/debian-start[916]: Reading datadir from the MariaDB server failed. Got the following error when executing the 'mysql' command line client
Oct 6 07:39:09 mark /usr/libexec/gdm-x-session[1076]: #011(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Oct 6 07:39:11 mark gnome-session[1116]: gnome-session-binary[1116]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:39:11 mark gnome-session[1116]: gnome-session-binary[1116]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:39:11 mark gnome-session-binary[1116]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:39:11 mark gnome-session-binary[1116]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:39:11 mark kernel: [ 21.908467] gnome-shell[1143]: segfault at 1af300b8 ip 00007f4dac02808d sp 00007ffd0b52b7c0 error 4 in libxkbcommon-x11.so.0.0.0[7f4dac027000+4000]
Oct 6 07:39:13 mark kernel: [ 23.199881] gnome-shell[1160]: segfault at a180b8 ip 00007fbe2a2c208d sp 00007ffd9b11f090 error 4 in libxkbcommon-x11.so.0.0.0[7fbe2a2c1000+4000]
Oct 6 07:45:49 mark pipewire[1651]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:45:49 mark pipewire-media-session[1652]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:45:49 mark pipewire[1651]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:51:29 mark cloud-init[692]: 2022-10-06 05:51:28,589 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors.
Oct 6 07:51:29 mark systemd[1]: Condition check resulted in Process error reports when automatic reporting is enabled (file watch) being skipped.
Oct 6 07:51:29 mark systemd[1]: Condition check resulted in Process error reports when automatic reporting is enabled (timer based) being skipped.
Oct 6 07:51:29 mark kernel: [ 9.426568] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:51:29 mark kernel: [ 9.547525] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:51:29 mark kernel: [ 9.621761] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:51:29 mark kernel: [ 9.693187] EDAC pnd2: Failed to register device with error -22.
Oct 6 07:51:30 mark mariadbd[848]: 2022-10-06 7:51:30 0 [ERROR] mariadbd: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
Oct 6 07:51:30 mark /etc/mysql/debian-start[878]: Reading datadir from the MariaDB server failed. Got the following error when executing the 'mysql' command line client
Oct 6 07:51:36 mark /usr/libexec/gdm-x-session[1038]: #011(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Oct 6 07:51:38 mark gnome-session[1070]: gnome-session-binary[1070]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:51:38 mark gnome-session[1070]: gnome-session-binary[1070]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:51:38 mark gnome-session-binary[1070]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:51:38 mark gnome-session-binary[1070]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Oct 6 07:51:38 mark kernel: [ 22.831223] gnome-shell[1100]: segfault at 25e9b00b8 ip 00007f102937308d sp 00007ffd248632d0 error 4 in libxkbcommon-x11.so.0.0.0[7f1029372000+4000]
Oct 6 07:51:39 mark kernel: [ 23.302667] gnome-shell[1106]: segfault at 2060300b8 ip 00007f185f9ca08d sp 00007ffcfb152710 error 4 in libxkbcommon-x11.so.0.0.0[7f185f9c9000+4000]
Oct 6 07:53:13 mark pipewire[1352]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:53:13 mark pipewire-media-session[1353]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 6 07:53:13 mark pipewire[1352]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
我需要做什么才能修复这个错误?