Tuesday, July 25, 2017

system-config-kickstart error in CentOS 7

Using system-config-kickstart version 2.9.6-1.el7 in CentOS 7 yields the following error, when attempting to select packages.

"Package selection is disabled due to problems downloading package information."

Screenshot of the message in the "Package Selection" menu.


It seems someone filed a bug with CentOS regarding this problem:  See https://bugs.centos.org/view.php?id=9611

As stated by the bug poster, the issue can be fixed by modifying line 161 of the file: /usr/share/system-config-kickstart/packages.py

156         # If we're on a release, we want to try the base repo first.  Otherwise,
157         # try development.  If neither of those works, we have a problem.
158         if "fedora" in map(lambda repo: repo.id, self.repos.listEnabled()):
159             repoorder = ["fedora", "rawhide", "development"]
160         else:
161             repoorder = ["rawhide", "development", "fedora"]


Becomes:

161             repoorder = ["rawhide", "development", "fedora", "base"]

Restart system-config-kickstart and packages can now be read from the local yum repositories.

2 comments:

  1. I made this change but I’m having the same problem. What else might cause this issue?

    ReplyDelete
    Replies
    1. A few suggestions you might try:

      1) Removing all the repos in the order and keep only "base", see if that helps at all. You might try copying the line and commenting one of them out, just to keep the original for rollback purposes.

      2) Make sure you can actually connect to the base repos or the others. Try: curl -I

      3) See if there are any errors being returned on the command line when this happens.

      P.S. I've been trying to post this response several times but have been running into issues with blogger. It was not letting me publish - might have been some Firefox privacy settings. I finally managed to post this reply with Chromium.

      Delete