'repo_comps: Document is empty' messages when running dnf commands

Hello. I’ve had some issues with my dnf updates recently, where certain updates wouldn’t download/apply. I’ve since managed to mostly fix this by clearing yum cache, rebuilding rpm database and removing the problematic packages. However, one small problem remains. Whenever I run any dnf command (install/update), these messages appear:

repo_comps: Document is empty
 at line 1:1
repo_comps: Document is empty
 at line 1:1
repo_comps: Document is empty
 at line 1:1

Packages/updates install works fine now as far as I can tell, but this message is persistent.

I am struggling to find any information about this online. Can anyone point me in the right direction here?

I am running Fedora 42 Workstation.

Hi and welcome to :fedora:
Maybe have a look at 2401684 – DNF output begins with "repo_comps: Document is empty", then proceeds as normal and see if the solution there helps resolve your issue.

Thanks

3 Likes

Thanks for the rapid response, that’s it!

It’s the exact issue I was having, even down to the problematic package group (cosmic-desktop)! Removing the empty .xml files in /usr/lib/sysimage/libdnf5/comps_groups solved the issue, as it did for the person in the report.

I did mess around with cosmic-desktop, using the copr version and then switching to the 'stable` version in the main repos. That probably bunged it up somehow.

Marking as solution, thanks!

2 Likes