![如何恢复 18.04 版中导致登录屏幕损坏的丢失的 gdm3 文件](https://linux22.com/image/908983/%E5%A6%82%E4%BD%95%E6%81%A2%E5%A4%8D%2018.04%20%E7%89%88%E4%B8%AD%E5%AF%BC%E8%87%B4%E7%99%BB%E5%BD%95%E5%B1%8F%E5%B9%95%E6%8D%9F%E5%9D%8F%E7%9A%84%E4%B8%A2%E5%A4%B1%E7%9A%84%20gdm3%20%E6%96%87%E4%BB%B6.png)
gdm3 登录屏幕 GUI 出现问题,图形和颜色很奇怪。输入字段也经常不可见/被遮挡,但我可以通过 Enter > password 盲目登录桌面,Gnome DE 看起来正常。usr/share/gnome-shell/theme/assets/login-background.jpg
根据下面的 syslog 输出,问题似乎部分在于缺少文件。不知道额外的 gnome-shell JS 错误是否相关。assets
根本没有目录,css 和 svg 文件以及我安装的自定义主题的一些符号链接都存在usr/share/gnome-shell/theme
。事实上,系统上的任何地方都没有 login-background.jpg 文件。
阅读其他 gdm3 问题时,我看到建议重新安装 gnome-shell-common 以恢复 gdm3 文件,但其他反馈表明使用此方法会导致登录/主题/等损坏。我该如何安全地解决这个问题?谢谢
系统日志:
Mar 3 12:41:12 ubu-desk org.gnome.Shell.desktop[2139]: [2641:2641:0303/124112.997066:ERROR:media_internals.cc(112)] Cannot get RenderProcessHost
Mar 3 12:41:14 ubu-desk gnome-shell[2139]: JS ERROR: Exception in callback for signal: activate: Error: Error invoking IBus.set_global_engine_async:
Expected function for callback argument callback, got undefined#012setEngine@resource:///org/gnome/shell/misc/ibusManager.js:207:
9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012activateInputSource@resource:///org/gnome/shell/ui/status/keyboard.js:490:13#012wrapper@
resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_emit@resource:///org/gnome/gjs/modules/signals.js:128:27#012activate@
resource:///org/gnome/shell/ui/status/keyboard.js:65:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_inputSourcesChanged@
resource:///org/gnome/shell/ui/status/keyboard.js:620:13#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012reload@
resource:///org/gnome/shell/ui/status/keyboard.js:369:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_ibusSetContentType@
resource:///org/gnome/shell/ui/status/keyboard.js:691:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_emit@
resource:///org/gnome/gjs/modules/signals.js:128:27#012_setContentType@resource:///org/gnome/shell/misc/ibusManager.js:183:9#012wrapper@
resource:///org/gnome/gjs/modules/_legacy.js:82:22
[...]
Mar 3 12:43:35 ubu-desk gnome-shell[1522]: Failed to load file:///usr/share/gnome-shell/theme/assets/login-background.jpg: Error opening file /usr/share/gnome-shell/theme/assets/login-background.jpg: No such file or directory
Mar 3 12:43:36 ubu-desk gnome-shell[1522]: message repeated 6 times: [ Failed to load file:///usr/share/gnome-shell/theme/assets/login-background.jpg: Error opening file /usr/share/gnome-shell/theme/assets/login-background.jpg: No such file or directory]
Mar 3 12:43:36 ubu-desk gsd-color[1780]: failed to set screen _ICC_PROFILE: Failed to open file “/home/user/.local/share/icc/edid-c1a0cd69078353a118ddc74a6c339113.icc”: Permission denied
系统:
Ubuntu 18.04.2 LTS (up-to-date)
4.18.0-15-generic (via 18.04.2 HWE stack)
gdm3 3.28.3-0ubuntu18.04.4
gir1.2-gdm-1.0 3.28.3-0ubuntu18.04.4
libgdm1 3.28.3-0ubuntu18.04.4
gnome-control-center 1:3.28.2-0ubuntu0.18.04.2
gnome-initial-setup 3.28.0-2ubuntu6.16.04.4
gnome-menus 3.13.3-11ubuntu1.1
gnome-session-bin 3.28.1-0ubuntu3
gnome-session-canberra 0.30-5ubuntu1
gnome-session-common 3.28.1-0ubuntu3
gnome-settings-daemon 3.28.1-0ubuntu1.1
gnome-settings-daemon-schemas 3.28.1-0ubuntu1.1
gnome-shell 3.28.3-0ubuntu0.18.04.4
gnome-shell-common 3.28.3-0ubuntu0.18.04.4
gnome-shell-extension-appindicator 18.04.1
gnome-shell-extension-ubuntu-dock 0.9.1ubuntu18.04.3
gnome-shell-extensions 3.28.0-2
gnome-software 3.28.1-0ubuntu4.18.04.8
gnome-software-common 3.28.1-0ubuntu4.18.04.8
gnome-software-plugin-snap 3.28.1-0ubuntu4.18.04.8
gnome-themes-extra 3.28-1ubuntu1
gnome-themes-extra-data 3.28-1ubuntu1
gnome-themes-standard 3.28-1ubuntu1
gnome-tweaks 3.28.1-1
根据要求提供的其他信息:
$ sudo systemctl status colord
colord.service - Manage, Install and Generate Color Profiles
Loaded: loaded (/lib/systemd/system/colord.service; static; vendor preset: enabled)
Active: active (running) since Sun 2019-03-03 18:27:36 EST; 29min ago
Main PID: 1869 (colord)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/colord.service
└─1869 /usr/lib/colord/colord
Mar 03 18:27:36 ubu-desk systemd[1]: Starting Manage, Install and Generate Color Profiles...
Mar 03 18:27:36 ubu-desk systemd[1]: Started Manage, Install and Generate Color Profiles.
$ grep -i colord /var/log/syslog*
/var/log/syslog:Mar 3 11:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 11:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 12:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 12:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 13:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 13:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 14:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 14:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 15:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 15:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 16:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 16:17:59 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 17:25:55 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 17:25:55 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 18:25:55 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA: Error opening directory '/var/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-MZlaaA': Permission denied
/var/log/syslog:Mar 3 18:25:55 ubu-desk gsd-housekeepin[2306]: Failed to enumerate children of /tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts: Error opening directory '/tmp/systemd-private-3ac79b469d814451abc7a94863fa97be-colord.service-9wCBts': Permission denied
/var/log/syslog:Mar 3 18:27:36 ubu-desk dbus-daemon[1334]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.64' (uid=121 pid=1727 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 10:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a: Error opening directory '/var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a': Permission denied
/var/log/syslog.1:Mar 2 10:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo: Error opening directory '/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo': Permission denied
/var/log/syslog.1:Mar 2 11:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a: Error opening directory '/var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a': Permission denied
/var/log/syslog.1:Mar 2 11:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo: Error opening directory '/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo': Permission denied
/var/log/syslog.1:Mar 2 12:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a: Error opening directory '/var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a': Permission denied
/var/log/syslog.1:Mar 2 12:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo: Error opening directory '/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo': Permission denied
/var/log/syslog.1:Mar 2 13:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a: Error opening directory '/var/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-h3RI7a': Permission denied
/var/log/syslog.1:Mar 2 13:42:38 ubu-desk gsd-housekeepin[5923]: Failed to enumerate children of /tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo: Error opening directory '/tmp/systemd-private-16d192ca05624438bf88c70ad69b98dd-colord.service-mpE8qo': Permission denied
/var/log/syslog.1:Mar 2 14:35:00 ubu-desk dbus-daemon[1388]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.65' (uid=121 pid=1834 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 15:28:21 ubu-desk dbus-daemon[1405]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.67' (uid=121 pid=1841 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 16:28:32 ubu-desk gsd-housekeepin[2361]: Failed to enumerate children of /var/tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-YuKHaY: Error opening directory '/var/tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-YuKHaY': Permission denied
/var/log/syslog.1:Mar 2 16:28:32 ubu-desk gsd-housekeepin[2361]: Failed to enumerate children of /tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-DdQmvQ: Error opening directory '/tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-DdQmvQ': Permission denied
/var/log/syslog.1:Mar 2 17:28:32 ubu-desk gsd-housekeepin[2361]: Failed to enumerate children of /var/tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-YuKHaY: Error opening directory '/var/tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-YuKHaY': Permission denied
/var/log/syslog.1:Mar 2 17:28:32 ubu-desk gsd-housekeepin[2361]: Failed to enumerate children of /tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-DdQmvQ: Error opening directory '/tmp/systemd-private-c8588750b47b4c078b0d7d3099120320-colord.service-DdQmvQ': Permission denied
/var/log/syslog.1:Mar 2 18:21:43 ubu-desk dbus-daemon[1470]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.68' (uid=121 pid=1881 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 18:23:06 ubu-desk dbus-daemon[1472]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.66' (uid=121 pid=1882 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 18:25:42 ubu-desk dbus-daemon[1399]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.65' (uid=121 pid=1839 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 19:18:17 ubu-desk dbus-daemon[1457]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.66' (uid=121 pid=3187 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 19:27:17 ubu-desk dbus-daemon[1383]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.65' (uid=121 pid=1820 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 19:41:18 ubu-desk dbus-daemon[1442]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.62' (uid=121 pid=1802 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 20:18:15 ubu-desk dbus-daemon[1435]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.64' (uid=121 pid=1863 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 20:22:28 ubu-desk dbus-daemon[1307]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.63' (uid=121 pid=1650 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 20:22:28 ubu-desk colord-sane: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address
/var/log/syslog.1:Mar 2 20:40:50 ubu-desk dbus-daemon[1316]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.63' (uid=121 pid=1711 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 21:04:36 ubu-desk dbus-daemon[1301]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.64' (uid=121 pid=1712 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 21:09:15 ubu-desk dbus-daemon[1293]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.65' (uid=121 pid=1650 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 21:09:15 ubu-desk colord-sane: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address
/var/log/syslog.1:Mar 2 22:09:22 ubu-desk gsd-housekeepin[2237]: Failed to enumerate children of /var/tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-hPnkcl: Error opening directory '/var/tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-hPnkcl': Permission denied
/var/log/syslog.1:Mar 2 22:09:22 ubu-desk gsd-housekeepin[2237]: Failed to enumerate children of /tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-qAVab7: Error opening directory '/tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-qAVab7': Permission denied
/var/log/syslog.1:Mar 2 23:09:22 ubu-desk gsd-housekeepin[2237]: Failed to enumerate children of /var/tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-hPnkcl: Error opening directory '/var/tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-hPnkcl': Permission denied
/var/log/syslog.1:Mar 2 23:09:22 ubu-desk gsd-housekeepin[2237]: Failed to enumerate children of /tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-qAVab7: Error opening directory '/tmp/systemd-private-708805c760d842af870d2f82461f9971-colord.service-qAVab7': Permission denied
/var/log/syslog.1:Mar 2 23:40:33 ubu-desk dbus-daemon[1299]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.63' (uid=121 pid=1730 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 2 23:40:33 ubu-desk colord-sane: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address
/var/log/syslog.1:Mar 3 10:17:39 ubu-desk dbus-daemon[1302]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.65' (uid=121 pid=1780 comm="/usr/lib/gnome-settings-daemon/gsd-color " label="unconfined")
/var/log/syslog.1:Mar 3 10:17:39 ubu-desk colord-sane: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address