Public bug reported:

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

** Affects: appstream (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to appstream in Ubuntu.
https://bugs.launchpad.net/bugs/1813479

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

Status in appstream package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1813479/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to