I'm still getting the error after running apt-get update appstream: Installerad: 0.9.4-1ubuntu2 Kandidat: 0.9.4-1ubuntu2 Versionstabell: 0.10.1-1~ubuntu16.04.1 100 100 http://se.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages *** 0.9.4-1ubuntu2 400 400 http://se.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages 100 /var/lib/dpkg/status 0.9.4-1ubuntu1 500 500 http://se.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 0.9.4-1 500 500 http://se.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
# Läs:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Bra:2 http://se.archive.ubuntu.com/ubuntu xenial InRelease Läs:3 http://se.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Bra:4 http://archive.canonical.com/ubuntu xenial InRelease Läs:5 http://se.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Läs:6 http://se.archive.ubuntu.com/ubuntu xenial-proposed InRelease [253 kB] Bra:7 http://download.virtualbox.org/virtualbox/debian xenial InRelease Läs:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [189 kB] Läs:9 http://se.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [440 kB] Läs:10 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [184 kB] Läs:11 http://se.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [433 kB] Läs:12 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [77,7 kB] Läs:13 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [68,2 kB] Läs:14 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [47,6 kB] Läs:15 http://se.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [292 kB] Läs:16 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [64,5 kB] Läs:17 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [62,3 kB] Läs:18 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [19,4 kB] Läs:19 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [25,6 kB] Läs:20 http://se.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [180 kB] Läs:21 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B] Läs:22 http://se.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [368 kB] Läs:23 http://se.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [364 kB] Läs:24 http://se.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [121 kB] Läs:25 http://se.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [145 kB] Läs:26 http://se.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2 520 B] Läs:27 http://se.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [208 B] Läs:28 http://se.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [212 B] Läs:29 http://se.archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [212 B] Läs:30 http://se.archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages [85,3 kB] Läs:31 http://se.archive.ubuntu.com/ubuntu xenial-proposed/universe i386 Packages [83,1 kB] Läs:32 http://se.archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en [25,7 kB] Läs:33 http://se.archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 DEP-11 Metadata [9 120 B] Läs:34 http://se.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages [102 kB] Läs:35 http://se.archive.ubuntu.com/ubuntu xenial-proposed/main i386 Packages [101 kB] Läs:36 http://se.archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en [35,1 kB] Läs:37 http://se.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 DEP-11 Metadata [35,0 kB] Läs:38 http://se.archive.ubuntu.com/ubuntu xenial-proposed/main DEP-11 64x64 Icons [29,0 kB] Läs:39 http://se.archive.ubuntu.com/ubuntu xenial-proposed/multiverse amd64 DEP-11 Metadata [212 B] Hämtade 4 149 kB på 3s (1 074 kB/s) AppStream cache update completed, but some metadata was ignored due to errors. Läser paketlistor… Färdig # sudo appstreamcli refresh --force --verbose . . ** (appstreamcli:6591): DEBUG: Removing old rebuild-dir from previous database rebuild. AppStream cache update completed, but some metadata was ignored due to errors. # Anything more I can do to get rid of this error? -- //Tommy -- 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/1644498 Title: apt-get update returns "AppStream cache update completed, but some metadata was ignored due to errors." periodically Status in appstream package in Ubuntu: Fix Released Status in appstream source package in Xenial: Fix Committed Bug description: [Impact] * The recent update of the Ubuntu asgen instance yielded it to generate modern metadata. While we could tell asgen to generate old- style metadata, fixing appstream is the better idea, since we already applied similar patches to appstream-glib (and having this package hold back updates is a bad idea). Currently, the unknown metadata is considered to be broken by appstream and it displays a warning about that issue during an `apt update` * The attached patch includes a second change to make AppStream more robust against broken YAML data, ensuring LP #1579712 can not be triggered on purpose or due to broken disks creating damaged YAML structure. [Test Case 1] * apt update * Check for errors about metadata being ignored [Test Case 2] * appstreamcli refresh --force * Check for errors about metadata being ignored * Check if we ignored data that should be present (search for it via `appstreamcli search <term>`) * Run `appstreamcli status` and see if we still have information on the same amount of components as prior to the update. [Regression Potential] * Medium; The works case would be KDE Discover and GNOME Software loosing information on available software, but this risk is very low and the patch to fix this bug is very simple and has almost no regression potential. The YAML parser fix patch is a bit more complex, but should have no sideeffects. [Original report] Periodically I get emails from a machine with the subject: Cron <root@Jenkins> if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi And a body of: AppStream cache update completed, but some metadata was ignored due to errors. I have a machine monitored by Munin. One of the plugins used on that machine is /etc/munin/plugins/apt which periodically counts the number of packets that can be upgraded. This is achieved by a crontab entry installed from the package which looks like this: # # cron-jobs for munin-node # MAILTO=root # If the APT plugin is enabled, update packages databases approx. once # an hour (12 invokations an hour, 1 in 12 chance that the update will # happen), but ensure that there will never be more than two hour (7200 # seconds) interval between updates.. */5 * * * * root if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi For many months everything has been running smoothly. On the 23rd November 2016 I started getting the "AppStream cache update completed, but some metadata was ignored due to errors." messages at a rate of about ten a day. I did a quick Google search which turned up a handful of bugs from earlier this year, such as Bug1575248. That is marked as Fixed Released though, so I am raising this new bug. If there are any further diagnostic details I can provide, please let me know. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: appstream 0.9.4-1ubuntu1 ProcVersionSignature: Ubuntu 4.4.0-47.68-generic 4.4.24 Uname: Linux 4.4.0-47-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 Date: Thu Nov 24 09:57:18 2016 InstallationDate: Installed on 2013-05-08 (1295 days ago) InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130508) JournalErrors: -- Logs begin at Wed 2016-11-23 19:25:01 GMT, end at Thu 2016-11-24 09:57:24 GMT. -- Nov 24 02:22:17 hostname systemd-tmpfiles[27330]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring. ProcEnviron: TERM=xterm-256color SHELL=/bin/bash PATH=(custom, no user) LANG=en_GB.UTF-8 LANGUAGE=en_GB:en SourcePackage: appstream UpgradeStatus: Upgraded to xenial on 2016-08-24 (91 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1644498/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp