sudo apt update 时提示 The AppStream system cache was updated, but some components were ignored. Refer to the verbose log for more information.

系统版本:Debian sid
Kernel:5.3.0-3-amd64
AppStream 版本:0.12.9-1

当执行 sudo apt update 时出现 The AppStream system cache was updated, but some components were ignored. Refer to the verbose log for more information. 已尝试重新安装 appstream (0.12.9-1),仍出现该提示。请问这是不是一个错误?是否有修复方法?

类似问题但没有解决方案:
https://bbs.archlinux.org/viewtopic.php?id=228129
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1644498/comments/31

执行 sudo appstreamcli refresh-cache --force --verbose 输出:

** (appstreamcli:18463): DEBUG: 10:01:42.673: Opening cache file: /tmp/appstream-cache-B8UND0.mdb
(appstreamcli:18463): GLib-GIO-DEBUG: 10:01:42.676: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
** (appstreamcli:18463): DEBUG: 10:01:42.677: Added /usr/share/app-info/xmls to XML metadata search path.
** (appstreamcli:18463): DEBUG: 10:01:42.677: Added /var/lib/app-info/yaml to YAML metadata search path.
** (appstreamcli:18463): DEBUG: 10:01:42.677: Added /var/cache/app-info/xmls to XML metadata search path.
(appstreamcli:18463): GLib-DEBUG: 10:01:42.861: posix_spawn avoided (fd close requested) 
(appstreamcli:18463): GLib-DEBUG: 10:01:42.905: posix_spawn avoided (fd close requested) 
(appstreamcli:18463): GLib-DEBUG: 10:01:42.987: posix_spawn avoided (fd close requested) 
(appstreamcli:18463): GLib-DEBUG: 10:01:42.989: posix_spawn avoided (fd close requested) 
(appstreamcli:18463): GLib-DEBUG: 10:01:42.993: posix_spawn avoided (fd close requested) 
(appstreamcli:18463): GLib-DEBUG: 10:01:42.996: posix_spawn avoided (fd close requested) 
** (appstreamcli:18463): DEBUG: 10:01:43.000: Refreshing AppStream cache
** (appstreamcli:18463): DEBUG: 10:01:43.001: Opening cache file: /var/cache/app-info/cache/zh_CN.cache
** (appstreamcli:18463): DEBUG: 10:01:43.002: Cache set to floating mode.
** (appstreamcli:18463): DEBUG: 10:01:43.002: Searching for data in: /usr/share/app-info/xmls
** (appstreamcli:18463): DEBUG: 10:01:43.002: Searching for data in: /var/cache/app-info/xmls
** (appstreamcli:18463): DEBUG: 10:01:43.002: Searching for data in: /var/lib/app-info/yaml
** (appstreamcli:18463): DEBUG: 10:01:43.002: Reading: /usr/share/app-info/xmls/org.gnome.Software.Featured.xml
** (appstreamcli:18463): DEBUG: 10:01:43.003: Reading: /var/lib/app-info/yaml/ftp.cn.debian.org_debian_dists_unstable_main_dep11_Components-amd64.yml.gz
** (appstreamcli:18463): DEBUG: 10:01:43.500: Reading: /var/lib/app-info/yaml/ftp.cn.debian.org_debian_dists_unstable_non-free_dep11_Components-amd64.yml.gz
** (appstreamcli:18463): DEBUG: 10:01:43.505: Reading: /var/lib/app-info/yaml/ftp.cn.debian.org_debian_dists_unstable_contrib_dep11_Components-amd64.yml.gz
** (appstreamcli:18463): DEBUG: 10:01:43.510: Replacing invalid component 'system/os/package/org.kde.kdenlive' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.510: Replacing invalid component 'system/os/package/org.gnome.Polari.desktop' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.510: Replacing invalid component 'system/os/package/mypaint.desktop' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.510: Replacing invalid component 'system/os/package/transmission-gtk.desktop' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.511: Replacing invalid component 'system/os/package/org.gnome.Maps.desktop' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.511: Metadata ignored: Detected colliding IDs: system/os/package/fonts-nanum was already added with the same priority.
** (appstreamcli:18463): DEBUG: 10:01:43.511: Replacing invalid component 'system/os/package/org.gimp.GIMP' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.511: Replacing invalid component 'system/os/package/org.stellarium.Stellarium' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.512: Replacing invalid component 'system/os/package/org.gnome.FeedReader' with new one.
** (appstreamcli:18463): DEBUG: 10:01:43.512: Language zh can not be stemmed.
** (appstreamcli:18463): DEBUG: 10:01:43.515: WARNING: Ignored component 'com.spotify.Client': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.584: WARNING: Ignored component 'org.videolan.VLC': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.584: WARNING: Ignored component 'org.gnome.SoundRecorder': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.589: WARNING: Ignored component 'org.gnome.Todo': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.594: WARNING: Ignored component 'com.github.calo001.fondo': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.630: WARNING: Ignored component 'com.github.fabiocolacio.marker': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.695: WARNING: Ignored component 'org.gnome.tetravex': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.778: WARNING: Ignored component 'com.valvesoftware.Steam': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.864: WARNING: Ignored component 'com.calibre_ebook.calibre': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.890: WARNING: Ignored component 'org.gnome.Podcasts': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.906: WARNING: Ignored component 'com.bitwarden.desktop': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:43.956: WARNING: Ignored component 'de.wolfvollprecht.UberWriter': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.001: WARNING: Ignored component 'net.sourceforge.Klavaro': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.020: WARNING: Ignored component 'org.gnome.Boxes': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.028: WARNING: Ignored component 'com.github.johnfactotum.Foliate': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.045: WARNING: Ignored component 'com.slack.Slack': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.053: WARNING: Ignored component 'inkscape.desktop': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.094: WARNING: Ignored component 'fr.free.Homebank': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.100: WARNING: Ignored component 'com.dropbox.Client': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.104: WARNING: Ignored component 'com.github.junrrein.PDFSlicer': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.153: WARNING: Ignored component 'org.darktable.Darktable': The component is invalid.
** (appstreamcli:18463): DEBUG: 10:01:44.273: Cache returned from floating mode (all changes are now persistent)
** (appstreamcli:18463): DEBUG: 10:01:44.274: Opening cache file: /tmp/appstream-cache-00NFD0.mdb
The AppStream system cache was updated, but some components were ignored. Refer to the verbose log for more information.

该提示在源代码中出现的位置:

貌似没有error输出, 根据惯例,只有warnning不算错误,忽略。

1赞

谢谢~估计未来的更新可以解决吧