Problem with baseurl for repo: base/7/x86_64

General support questions
Post Reply
beluga9
Posts: 1
Joined: 2023/05/31 03:37:12

Problem with baseurl for repo: base/7/x86_64

Post by beluga9 » 2023/05/31 03:43:46

Hello all !
I'm new here. I probably might have deleted my epel.repo and epel.testing repo. My OS is CentOS 7, it was all fine until suddenly it stopped taking install or update requests.

Keeps showing:
"Cannot find a valid baseurl for repo: base/7/x86_64"
"Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... nfra=stock error was
14: HTTP Error 503 - Service Unavailable"

I have tried every possible solutions but still don't seem to get it right. Now I can't install or update anything. Can you please help ?

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

Re: Problem with baseurl for repo: base/7/x86_64

Post by TrevorH » 2023/05/31 09:44:12

The error you show has nothing to do with the EPEL repo. It shows that you got a 503 http response from http://mirrorlist.centos.org

I tested that url with curl "http://mirrorlist.centos.org/?release=7 ... nfra=stock" (the quotes round the url are mandatory at the command line as it contains & characters that would be misinterpreted by bash without the quotes). Curl works and returns the list of mirrors correctly. I presume that you are behind some web proxy and have not given it a valid username/password to allow you out to the internet or something like that. Or your DNS server is mucked up and pointing to a wrong ip address - or you have mirrors.centos.org in your /etc/hosts file.
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