YUM install error: repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Quote from moshe on 30/10/2022, 12:42 pm
Problem
when user trying to install a yum package for example with following command: ”sudo yum install MariaDB-server MariaDB-client”
get the following error
repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
It was impossible to connect to the CentOS servers.
and also errors
http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTPS Error 302 - Found
Trying other mirror.
Solution
The issue can occur if your organization PROXY does not support URL redirection.
To check if its the case paste the URL of the the xml file for example: http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml
in the browser and you will see the URL is changing in the URL address bar (redirecting to one of the mirrors)
edit the file of the yum global configuration
in our example it will be
vi /etc/yum.conf
find the line contain proxy=<IP ADDRESS>
and delete / remark it
run yum command
Problem
when user trying to install a yum package for example with following command: ”sudo yum install MariaDB-server MariaDB-client”
get the following error
repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
It was impossible to connect to the CentOS servers.
and also errors
http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTPS Error 302 - Found
Trying other mirror.
Solution
The issue can occur if your organization PROXY does not support URL redirection.
To check if its the case paste the URL of the the xml file for example: http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml
in the browser and you will see the URL is changing in the URL address bar (redirecting to one of the mirrors)
edit the file of the yum global configuration
in our example it will be
vi /etc/yum.conf
find the line contain proxy=<IP ADDRESS>
and delete / remark it
run yum command