Need help, impossible to use "yum".

General support questions
Post Reply
Azazel38
Posts: 3
Joined: 2024/02/22 09:36:45

Need help, impossible to use "yum".

Post by Azazel38 » 2024/02/22 09:45:08

I created a CentOS 7 Linux VM, and I wanted to update "yum" so use "yum update -y". I got this error message:

Code: Select all

Modules complémentaires chargés : fastestmirror
Loading mirror speeds from cached hostfile
http://ftp.pasteur.fr/mirrors/CentOS/7/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden
Essai d'un autre miroir.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (CentOS 7 - Base),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=base ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable base
        or
            subscription-manager repos --disable=base

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=base.skip_if_unavailable=true

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://ftp.pasteur.fr/mirrors/CentOS/7/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden
I tried to change the yum repo in /etc/yum.repos.d/CentOS-Base.repo but nothing happened.
My VM has good access to the Internet, no proxy blocks access, I've tested many repo's but none works.

Do you have any ideas for solutions?

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Need help, impossible to use "yum".

Post by TrevorH » 2024/02/22 14:06:22

http://ftp.pasteur.fr/mirrors/CentOS/7/ ... repomd.xml: [Errno 14] HTTP Error 403 - Forbidden
You have an issue with one particular mirror that appears to be denying connection requests. Try yum clean al then retry and see if it picks a different mirror. Also check that someone hasn't hard coded that URL in the files under /etc/yum.repos.d
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Azazel38
Posts: 3
Joined: 2024/02/22 09:36:45

Re: Need help, impossible to use "yum".

Post by Azazel38 » 2024/02/22 14:47:19

TrevorH wrote:
2024/02/22 14:06:22
http://ftp.pasteur.fr/mirrors/CentOS/7/ ... repomd.xml: [Errno 14] HTTP Error 403 - Forbidden
You have an issue with one particular mirror that appears to be denying connection requests. Try yum clean al then retry and see if it picks a different mirror. Also check that someone hasn't hard coded that URL in the files under /etc/yum.repos.d
"yum clean all" and "rm -rf /var/cache/yum/*" change nothing, i cant use "yum makecache" too.
"cat /var/log/yum.log" are empty
My VM didn't have any files in "ls /etc/pki/ca-trust/source/anchors/", "cat /var/log/messages | grep -i yum" and "cat /var/log/audit/audit.log | grep yum"

The URL is just a test, actually i have this:

Code: Select all

[base]
name=CentOS $releasever - Base
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=0
enabled=1

[updates]
name=CentOS $releasever - Updates
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=0
enabled=1

[extras]
name=CentOS $releasever - Extras
baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=0
enabled=1

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Need help, impossible to use "yum".

Post by TrevorH » 2024/02/22 15:38:52

I tried `curl http://ftp.pasteur.fr/mirrors/CentOS/7/ ... repomd.xml` and it works for me. You are getting a 403 permission denied. Are you behind a web proxy of some sort that could be denying your access?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Azazel38
Posts: 3
Joined: 2024/02/22 09:36:45

Re: Need help, impossible to use "yum".

Post by Azazel38 » 2024/02/22 15:55:27

TrevorH wrote:
2024/02/22 15:38:52
I tried `curl http://ftp.pasteur.fr/mirrors/CentOS/7/ ... repomd.xml` and it works for me. You are getting a 403 permission denied. Are you behind a web proxy of some sort that could be denying your access?
Same for me, the curl work xD

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Need help, impossible to use "yum".

Post by TrevorH » 2024/02/22 18:29:23

I'm fairly certain you have a web proxy between you and the internet and it is that that is denying access not the mirror itself.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply