Fresh flatpak on ubuntu 22.04 not searching

$ flatpak --version
Flatpak 1.12.7

$ flatpak search vlc
F: Failed to parse /var/lib/flatpak/appstream/flathub/x86_64/active/appstream.xml.gz file: Error en la línea 1960, carácter 29:

already set ’
Organic Maps is a free Android & iOS offline maps app for travelers,
tourists, hikers, and cyclists.
It uses crowd-sourced OpenStreetMap data and is developed with love by
’ and tried to replace with ’ (’
Ninguna coincidencia

I am new to flatkpak so any help or hint is appreciated.

1 Like

I am seeing this too, in Linux Mint 21.1

$ flatpak search libreoffice
F: Failed to parse /var/lib/flatpak/appstream/flathub/x86_64/active/appstream.xml.gz file: Error on line 1960 char 29: <p> already set '
      Organic Maps is a free Android & iOS offline maps app for travelers,
      tourists, hikers, and cyclists.
      It uses crowd-sourced OpenStreetMap data and is developed with love by
      ' and tried to replace with ' ('
No matches found
$

I think this is a bug (syntax error) in the xml file that lists all the flathub applications.

I think a command to update this file might fix it, assuming the error has been corrected by flathub.org people already? However, I tried removing the remote with

$ flatpak remote-delete flathub

and then adding it afresh, with

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

But this did not solve the issue. So, I think the issue is with the data at flathub.org, so it will be fixed when the folks there fix the issue, and there is nothing that you I as an end-user can do.

1 Like

This has been resolved since.