Comment 3 for bug 1982198

Revision history for this message
Luís Infante da Câmara (luis220413) wrote (last edit ):

It is coming from the appstream source package.

Steps to reproduce:
1. Create a minimal Ubuntu 20.04 chroot with all packages that install files in /etc/apt/apt.conf.d on my Ubuntu 20.04 VM installed (that is, update-notifier-common, debconf, aptdaemon, apt-config-icons, apt-config-icons-hidpi, packagekit, appstream, apt, unattended-upgrades, ubuntu-advantage-tools, snapd and command-not-found).
2. Get the source code for all packages in the chroot with apt source SOURCE_PACKAGE_NAMES.
3. Run the following command:

$ grep -Fr 'Can not add an empty (zero-length) key to the cache'
appstream-0.12.10/.pc/01_less-long-token-noise.patch/src/as-cache.c: "Can not add an empty (zero-length) key to the cache");
appstream-0.12.10/src/as-cache.c: "Can not add an empty (zero-length) key to the cache");