Problem executing scripts APT::Update::Post-Invoke-Success

Bug #1729822 reported by mIcHy AmRaNe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elementary OS
New
Undecided
Unassigned

Bug Description

hello, i'm using elementary OS 0.4.1 Loki and i have a problem when i run "apt update" command.

~$ sudo apt update
Hit:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://ppa.launchpad.net/cybre/elementaryplus/ubuntu xenial InRelease
Hit:5 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial InRelease
Hit:7 http://packages.elementary.io/appcenter xenial InRelease
Hit:8 http://prerelease.keybase.io/deb stable InRelease
Hit:9 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
Hit:10 http://ppa.launchpad.net/elementary-os/os-patches/ubuntu xenial InRelease
Hit:11 https://download.sublimetext.com apt/dev/ InRelease
Hit:12 http://ppa.launchpad.net/philip.scott/elementary-tweaks/ubuntu xenial InRelease
Hit:13 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease
The AppStream system cache was updated, but some errors were detected, which might lead to missing metadata. Refer to the verbose log for more information.
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'
E: Sub-process returned an error code

~$ apt-cache policy appstream
appstream:
  Installed: 0.11.3-1~elementary0.4.1
from http://ppa.launchpad.net/elementary-os/os-patches/ubuntu xenial/main amd64 appstream amd64

libappstream4:
  Installed: 0.11.3-1~elementary0.4.1
from http://ppa.launchpad.net/elementary-os/os-patches/ubuntu xenial/main amd64 Packages

using commands of this url fix the problem but it's an old version (0.9.4): https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/comments/24

please how can we fix this problem?

Tags: appstream
Revision history for this message
mIcHy AmRaNe (michyamrane) wrote :

~$ sudo appstreamcli refresh-cache --verbose
.
..
...

** (appstreamcli:25243): DEBUG: WARNING: Ignored component '595b1838-290e-57f9-b130-57c331192067.firmware': The component is invalid.

** (appstreamcli:25243): DEBUG: Stemming language is: en

The AppStream system cache was updated, but some errors were detected, which might lead to missing metadata. Refer to the verbose log for more information.

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.