Since quite some time, I get several lines of F: Ignoring duplicate content rating
before any reasonable output, when I run flatpak commands, like list or update. I am not sure if that does any harm, but it is a bit annoying.
The warning happens because the metainfo (formerly known as appdata) for one of the apps in one of the flatpak remotes you have configured erroneously has two <content_rating> elements.
The fix will have to be applied to the app which has the erroneous data, so the problem is with one of the flatpak remotes you have configured, and it will be affecting every user of that remote.
You could try and find the problematic remote/app by running the following command in a terminal:
See What about R in endless for more info how I installed RStudio 4 years ago. I find it frustrating that there is absolutely no progress for a RStudio flatpak.
In the meantime I did a sudo flatpak repair without success. Trying to find out, what is causing these errors, I grep'ed the eos-diagnostic files for “Ignoring duplicate content rating” and learned that these messages started to occur in January 2020. Trying to find out, what I installed back then, I tried flatpak history but this fails miserably saying: error: appstream2/x86_64 is not application or runtime (both as normal user and with sudo). @pwithnall do you have any further ideas/suggestions?
It’s our own apps from eos-apps. See /var/lib/flatpak/appstream/eos-apps/x86_64/active/appstream.xml. For example:
<component type="desktop">
<id>com.endlessm.animals.es_GT.desktop</id>
<name>Animales</name>
<summary>Aprende acerca de las criaturas de la Tierra</summary>
<description><p>Los animales son increíbles. Desde el majestuoso león hasta el extraño y fascinante ornitorrinco, hay mucho que aprender sobre las criaturas que habitan nuestro mundo. Conoce todo el reino animal con este programa. A toda la familia le encantará aprender sobre las características, hábitos y ambientes de los animales, tanto a pequeños como grandes. Es especialmente importante estudiar el reino animal ahora que tantas especies están en peligro de extinción.</p></description>
<icon height="64" width="64" type="cached">64x64/com.endlessm.animals.es_GT.png</icon>
<categories>
<category>Education</category>
<category>Reference</category>
</categories>
<project_license>proprietary</project_license>
<url type="homepage">https://endlessos.com</url>
<content_rating type="oars-1.1"/>
<content_rating type="oars-1.1"/>
<provides>
<binary>com.endlessm.animals.es_GT</binary>
</provides>
<languages>
<lang percentage="100">es</lang>
</languages>
<metadata>
<value key="GnomeSoftware::popular-background">https://com-endless--cloud-soma-prod--shared-portal.s3.amazonaws.com/app.924.appCenterThumbnail.d44d51e5-a50e-448e-a603-c0524b29d295_201810151913342424.jpg</value>
</metadata>
<bundle type="flatpak" runtime="com.endlessm.apps.Platform/x86_64/5" sdk="com.endlessm.apps.Sdk/x86_64/5">app/com.endlessm.animals.es_GT/x86_64/eos3</bundle>
</component>
There’s nothing you can do client-side to fix this. We’re not currently updating these apps because we are gradually migrating to using Kolibri to distribute offline learning materials, so we’re not in a position to fix this right now either. Sorry.
It’s the cause for the F: Ignoring duplicate content rating errors.
The problem with flatpak history is a separate bug in flatpak, which has been fixed upstream but that fix hasn’t made it into Endless OS yet. This should be fixed next time we update flatpak.