- Newest
- Most votes
- Most comments
Security groups and routing and all the rest of it are fine, because the yum
command is able to go out and talk to the repos, identify the packages that it wants, and tries to download them.
Long-story-short - there's a utility called /usr/libexec/urlgrabber-ext-down
that's key here, and it is either missing or it's set use a version of Python that is no longer on your system.
The official Red Hat solution (I know you're not running RHEL but it's very similar) is here https://access.redhat.com/solutions/5360161 (you need a login to view it).
Your exact issue is discussed in depth here https://unix.stackexchange.com/questions/355073/cannot-yum-install-any-packages
The solution boils down to one of either
-
does
/usr/libexec/urlgrabber-ext-down
exist? If it does then check first line of it (the #! entry) which should be something like#!/usr/bin/python
. Does this (/usr/bin/python
in this example) actually exist? -
if
/usr/libexec/urlgrabber-ext-down
doesn't exist (or is a symlink pointing to a non-existent file) then recreate itls -l /usr/libexec/urlgrabber-ext-down*
. And then depending on the outputln -s /usr/libexec/urlgrabber-ext-down-[version] /usr/libexec/urlgrabber-ext-down
Relevant content
- asked 7 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
That explains it! I noticed that I have installed multiple versions of Python, and the program you mentioned "/usr/libexec/urlgrabber-ext-down" only works with python 2.7, so I switched back from Python 3.11 to Python 2.7, then the problem got solved! Thank you very much for the help, I appreciate it!