python: command not found...Failed to search for file: cannot update repo 'epel-modular': Cannot prepare internal mirrorlist: Curl error (6) bash:

 # python -V

bash: python: command not found...

Failed to search for file: cannot update repo 'epel-modular': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=x86_64&infra=$infra&content=$contentdir [Could not resolve host: mirrors.fedoraproject.org]; Last error: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=x86_64&infra=$infra&content=$contentdir [Could not resolve host: mirrors.fedoraproject.org]


# rpm -qa | grep -i epel

epel-release-8-10.el8.noarch


//and see multiple epl on repolist


# ls -l /etc/yum.repos.d/

total 28

-rw-r--r--  1 root root 1177 Dec  5  2020 epel-modular.repo

-rw-r--r--  1 root root 1259 Dec  5  2020 epel-playground.repo

-rw-r--r--. 1 root root 1104 Apr 21 14:44 epel.repo

-rw-r--r--  1 root root 1114 Dec  5  2020 epel.repo.rpmnew

-rw-r--r--  1 root root 1276 Dec  5  2020 epel-testing-modular.repo

-rw-r--r--  1 root root 1213 Dec  5  2020 epel-testing.repo

-rw-r-----. 1 root root  359 Jun 30 04:07 redhat.repo


//I just disabled the epel repos manually open the and disabled lie


enable=0  changed 1 to 0


//after disable the epl repos the moduler errors are gone


# phyton -V

bash: phyton: command not found...


//now need to resolve why this command not found comming


# ls -lah /usr/bin/ | grep phyton


//no output


# which python

/usr/bin/which: no python in (/sbin:/bin:/usr/sbin:/usr/bin)


//something went wrong , probably need to install phyton


# yum list python

Updating Subscription Management repositories.

Red Hat Enterprise Linux 8 for x86_64 - AppStre  18 MB/s |  32 MB     00:01

Red Hat Enterprise Linux 8 for x86_64 - BaseOS   15 MB/s |  35 MB     00:02

Error: No matching Packages to list


//phyton is not availabe in those appstre and base os repos


//check about the station detail of the package

# yum search python2 | grep 'python2.x86_64'

Last metadata expiration check: 0:05:06 ago on Fri 27 Aug 2021 09:26:15 BST.

python2.x86_64 : An interpreted, interactive, object-oriented programming language


// i see this server having phyton 3 already installed


# python3 --version

Python 3.6.8


//hence we can't get the detials when type pyhton -V


# rpm -qa | grep python

.

.

python3-pytz-2017.2-9.el8.noarch

python3-librepo-1.12.0-2.el8.x86_64

python3-slip-dbus-0.6.4-11.el8.noarch

python3-systemd-234-8.el8.x86_64

python3-idna-2.5-5.el8.noarch

python3-hawkey-0.48.0-5.el8.x86_64

python3-pip-9.0.3-18.el8.noarch

python3-langtable-0.0.51-4.el8.noarch

python3-lxml-4.2.3-1.el8.x86_64

python3-dateutil-2.6.1-6.el8.noarch

python3-linux-procfs-0.6.2-2.el8.noarch

python3-dnf-4.2.23-4.el8.noarch

python3-pyatspi-2.26.0-6.el8.noarch

python3-dmidecode-3.12.2-15.el8.x86_64

python3-meh-gui-0.47.2-1.el8.noarch

python3-pyparsing-2.1.10-7.el8.noarch

python3-requests-ftp-0.3.1-11.el8.noarch

.

.

-------------------

//python is not avilable in base and apstr repo, should need to enable rhel-7or8-server-optional-rpms and rhel-server-rhscl-7or8-rpms

rhscl - stands for redhat software collection

//python usually come up with by default along the linux OS





Post a Comment

0 Comments