+++ This bug was initially created as a clone of Bug #1689331 +++ Description of problem: packagekit doesn't honor skip_if_unavailable=False for local repositories # rpm -q libdnf PackageKit libdnf-0.22.5-4.el8.x86_64 PackageKit-1.1.12-2.el8.x86_64 # cat /etc/yum.repos.d/modular.repo [modular-repo] name=modular-repo baseurl=file:///no/such/repo #baseurl=http://foo.redhat.com/ModRepo enabled=1 gpgcheck=0 skip_if_unavailable=False # pkcon install TestA Resolving [===== ] (21%) Command failed: This tool could not find any available package: /no/such/repo was not found don't give up, try again # pkcon install TestA Resolving [=========================] Finished [ ] (0%) The following packages have to be installed: TestA-1-2.noarch TestA Package Proceed with changes? [N/y] The package above comes from a different repo, this should not be happening. This is not happening for http repos # cat /etc/yum.repos.d/modular.repo [modular-repo] name=modular-repo #baseurl=file:///no/such/repo baseurl=http://foo.redhat.com/ModRepo enabled=1 gpgcheck=0 skip_if_unavailable=False # systemctl restart packagekit # pkcon install TestA Resolving [===== ] (21%) Command failed: This tool could not find any available package: cannot update repo 'modular-repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (6): Couldn't resolve host name for http://foo.redhat.com/ModRepo/repodata/repomd.xml [Could not resolve host: foo.redhat.com] # pkcon install TestA Resolving [===== ] (21%) Command failed: This tool could not find any available package: cannot update repo 'modular-repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (6): Couldn't resolve host name for http://foo.redhat.com/ModRepo/repodata/repomd.xml [Could not resolve host: foo.redhat.com] # pkcon install TestA Resolving [===== ] (21%) Command failed: This tool could not find any available package: cannot update repo 'modular-repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (6): Couldn't resolve host name for http://foo.redhat.com/ModRepo/repodata/repomd.xml [Could not resolve host: foo.redhat.com] # pkcon install TestA Resolving [===== ] (21%) Command failed: This tool could not find any available package: cannot update repo 'modular-repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (6): Couldn't resolve host name for http://foo.redhat.com/ModRepo/repodata/repomd.xml [Could not resolve host: foo.redhat.com]