AppStream system cache was updated, but problems were found:
Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml
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
Эта проблема была выявлена здесь и здесь, но ни одно из предлагаемых решений не сработало для меня. Вот моя команда и вывод:
$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Hit:3 http://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease
Ign:4 http://linux.dropbox.com/ubuntu wily InRelease
Hit:5 http://archive.canonical.com xenial InRelease
Get:6 http://linux.dropbox.com/ubuntu wily Release [6,596 B]
Hit:8 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease
Get:9 http://linux.dropbox.com/ubuntu wily Release.gpg [473 B]
Hit:10 https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/ InRelease
Hit:11 https://repo.skype.com/deb stable InRelease
Hit:12 http://ppa.launchpad.net/webupd8team/atom/ubuntu xenial InRelease
Hit:13 http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu xenial InRelease
Ign:14 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:15 http://dl.google.com/linux/chrome/deb stable Release
Hit:16 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:18 http://dell.archive.canonical.com/updates xenial-dell-dino2-mlk InRelease
Hit:19 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:20 http://dell.archive.canonical.com/updates xenial-dell-service InRelease
Hit:7 http://screenshots.getdeb.net xenial-getdeb InRelease
Hit:21 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:22 http://dell.archive.canonical.com/updates xenial-dell InRelease
Hit:23 http://dell.archive.canonical.com/updates xenial-dell-dino2-mlk Release
Hit:25 http://dell.archive.canonical.com/updates xenial-dell-service Release
Hit:27 http://dell.archive.canonical.com/updates xenial-dell Release
Fetched 7,069 B in 6s (1,085 B/s)
AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml
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
Я включил xenial-backports и AppStream CLI tool version: 0.10.6. Я попробовал $ sudo appstreamcli refresh --force, как было предложено в одном предлагаемом решении, но это не помогает.
Ошибка не появляется каждый раз, когда я делаю sudo apt update, но я не знаю, почему она продолжает появляться.
Моя машинная информация:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
Спасибо и извиняемся, что это дублированный вопрос.