Original report for dnf: https://github.com/rpm-software-management/dnf/issues/2096 The issue is the same in dnf5.