Skip to content

Appstream can't handle Flatpak 1.14+ Metadata structure #723

@Vitus-TL

Description

@Vitus-TL

Running Debian 13:

dpkg -l|grep -e appstream -e flatpak|tr -s [:space:]|cut -d' ' -f2,3
appstream 1.0.5-1
flatpak 1.16.1-1
libappstream5:amd64 1.0.5-1
libflatpak0:amd64 1.16.1-1

sudo rm -rf /var/cache/app-info

sudo flatpak update --appstream
Updating appstream data for remote flathub

sudo appstreamcli refresh --force --verbose 2>&1|grep flathub
** (appstreamcli:7184): WARNING **: 16:12:39.320: Flatpak metadata repository at '/var/lib/flatpak/appstream/flathub' is not a directory.

ls -al /var/lib/flatpak/appstream/flathub/x86_64/active/
total 47684
drwxr-xr-x 3 root root 4096 Aug 5 16:00 .
drwxr-xr-x 3 root root 4096 Aug 5 16:00 ..
-rw-r--r-- 2 root root 40337438 Jan 1 1970 appstream.xml
-rw-r--r-- 1 root root 8467038 Aug 5 16:00 appstream.xml.gz
drwxr-xr-x 5 root root 4096 Jan 1 1970 icons

/var/lib/flatpak/appstream/flathub/x86_64/active$ file *
appstream.xml: XML 1.0 document, Unicode text, UTF-8 text, with very long lines (2077)
appstream.xml.gz: gzip compressed data, from Unix, original size modulo 2^32 40337438
icons: directory

Also, the warning message is misleading

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions