当我启动时gimp
出现这些错误
$ gimp
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Gtk-Message: 10:24:04.029: Failed to load module "overlay-scrollbar"
Gtk-Message: 10:24:04.029: Failed to load module "overlay-scrollbar"
Gtk-Message: 10:24:04.029: Failed to load module "overlay-scrollbar"
Gtk-Message: 10:24:04.030: Failed to load module "overlay-scrollbar"
gimp_check_updates_callback: loading of https://gimp.org/gimp_versions.json failed: Operation not supported
当我打开一个文件时,它会显示出来,但是当我移动鼠标时,我的桌面变黑,并且我得到一个新的登录屏幕。
我正在运行unity
,ubuntu
显示管理器不工作,它只是变黑了。
我对 snap 和 apparmor 有怀疑,因为启动后我在系统日志中看到的第一条信息gimp
是这样的
Aug 16 10:19:26 kfc-XPS-15-9560 systemd[2128]: Started GNOME Terminal Server.
Aug 16 10:19:26 kfc-XPS-15-9560 systemd[2128]: Started VTE child process 5769 launched by gnome-terminal-server process 5761.
Aug 16 10:19:27 kfc-XPS-15-9560 zeitgeist-datah[5789]: zeitgeist-datahub.vala:227: Unable to get name "org.gnome.zeitgeist.datahub" on the bus!
Aug 16 10:19:31 kfc-XPS-15-9560 kernel: [ 138.211911] kauditd_printk_skb: 4493 callbacks suppressed
Aug 16 10:19:31 kfc-XPS-15-9560 kernel: [ 138.211912] audit: type=1400 audit(1597565971.209:12108): apparmor="DENIED" operation="file_mmap" profile="/snap/core/9804/usr/lib/snapd/snap-confine" name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=5806 comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Aug 16 10:19:31 kfc-XPS-15-9560 kernel: [ 138.211946] audit: type=1400 audit(1597565971.209:12109): apparmor="DENIED" operation="file_mmap" profile="/snap/core/9804/usr/lib/snapd/snap-confine" name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=5806 comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Aug 16 10:19:31 kfc-XPS-15-9560 kernel: [ 138.211996] audit: type=1400 audit(1597565971.209:12110): apparmor="DENIED" operation="file_mmap" profile="/snap/core/9804/usr/lib/snapd/snap-confine" name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=5806 comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Aug 16 10:19:31 kfc-XPS-15-9560 kernel: [ 138.582372] audit: type=1326 audit(1597565971.581:12111): auid=1000 uid=1000 gid=1000 ses=3 pid=5806 comm="gimp" exe="/snap/gimp/292/usr/bin/gimp-2.10" sig=0 arch=c000003e syscall=93 compat=0 ip=0x7f7c33ed0527 code=0x50000
Aug 16 10:19:31 kfc-XPS-15-9560 hud-service[5221]: #033[31mvoid DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*)#033[0m: "No such interface â<80><9c>com.canonical.dbusmenuâ<80><9d> on object at path /org/ayatana/bamf/window/41943043"
我尝试禁用apparmor
,但系统日志中仍然显示“DENIED”
systemctl disable apparmor.service
我在使用 draw 时也遇到过类似的错误libreoffice
,刚启动它并尝试绘制一个矩形时桌面就崩溃了。当我打开由 Autocad 生成的 PDF 文件时也是如此,其中包含许多小元素。在这种情况下,鼠标只是处于非活动状态,但我仍然可以使用键盘进行操作。
因此错误也可能出现在 Xorg 或 nvidia 驱动程序中。
我的系统是19.10升级到20.04.1
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal