"appstreamcli refresh-cache" does not work without shared-mime-info

Bug #1813479 reported by andreymal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
appstream (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Steps to reproduce:

$ sudo apt-get install appstream
$ sudo appstreamcli refresh-cache --force --verbose
AppStream cache update completed successfully.
# (it works good, because shared-mime-info is installed by default in Ubuntu)

$ sudo apt-get remove shared-mime-info
$ sudo apt-get remove --purge shared-mime-info

$ sudo appstreamcli refresh-cache --force --verbose
** (appstreamcli:21810): DEBUG: 15:55:46.549: Reading: /var/lib/app-info/yaml/mirror.yandex.ru_ubuntu_dists_bionic_main_dep11_Components-amd64.yml.gz
** (appstreamcli:21810): DEBUG: 15:55:46.550: WARNING: Invalid DEP-11 file found. Could not parse YAML: control characters are not allowed
# ... many lines with errors ...
AppStream system cache was updated, but problems were found: Metadata files have errors: [big list of files]

I think this is just a missing dependency, just add shared-mime-info as a dependency for appstream or libappstream4 package

Ubuntu version (maybe cosmic is also affected, I didn't test it):

$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

appstream version:

$ dpkg -s libappstream4 | grep -i version
Version: 0.12.0-3ubuntu1
$ dpkg -s appstream | grep -i version
Version: 0.12.0-3ubuntu1

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appstream - 0.12.10-1

---------------
appstream (0.12.10-1) unstable; urgency=medium

  * New upstream version: 0.12.10
  * appstream: Depend on shared-mime-info explicitly (LP: #1813479)
  * Update build dependencies (added libsoup2.4-dev)
  * Update symbols file
  * less-long-token-noise.patch: Make less noise when encountering
    excessively long search tokens (Closes: #942438)
  * Flag d/rules as not requiring root
  * Bump standards version: No changes needed

 -- Matthias Klumpp <email address hidden> Sat, 18 Jan 2020 18:58:00 +0100

Changed in appstream (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.