我目前在安装 Ubuntu 20.04.2 时遇到了一个重大问题,我无法使用任何 Ubuntu 原生程序(例如软件中心、文件管理器等),侧屏幕上也没有显示任何图标。当我尝试运行任何此类程序时,例如编辑,在终端上,我收到以下错误:
(gedit:5943): Gtk-WARNING **: 21:11:57.857: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Aborted (core dumped)
我在其他一些问题上看到,问题可能来自 /usr/share/mime 的权限设置不正确,因此我使用 ls -l usr/share/mime 检查了这些值。我得到了以下输出:
total 436
-rw-r--r-- 1 root root 11177 Feb 23 20:56 aliases
drwxr-xr-x 2 root root 24576 Feb 23 20:56 application
drwxr-xr-x 2 root root 4096 Feb 23 20:56 audio
drwxr-xr-x 2 root root 4096 Feb 23 20:56 font
-rw-r--r-- 1 root root 21828 Feb 23 20:56 generic-icons
-rw-r--r-- 1 root root 34871 Feb 23 20:56 globs
-rw-r--r-- 1 root root 38586 Feb 23 20:56 globs2
-rw-r--r-- 1 root root 64 Feb 23 20:56 icons
drwxr-xr-x 2 root root 4096 Feb 23 20:56 image
drwxr-xr-x 2 root root 12288 Feb 23 20:56 inode
-rw-r--r-- 1 root root 31277 Feb 23 20:56 magic
drwxr-xr-x 2 root root 4096 Feb 23 20:56 message
-rw-r--r-- 1 root root 153872 Feb 23 20:56 mime.cache
drwxr-xr-x 2 root root 4096 Feb 23 20:56 model
drwxr-xr-x 2 root root 4096 Feb 23 20:56 multipart
drwxr-xr-x 2 root root 4096 Feb 22 17:02 packages
-rw-r--r-- 1 root root 18906 Feb 23 20:56 subclasses
drwxr-xr-x 2 root root 4096 Feb 23 20:56 text
-rw-r--r-- 1 root root 1140 Feb 23 20:56 treemagic
-rw-r--r-- 1 root root 22550 Feb 23 20:56 types
-rw-r--r-- 1 root root 5 Feb 23 20:56 version
drwxr-xr-x 2 root root 4096 Feb 23 20:56 video
drwxr-xr-x 2 root root 4096 Feb 23 20:56 x-content
drwxr-xr-x 2 root root 4096 Feb 23 20:56 x-epoc
-rw-r--r-- 1 root root 1775 Feb 23 20:56 XMLnamespaces
如果我正确理解了输出,则任何用户都可以读取这些文件,因此我不确定还有什么可能导致此错误。有人可以帮我追踪错误来源吗?
答案1
重新安装libgdk-pixbuf2.0-0
:
sudo apt reinstall libgdk-pixbuf2.0-0