Problem: I install a fresh system with kickstart from DVD iso. The system is not internet facing. When the installation is done, I register the system to my Foreman server, remove the /etc/yum.repos.d/CentOS* and do a yum -y update. I get all kinds of messages like this:
Error: Package: libreport-web-2.1.11-53.el7.centos.x86_64 (@anaconda)
Requires: /sbin/ldconfig
Removing: glibc-2.17-317.el7.x86_64 (@anaconda)
Not found
Updated By: glibc-2.17-324.el7_9.x86_64 (CBS_CentOS_CentOS_7_Updates)
Not found
Error: Package: libtasn1-4.10-1.el7.x86_64 (@anaconda)
Requires: /sbin/ldconfig
Removing: glibc-2.17-317.el7.x86_64 (@anaconda)
Not found
Updated By: glibc-2.17-324.el7_9.x86_64 (CBS_CentOS_CentOS_7_Updates)
Not found
Error: Package: GeoIP-1.5.0-14.el7.x86_64 (@anaconda)
Requires: /sbin/ldconfig
Removing: glibc-2.17-317.el7.x86_64 (@anaconda)
Not found
Updated By: glibc-2.17-324.el7_9.x86_64 (CBS_CentOS_CentOS_7_Updates)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
For some reason yum can’t find the packages needed. When I download the needed packages which cause the dependency issues and install them manually with rpm -Uvh, everything looks fine and yum update works as expected.
This leads me to believe there must be something wrong with the metadata, but I tried everything possible (complete syncing of the repo’s, publishing metadata, etc.)
Expected outcome: Register system, remove original .repo files from kickstart, yum update -y should give an updated system.
Katello 4.1.1 has a serious bug due to which it doesn’t import filelists from the rpms. See topic Cannot update puppet-agent to 6.24.0 on foreman servers Your errors look a lot like that. There is already a patch and a repair script available but it’s not yet in Katello updates…
Please read my first response and the linked topic. As I wrote before: there is a bug in Katello 4.1.1 which prevents filelists from rpms to be synced/imported. Read the other topic and verify if it’s the same problem…