Установка centos 7 ошибка при настройки базового репозитория

Перейти к контенту

I’ve created bootable USB flash drive using recommended LiveUSB Creator using CentOS-7-x86_64-Everything-1503-01.iso.

Now being at Installation Summary screen I’m getting Error setting up base repository. When I click on Verify at Installation Source screen I get This media is not good to install from. Rather cryptic error message…

I’ve also tried switch to On the network and insert http://mirrors.kernel.org/centos/7/os/x86_x64 with no success.

Additional info: Installing on HP EliteBook 8540w

asked Aug 3, 2015 at 16:56

daneel's user avatar

daneeldaneel

951 gold badge1 silver badge5 bronze badges

5

You have an error in the mirror URL (and extra x at x64) it should be http://mirrors.kernel.org/centos/7/os/x86_64.

womble's user avatar

womble

95.5k29 gold badges173 silver badges229 bronze badges

answered Sep 7, 2015 at 21:45

Thead Ultimate's user avatar

4

Do not use LiveUSB creator, it doesn’t work with this release of CentOS.

I had the same problem, I recreated the USB flash drive using dd under Linux ( dd bs=4M if=CentOS-7-x86_64-Everything-1503-01.iso of=/dev/sd[letter of your USB drive] ), and it worked like a charm.

If you do not have access to a Linux machine, you need to report this problem to LiveUSB-Creator developers and/or CentOS developers.

GregL's user avatar

GregL

9,1602 gold badges25 silver badges35 bronze badges

answered Aug 4, 2015 at 12:02

Quentin's user avatar

when you install centos 7 on network, you may config installation source.

when you input the url under the label ‘On the network:’, you’ll see the check box already checked that means ‘This URL refers to a mirror list’ , disable that.

answered Aug 2, 2016 at 13:29

lasko's user avatar

laskolasko

211 bronze badge

I experienced the same problem. It is working after I switch to Win32 Disk Imager.

Please try using another USB ISO burner. It should work. There is a list of working programs for the task.

answered Aug 3, 2016 at 15:53

GabrielC's user avatar

GabrielCGabrielC

2574 silver badges9 bronze badges

1

I downloaded the 32-bit CentOS 7 Netinstall version from http://mirror.centos.org/altarch/7/isos/i386/, and used the http://mirror.centos.org/altarch/7/os/i386/ as the repository during installation in virtualbox (Virtual machine RAM: 770MB, HDD: 8GB). I have already switched on the networks in the installation screen.

Whatever I try I am getting the same error: ‘Error setting up base repository»

  • centos
  • system-installation

asked Feb 8, 2016 at 9:54

Ron's user avatar

RonRon

2471 gold badge3 silver badges13 bronze badges

1 Answer

Sorted by:

Reset to default

1

CentOS 7.5 32-bit installed successfully for me using the following URL for the base repository (Installation Source):

http://mirrors.ocf.berkeley.edu/centos-altarch/7/os/i386/

You can also find the NetInstall and Minimal ISO images on this site at:

http://mirrors.ocf.berkeley.edu/centos-altarch/7/isos/i386/

answered Oct 9, 2018 at 20:15

MikeOnline's user avatar

MikeOnlineMikeOnline

1112 bronze badges

Your Answer

Sign up or log in

Sign up using Facebook

Sign up using Email and Password

Post as a guest

Name

Email

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged

  • centos
  • system-installation

or ask your own question.

Hello I have download the minimal release of CENTOS 7 at this url
link download ISO centos 7.x

All work correctly…the PING and the network is OK. I ping to external HOST for example.

But when I digit :

[root@localhost ~]# yum update
Loaded plugins: fastestmirror


 One of the configured repositories failed (Unknown),
 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. Disable the repository, 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 <repoid>

     4. 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=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64

Why?

This is another command:


root@localhost ~]# yum repolist all
Loaded plugins: fastestmirror
repo id                           repo name                           status
C7.0.1406-base/x86_64             CentOS-7.0.1406 - Base              disabled
C7.0.1406-centosplus/x86_64       CentOS-7.0.1406 - CentOSPlus        disabled
C7.0.1406-extras/x86_64           CentOS-7.0.1406 - Extras            disabled
C7.0.1406-fasttrack/x86_64        CentOS-7.0.1406 - CentOSPlus        disabled
C7.0.1406-updates/x86_64          CentOS-7.0.1406 - Updates           disabled
base/7/x86_64                     CentOS-7 - Base                     enabled: 0
base-debuginfo/x86_64             CentOS-7 - Debuginfo                disabled
base-source/7                     CentOS-7 - Base Sources             disabled
centosplus/7/x86_64               CentOS-7 - Plus                     disabled
centosplus-source/7               CentOS-7 - Plus Sources             disabled
cr/7/x86_64                       CentOS-7 - cr                       disabled
extras/7/x86_64                   CentOS-7 - Extras                   enabled: 0
extras-source/7                   CentOS-7 - Extras Sources           disabled
fasttrack/7/x86_64                CentOS-7 - fasttrack                disabled
updates/7/x86_64                  CentOS-7 - Updates                  enabled: 0
updates-source/7                  CentOS-7 - Updates Sources          disabled
repolist: 0
[root@localhost ~]#

The content of the file /etc/yum.repos.d/CentOS-Base.repo

[root@localhost ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[root@localhost ~]#

asked Sep 11, 2015 at 13:27

Daniele Grillo's user avatar

Daniele GrilloDaniele Grillo

9714 gold badges12 silver badges30 bronze badges

3

The problem is config of dhcp, try typing

dhclient

Robert's user avatar

Robert

5,26743 gold badges65 silver badges115 bronze badges

answered Jan 7, 2016 at 11:25

José Pérez Aniorte's user avatar

5

Check your resolv.conf to see where your name server is pointing. Make sure it’s something legit as mine was pointing to an old DNS server on the network that was wiped out. I updated it with the new IP address et voila!

answered Jan 22, 2016 at 23:47

user297149's user avatar

user297149user297149

761 silver badge1 bronze badge

1

Uncomment baseurl in this file: /etc/yum.repos.d/CentOS-Base.repo

#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

In this block:

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

By uncomment, I mean change this: #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/, to this: baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ (remove the #).

answered Sep 11, 2015 at 13:48

ryanpcmcquen's user avatar

ryanpcmcquenryanpcmcquen

6,1933 gold badges23 silver badges35 bronze badges

5

sudo sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo

answered Jun 1, 2018 at 16:07

Serdar Karaca's user avatar

1

First of all, I was able to fix this issue as mentioned above by using «dhclient». But you will have to run this command every time you reboot.
This could be because your Ethernet is disabled and you have to enable it explicitly. Click here to see the reason. For a permanent fix I edited /etc/sysconfig/network-scripts/ifcfg-{YOURETHERNET} (In my case it was /etc/sysconfig/network-scripts/ifcfg-eth0) and changed ONBOOT=yes and boom!!!

answered Jun 24, 2016 at 0:27

Purushothaman's user avatar

It is the error coming from the https connection in /etc/yum.repos.d/epel.repo after you installed ius-release.rpm through

sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm

You need to do following stuff in /etc/yum.repos.d/epel.repo.

baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch

Uncomment baseurl and comment line beginning with mirrorlist=.

user247702's user avatar

user247702

23.3k14 gold badges111 silver badges157 bronze badges

answered Dec 14, 2016 at 12:48

tonydeck's user avatar

1

I landed here because I had added a bad mirror for a different dependency (passenger, for a Rails app), and solved this problem by just deleting the bad mirror:

rm /etc/yum.repos.d/YOUR-BAD-DEPENDENCY-NAME.repo

e.g.

rm /etc/yum.repos.d/passenger.repo

answered May 30, 2017 at 20:53

duhaime's user avatar

duhaimeduhaime

24.5k15 gold badges162 silver badges209 bronze badges

This issue can also happen if the yum repository in question is actually offline or not responding correctly.

This can be a little tricky to diagnose, but the yum repo might respond to ping and respond to web requests on the base URL, but does not serve up packages correctly.

To find the problematic repo, I’ve found what works best is to move each repo file out of /etc/yum.repos.d and into a temporary holding folder (e.g., /root/yum_bak) and run yum update after removing each repo. Once you’ve moved the problematic repo out of /etc/yum.repos.d then yum update (and other yum commands will start working normally again. Move the working yum repos back into /etc/yum.repos.d and you’re back in business.

Just don’t forget to move the problematic repo back into /etc/yum.repos.d after the outage has ended.

answered May 11, 2018 at 19:58

Elliot B.'s user avatar

Elliot B.Elliot B.

16.7k10 gold badges78 silver badges101 bronze badges

1

I had this problem in a company environment with MITM proxy after adding the EPEL repo with

yum install epel-release

This doesn’t happen before (e.g. on yum update). I checked all answers and none of them fixed my problem.
Figured out that the other repos use http by default, where epel use https:

# grep mirror /etc/yum.repos.d/epel.repo
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch&infra=$infra&content=$contentdir
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch&infra=$infra&content=$contentdir

So I copied our company root CA in the CentOS trust store and update it:

cp /home/user/my-ca.crt /etc/pki/ca-trust/source/anchors/
update-ca-trust

After adding the cert, updating and installing packages from the EPEL repo works fine!

answered Mar 21, 2020 at 18:47

Lion's user avatar

LionLion

15.6k21 gold badges81 silver badges138 bronze badges



  • Posted In

  • Red Hat Enterprise Linux for Real Time

Hi, I had downloaded the evaluation subscription RHEL 7.2 Binary DVD ISO from Reh Hat Portal, and tried to install onto my pc but there’s an error appear on Installation Source which is «Error setting up base repository». Is anyone here know how to solve the error? Thanks.

Started
2016-08-14T01:34:06+00:00 by

Sia Yong

Newbie
5 points

Responses

Radek Bíba's picture
Red Hat
Guru
1592 points

Hi Sia.

You may find detailed information about the error on one of the TTYs that Anaconda also uses; press CTRL+ALT+FX to switch from one TTY to another, where X is between 1 and 6.

General debugging instructions are also at https://fedoraproject.org/wiki/How_to_debug_installation_problems. Not sure if there’s a solution article on the Customer Portal, but this Fedora Project page is applicable to RHEL, too.

Regards,
Radek

Is there a URL that one could add?

Radek Bíba's picture
Red Hat
Guru
1592 points

What kind of URL do you mean?

How about a rhel7 repo base url included in the boot dvd (400MB)?

How do I fix this error «error setting up base repository» I was trying to install RHEL7.4 on virtualbox?
Thanks

Is it a problem in windows 10?

How to Fix «Error Setting up Base Repository » ? I am trying to install rhel 7.4 on machine

Bro u got a solution or not?

I am also getting the same error ? How to solve it? can any one tell me ?

RS
Community Member
35 points

Make sure you have not inadvertently tried to use the boot.iso for rhel7 as your installation media; it will generate the error you are reporting because the boot.iso does not contain any of the installation repositories virtualbox will need. Instead you need to download the dvd iso which is approx 3+ GB in size.

PS
Community Member
30 points

I have the EXACT same problem…
Brand New MacBookPro ……Mac OS 10.13.1

Sequence I followed….
Downloaded and Installed VirtualBox (no problems)

Downloaded : rhel-server-7.2-x86_64-boot.iso (also tried with newer rhel-server-7.4-x86_64-boot.iso same problem)

I point VirtualBox to the ISO image and it boots fine, starts the install and I get as far as selecting the keyboard….

After selecting keyboard you do not get an option to select the install type…
INSTALATION SOURCES — Error setting up base repository

Clicking on Installation Sources…only give you the option of adding a new Repository that is associated to a repository addressed via a URL….(I even tried to use the «file:» option and point it to the ISO file on the files system and that did not work either, not that I really expected it to.)

There is no way to enable the selection of the drop down to answer «Which installation source would you like to use?»
Looking in the VM storage you can see rhel-server-7.2-x86_64-boot.iso mounted as an IDE drive

We need a work around in order to accomplish an install, I thought there might be a way to do it via the vmlinuz command that seems to be what is used to launch the install but could not find anything on the web and this is not an area of expertise on my part.

Please help…

I get the same issue.
RedHat, please help.

Does anyone have a solution to this problem yet?

James Nauer's picture
Guru
1932 points

The solution has been given above, though perhaps we need to be a bit more clear:

You CANNOT use «rhel-server-7.2-x86_64-boot.iso» for your first RHEL install. The «boot.iso» image requires a access to a network install repository, but RHEL is not a «free» product, so there are no publicly-available repositories for it on the internet. (very different from Fedora, CentOS, Ubuntu, etc.).

You must download the full 3-4 GB binary dvd .iso file («rhel-server-7.5-x86_64-dvd.iso» is the current version today — older 7.x releases should still be available though), and use that to install your first system.

Once you have your first Linux system up & running, you can use the full install DVD image again to build your own local network repository, and then use «boot.iso» for subsequent installs (or set up a PXE boot server, or clone a master VM template image, or…)

PA
Community Member
87 points

James,

Thank you!!! You have saved me a week long of frustration. Oh man, thank you thank you thank you!! :)

Why is the baseurl such a top secret. I’m trying to install the rhel-8.0-beta-1-x86_64-boot.iso also. In the INSATLLATION SOURCE i only get the On the network option which needs repository URL.

So I tried the rhel-8.0-beta-1-x86_64-kvm.qcow2 on KVM, it runs fine to the login but I cannot login to it. I assume root but no password can be found.

Any help would be appreciated.
:)

Sayed Anowar's picture
Pro
456 points

Download DVD binary not boot ISO. Binary DVD size is approx 6 GB.

Hi Robert Fulton,
refer to James Nauer. i think you might want used this https://developers.redhat.com/products/rhel/download/ and for create bootable USB i strongly suggest to use Fedora Media Writer.

https://developers.redhat.com/products/rhel/hello-world/#fndtn-bare-metal if you plan to install on Bare Metal.

Hope this will help u.

I am also having this issue with installing redhat 7.6 boot.iso on a virtual machine It is saying error setting up base directory
and then it ask for a source on your PC or network with giving you the url option to fill in

Please delete all partitions on the usb drive before creating the boot disk. After deleting the partitions use

dd bs=512 if= of=

it must be dvd.iso not boot.iso

RJ Hinton's picture
Guru
22109 points

This is an old discussion. Please use a current version of RHEL.

Regards,
RJ

I download this image file in redhead Linux website its 545792kb, how can I found over 4GB file?

Sayed Anowar's picture
Pro
456 points

RHEL 8.0 binary DVD is approx 7GB (6.62 GB). This size varies according to RHEL version. AS this post contains discussion about RHEL 7.x as well as 8.x, that’s why it is pointed in general (more than 4GB). Please don’t download RHEL from any other sourse (like other third party site or torrent); always download from «https://access.redhat.com/downloads». Hope you got the point. And welcome to RedHat, you are landing to this community, so you care about security and stability a lot. Let’s get started….

i have download redhat 8.0 version but when i am installation in vmware and virtual box at the time i am facing rror setting up base repository and anyone let me know what i do in case.

Hi i also had same issue with iso boot so i tried with DVD iso . it worked .
thanks

RJ Hinton's picture
Guru
22109 points

Anyone landing here for this discussion. Please consider using a current edition of Red Hat Linux. As of October 2020, RHEL 7 is at version 7.9. Maybe even consider a current copy of RHEL 8. Many entries in this thread are from last year (as I type this, it is May 2019, and many entries in this specific discussion are from 2016 through 2018).

Know also when you download the RHEL 7 dvd, to acquire the Binary (not boot dvd). The Boot DVD does not have all the necessary packages and will ask you for a URL or some path, because it is only boot media. The Binary DVD (over 4GB) has the packages.

RHEL 8 is different and should be discussed in a different discussion

Regards

RJ

error with base repository, when installing Redhat 7.0

RJ Hinton's picture
Guru
22109 points

Ronald,

Please seriously consider using a current version of Red Hat 7. As I type this, we are at 7.9. 7.0 really should not be used since there are a ton of updates since the time version 7.0 was released. That aside, consider getting a new DVD that is 7.9 and make sure the DVD is the Binary DVD, and not just boot media. We would need more details from you to attempt to give you realistic assistance. Alternatively you can submit a ticket for loading a system with Red Hat.

Kind Regards,
RJ

during instalation the error was occured.at time of cofiguring red hat sbscription installation one error was occured.how to debug the error.pls help me as soon as possible

I have solved the probelm by: On the registration step during instalation (using ‘boot.iso’) I specified a Role for my instalation (for my cas I choosed workstation for developement/test usage) and now I can coonect to RHEL CDN.

RJ Hinton's picture
Guru
22109 points

Anyone landing here, this discussion was started in 2016. Please seriously consider using a current version of Red Hat Linux. As I type this, we are at 7.9. and RHEL 8.4. This will change over time. Whatever the most current is, please use that.

Please keep in mind the differences with RHEL 7 and 8.

Regards,
RJ


Я создал загрузочную флешку с помощью рекомендуемого LiveUSB Creator с помощью CentOS-7-x86_64-Everything-1503-01.iso.

Теперь, находясь на экране « Сводка установки», я получаю сообщение об ошибке при настройке базового хранилища . Когда я нажимаю на кнопку « Подтвердить на экране источника установки», я получаю Этот носитель не подходит для установки . Скорее загадочное сообщение об ошибке …

Я также попытался переключиться на сеть и вставить http://mirrors.kernel.org/centos/7/os/x86_x64безуспешно.

Дополнительная информация: Установка на HP EliteBook 8540w






Ответы:


У вас есть ошибка в зеркале URL (и дополнительный x в x64), это должно быть http://mirrors.kernel.org/centos/7/os/x86_64.




Не используйте LiveUSB Creator, он не работает с этим выпуском CentOS.

У меня была такая же проблема, я воссоздала флешку с помощью dd под Linux ( dd bs=4M if=CentOS-7-x86_64-Everything-1503-01.iso of=/dev/sd[letter of your USB drive]), и она работала как шарм.

Если у вас нет доступа к машине с Linux, вам необходимо сообщить об этой проблеме разработчикам LiveUSB-Creator и / или разработчикам CentOS.


когда вы устанавливаете Centos 7 в сети, вы можете настроить источник установки.

Когда вы введете URL под меткой «В сети:», вы увидите, что флажок уже установлен, что означает «Этот URL-адрес относится к списку зеркал», отключите его.


dalepres

Posts: 21
Joined: 2016/05/27 19:31:55

[SOLVED] One of the configured repositories failed (Unknown)

I just installed a new Centos 7 on VirtualBox — minimal install. The first thing I did was yum update kernel which worked fine. I rebooted and tried to yum repolist and get this error. Even yum update kernel or any other yum command gets the same result. I’ve done clean all, rebooted, clean all again, etc., etc.

[root@dphdp851 yum.repos.d]# yum repolist
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00

epel/x86_64/metalink | 5.7 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: centos.unixheads.org
* epel: ewr.edge.kernel.org
* extras: mirror.oss.ou.edu
* updates: ftpmirror.your.org

One of the configured repositories failed (Unknown),
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. Disable the repository, 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 <repoid>

4. 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=<repoid>.skip_if_unavailable=true

file is encrypted or is not a database

Any suggestions?

Last edited by dalepres on 2018/05/11 13:08:31, edited 1 time in total.


User avatar

avij

Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: One of the configured repositories failed (Unknown)

Post

by avij » 2018/05/11 04:55:40

This seems to be a problem with the EPEL repository. Try yum with —disablerepo=epel* until they get this fixed.


User avatar

avij

Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: One of the configured repositories failed (Unknown)

Post

by avij » 2018/05/11 07:40:33

There was a broken primary.sqlite.bz2 at some point, but it has been fixed now. The fixed file is being synced to mirrors. If you don’t have an immediate need to get packages from EPEL, use yum with —disablerepo=epel until your local mirror syncs. yum clean all may or may not help, depending on which mirror you hit.


dalepres

Posts: 21
Joined: 2016/05/27 19:31:55

Re: One of the configured repositories failed (Unknown)

Post

by dalepres » 2018/05/11 13:07:34

Thanks. It’s working this morning. This is an interesting problem I hadn’t considered. I have a few questions; please understand that it is just in the interest of understanding and learning what to do.

So I was unable to do anything with yum because one, more, or all mirrors for a repo get corrupted. Does this mean that an upstream repo error can effectively shutdown anything yum related, even on other repos, globally?

What are the standard workarounds?

You answered that this was likely the epel repo. How did you determine that from the error message? I couldn’t figure it out to know which repo to try to disable.

If I did need epel (and I did but I was just doing some home lab stuff — no money was lost, no businesses were shut down and no VMs were harmed) what do experts (I’m not one) do?

This happened abruptly and was fixed fairly quick so is the answer, if you need epel, to just wait? Or maybe have a local copy of the epel repo but keep it behind by a couple of versions?

Thanks for taking the time to help.


dalepres

Posts: 21
Joined: 2016/05/27 19:31:55

Re: [SOLVED] One of the configured repositories failed (Unknown)

Post

by dalepres » 2018/05/11 13:10:17

One more question, is there a bug to be reported here that yum was unable to report which repo failed? It seems that there would have been some context at the point of failure for knowing which repo it was.



skoltogyan

Posts: 4
Joined: 2015/11/15 17:04:31

yum error «One of the configured repositories failed (Unknown)»»

Post

by skoltogyan » 2018/05/11 13:28:10

CentOS7 at this morning i see:

Code: Select all

# yum check-update --verbose
Loading "fastestmirror" plugin
Config time: 0.014
Yum version: 3.4.3
rpmdb time: 0.000
Building updates object
Setting up Package Sacks
base                                                                                                   | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                                                   |  17 kB  00:00:00     
Using older repomd.xml
  Latest: Fri May 11 08:41:21 2018
  Using: Fri May 11 03:14:59 2018
epel                                                                                                   | 4.7 kB  00:00:00     
extras                                                                                                 | 3.4 kB  00:00:00     
influxdb                                                                                               | 2.5 kB  00:00:00     
nginx                                                                                                  | 2.9 kB  00:00:00     
updates                                                                                                | 3.4 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: centos.colocall.net
 * epel: epel.besthosting.ua
 * extras: mirror.besthosting.ua
 * updates: centos.colocall.net


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

About current version:

Code: Select all

# cat /etc/*elease
CentOS Linux release 7.4.1708 (Core) 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.4.1708 (Core) 
CentOS Linux release 7.4.1708 (Core) 

Please, help me.

Serg

[edit/avij: merged these two topics]


User avatar

toracat

Site Admin
Posts: 7505
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: yum error «One of the configured repositories failed (Unknown)»»

Post

by toracat » 2018/05/11 13:57:01

I know EPEL had a problem earlier but it’s been corrected. Run «yum clean all» and try it again.

CentOS Forum FAQ


TimL

Posts: 4
Joined: 2018/05/11 13:59:39

Re: yum error «One of the configured repositories failed (Unknown)»»

Post

by TimL » 2018/05/11 14:03:51

Some mirrors still have issues.
what worked for me was commenting the «metalink», and un-commenting the «baseurl» in /etc/yum.repos.d/epel.repo

specifically

Code: Select all

> date
Fri May 11 10:01:49 EDT 2018

> yum clean all
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base epel extras nux-dextop updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors

> yum -y upgrade
Loaded plugins: fastestmirror, langpacks
base                                                                                                              | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                                                              | 7.6 kB  00:00:00     
epel                                                                                                              | 4.7 kB  00:00:00     
extras                                                                                                            | 3.4 kB  00:00:00     
nux-dextop                                                                                                        | 2.9 kB  00:00:00     
updates                                                                                                           | 3.4 kB  00:00:00     
(1/8): base/7/x86_64/group_gz                                                                                     | 166 kB  00:00:00     
(2/8): base/7/x86_64/primary_db                                                                                   | 5.9 MB  00:00:00     
(3/8): epel/x86_64/group_gz                                                                                       |  84 kB  00:00:00     
(4/8): epel/x86_64/updateinfo                                                                                     | 921 kB  00:00:00     
(5/8): extras/7/x86_64/primary_db                                                                                 | 104 kB  00:00:00     
(6/8): epel/x86_64/primary_db                                                                                     | 1.6 MB  00:00:00     
(7/8): nux-dextop/x86_64/primary_db                                                                               | 1.7 MB  00:00:01     
(8/8): updates/7/x86_64/primary_db                                                                                | 1.0 MB  00:00:15     
Determining fastest mirrors
 * base: ftpmirror.your.org
 * epel: mirror.steadfast.net
 * extras: ftpmirror.your.org
 * nux-dextop: li.nux.ro
 * updates: ftpmirror.your.org


 One of the configured repositories failed (Unknown),
 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=<repoid> ...

     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 <repoid>
        or
            subscription-manager repos --disable=<repoid>

     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=<repoid>.skip_if_unavailable=true

file is encrypted or is not a database

> find /var/cache/yum/x86_64/7/ -iname '*.sqlite' | xargs file
/var/cache/yum/x86_64/7/base/gen/primary_db.sqlite:       SQLite 3.x database
/var/cache/yum/x86_64/7/nux-dextop/gen/primary_db.sqlite: SQLite 3.x database
/var/cache/yum/x86_64/7/updates/gen/primary_db.sqlite:    SQLite 3.x database
/var/cache/yum/x86_64/7/epel/gen/primary_db.sqlite:       data
/var/cache/yum/x86_64/7/extras/gen/primary_db.sqlite:     SQLite 3.x database

> grep epel /var/cache/yum/x86_64/7/timedhosts* 
fedora-epel.mirrors.tds.net 5280347 0 1507522651
epel.mirror.constant.com 0.0208718776703

And on an identical working server that happened to get different ping times;

Code: Select all

> grep epel /var/cache/yum/x86_64/7/timedhosts*
fedora-epel.mirror.lstn.net 8886731 0 1514869786
fedora-epel.mirror.lstn.net 0.0246088504791
fedora-epel.mirrors.tds.net 0.0198471546173

User avatar

avij

Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: [SOLVED] One of the configured repositories failed (Unknown)

Post

by avij » 2018/05/11 14:34:48

It’s true that yum’s output could have been clearer in this case. Perhaps there is already a related bug entry at bugzilla.redhat.com, I haven’t looked. This would need to be fixed in RHEL first.

I happened to be on Freenode channel #epel when someone complained about this issue, but if this had happened to me, I could have enabled one repository at a time (with —disablerepo=* and —enablerepo=somerepo) to find which repo caused the trouble.

skip_if_unavailable=1 for non-critical repos sounds like a good idea.

Many people need only a few packages from EPEL. One option would be to import the EPEL packages you need to some locally controlled repository and use that instead. createrepo is related to this.



0

1

Добрый день!
У меня возникла проблема с установкой Centos, попробовал две версии 7.6 и 7.5.
Запускаю установку по pxe, сервер pxe и tftp это wds под windows server 2019, так сложилось к сожалению.

Ближе к деталям. Был добавлен загрузчик syslinux.
Написал файл загрузки, часть отвечающая за загрузку Centos

LABEL centos
MENU LABEL CentOS
KERNEL Images/Web/centos/7.x/7.5/isolinux/vmlinuz
append initrd=Images/Web/centos/7.x/7.5/isolinux/initrd.img inst.repo=http://192.168.1.251/centos/7.x/7.5/ method=http://192.168.1.251/centos/7.x/7.5/ devfs=nomount

На iis создал сайт с каталогами из образа minimal, всё доступно, всё читается и скачивается.
anaconda грузиться без проблем, но во время долгой попытки загрузки метаданных и выходит ошибка при настройке базового репозитория. Причем не важно какой я указываю репозиторий, локальный или внешний.
Помогите разобраться в чем причина такого поведения.

I’ve created bootable USB flash drive using recommended LiveUSB Creator using CentOS-7-x86_64-Everything-1503-01.iso.

Now being at Installation Summary screen I’m getting Error setting up base repository. When I click on Verify at Installation Source screen I get This media is not good to install from. Rather cryptic error message…

I’ve also tried switch to On the network and insert http://mirrors.kernel.org/centos/7/os/x86_x64 with no success.

Additional info: Installing on HP EliteBook 8540w

asked Aug 3, 2015 at 16:56

daneel's user avatar

daneeldaneel

951 gold badge1 silver badge5 bronze badges

5

You have an error in the mirror URL (and extra x at x64) it should be http://mirrors.kernel.org/centos/7/os/x86_64.

womble's user avatar

womble

96.1k29 gold badges174 silver badges230 bronze badges

answered Sep 7, 2015 at 21:45

Thead Ultimate's user avatar

4

Do not use LiveUSB creator, it doesn’t work with this release of CentOS.

I had the same problem, I recreated the USB flash drive using dd under Linux ( dd bs=4M if=CentOS-7-x86_64-Everything-1503-01.iso of=/dev/sd[letter of your USB drive] ), and it worked like a charm.

If you do not have access to a Linux machine, you need to report this problem to LiveUSB-Creator developers and/or CentOS developers.

GregL's user avatar

GregL

9,3302 gold badges25 silver badges35 bronze badges

answered Aug 4, 2015 at 12:02

Quentin's user avatar

when you install centos 7 on network, you may config installation source.

when you input the url under the label ‘On the network:’, you’ll see the check box already checked that means ‘This URL refers to a mirror list’ , disable that.

answered Aug 2, 2016 at 13:29

lasko's user avatar

laskolasko

211 bronze badge

I experienced the same problem. It is working after I switch to Win32 Disk Imager.

Please try using another USB ISO burner. It should work. There is a list of working programs for the task.

answered Aug 3, 2016 at 15:53

GabrielC's user avatar

GabrielCGabrielC

2574 silver badges9 bronze badges

С учётом того, что centos не хочет создавать видимость того, что они как-то контролируют и проверяют большое число зеркал и что загрузка часто идёт по небезопасным протоколам — придётся вбивать адрес вручную.

Самое главное: проверяйте доступность этого адреса, просто открыв его в браузере!

введите сюда описание изображения

Я долго удивлялся что не так, когда раз пять вставлял адрес и до меня не доходило, что то, что я вставляю «немного» отличается. Замыленный взгляд сличая два url’а не обращал внимания что во вставленном нет слова /BaseOs/

Репозиториев много, инструкций разных много. Где-то советуют один адрес, где-то с http, где-то без, где-то нужен / на конце где-то нет… Лучше всего: зайдите руками на список репозиториев, выберите себе подходящий, проверьте ссылку в браузере.

Я остановился на варианте: mirror.yandex.ru/centos/8/BaseOS/x86_64/os/ (протокол: https, тип url: repository url).

Протокол выбирать строго в переключателе, в адресной строке не парсится.

Вот один из вариантов:

введите сюда описание изображения

По теме:

  • https://bugs.centos.org/view.php?id=16456
  • https://youtu.be/nNNkZ0I2DFw?t=435
  • https://bugs.centos.org/view.php?id=16633

46 / 43 / 1

Регистрация: 02.07.2007

Сообщений: 2,413

1

20.10.2021, 15:03. Показов 3055. Ответов 3


Делаю установку CentOS 8. Как избавиться от ошибки «Ошибка при настройке базового репозитория«?

CentOS-8.4.2105-x86_64-dvd1.iso / Rufus 3.11

Миниатюры

Установка CentOS 8: Ошибка при настройке базового репозитория
 

Установка CentOS 8: Ошибка при настройке базового репозитория
 

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

594 / 204 / 40

Регистрация: 30.08.2017

Сообщений: 1,338

21.10.2021, 19:58

2

Настроив базовый репозиторий конечно же!
Информации вообще никакой не дали, ну чтож, попробую почитать мысли. Версия дистрибутива какая? Это сетевая что ли? Если бы версия для установки с носителя, то установщик бы подхватил репу с носителя.
Ну будем работать с тем что имеем. Включите сеть, у Вас появится возможность править репы. Добавьте 2: BaseOS и AppStream
Попробуйте
ftp.yandex.ru/centos/8.4.2105/AppStream/x86_64/os/
И Допролнительный:
ftp.yandex.ru/centos/8.4.2105/BaseOS/x86_64/os/

Под рукой нет ЦентОСа, поэтому могу в URL ошибиться. Но вообще странная ошибка.

1

46 / 43 / 1

Регистрация: 02.07.2007

Сообщений: 2,413

21.10.2021, 21:48

 [ТС]

3

Образ качал с сайта CentOS, левый столбец под названием «CentOS Linux«.

Цитата
Сообщение от _sg2
Посмотреть сообщение

Включите сеть, у Вас появится возможность править репы.

А если я ставлю без сети, то что?

0

594 / 204 / 40

Регистрация: 30.08.2017

Сообщений: 1,338

22.10.2021, 09:16

4

У Вас ВМ не имеет доступа в интернет? о_О То всё.
Вообще должно быть так:

Миниатюры

Установка CentOS 8: Ошибка при настройке базового репозитория
 

1

IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

22.10.2021, 09:16

4

1

I downloaded the 32-bit CentOS 7 Netinstall version from http://mirror.centos.org/altarch/7/isos/i386/, and used the http://mirror.centos.org/altarch/7/os/i386/ as the repository during installation in virtualbox (Virtual machine RAM: 770MB, HDD: 8GB). I have already switched on the networks in the installation screen.

Whatever I try I am getting the same error: ‘Error setting up base repository»

  • centos
  • system-installation

asked Feb 8, 2016 at 9:54

Ron's user avatar

RonRon

2471 gold badge3 silver badges13 bronze badges

1 Answer

Sorted by:

Reset to default

1

CentOS 7.5 32-bit installed successfully for me using the following URL for the base repository (Installation Source):

http://mirrors.ocf.berkeley.edu/centos-altarch/7/os/i386/

You can also find the NetInstall and Minimal ISO images on this site at:

http://mirrors.ocf.berkeley.edu/centos-altarch/7/isos/i386/

answered Oct 9, 2018 at 20:15

MikeOnline's user avatar

MikeOnlineMikeOnline

1112 bronze badges

Your Answer

Sign up or log in

Sign up using Google

Sign up using Email and Password

Post as a guest

Name

Email

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged

  • centos
  • system-installation

or ask your own question.

I’ve created bootable USB flash drive using recommended LiveUSB Creator using CentOS-7-x86_64-Everything-1503-01.iso.

Now being at Installation Summary screen I’m getting Error setting up base repository. When I click on Verify at Installation Source screen I get This media is not good to install from. Rather cryptic error message…

I’ve also tried switch to On the network and insert http://mirrors.kernel.org/centos/7/os/x86_x64 with no success.

Additional info: Installing on HP EliteBook 8540w

asked Aug 3, 2015 at 16:56

daneel's user avatar

daneeldaneel

951 gold badge1 silver badge5 bronze badges

5

You have an error in the mirror URL (and extra x at x64) it should be http://mirrors.kernel.org/centos/7/os/x86_64.

womble's user avatar

womble

95.6k29 gold badges173 silver badges229 bronze badges

answered Sep 7, 2015 at 21:45

Thead Ultimate's user avatar

4

Do not use LiveUSB creator, it doesn’t work with this release of CentOS.

I had the same problem, I recreated the USB flash drive using dd under Linux ( dd bs=4M if=CentOS-7-x86_64-Everything-1503-01.iso of=/dev/sd[letter of your USB drive] ), and it worked like a charm.

If you do not have access to a Linux machine, you need to report this problem to LiveUSB-Creator developers and/or CentOS developers.

GregL's user avatar

GregL

9,1802 gold badges25 silver badges35 bronze badges

answered Aug 4, 2015 at 12:02

Quentin's user avatar

when you install centos 7 on network, you may config installation source.

when you input the url under the label ‘On the network:’, you’ll see the check box already checked that means ‘This URL refers to a mirror list’ , disable that.

answered Aug 2, 2016 at 13:29

lasko's user avatar

laskolasko

211 bronze badge

I experienced the same problem. It is working after I switch to Win32 Disk Imager.

Please try using another USB ISO burner. It should work. There is a list of working programs for the task.

answered Aug 3, 2016 at 15:53

GabrielC's user avatar

GabrielCGabrielC

2574 silver badges9 bronze badges

1

I downloaded the 32-bit CentOS 7 Netinstall version from http://mirror.centos.org/altarch/7/isos/i386/, and used the http://mirror.centos.org/altarch/7/os/i386/ as the repository during installation in virtualbox (Virtual machine RAM: 770MB, HDD: 8GB). I have already switched on the networks in the installation screen.

Whatever I try I am getting the same error: ‘Error setting up base repository»

  • centos
  • system-installation

Improve this question

asked Feb 8, 2016 at 9:54

Ron's user avatar

RonRon

2471 gold badge3 silver badges13 bronze badges

Add a comment
 | 

1 Answer

Sorted by:

Reset to default

1

CentOS 7.5 32-bit installed successfully for me using the following URL for the base repository (Installation Source):

http://mirrors.ocf.berkeley.edu/centos-altarch/7/os/i386/

You can also find the NetInstall and Minimal ISO images on this site at:

http://mirrors.ocf.berkeley.edu/centos-altarch/7/isos/i386/

Improve this answer

answered Oct 9, 2018 at 20:15

MikeOnline's user avatar

MikeOnlineMikeOnline

1112 bronze badges

Add a comment
 | 

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

  • centos
  • system-installation

.

  • Устанавливаю фогейм ошибка установки
  • Установка bootcamp не удалась произошла ошибка во время копирования установочных файлов windows
  • Устанавливать контакт лексическая ошибка
  • Установка armoury crate скачать для windows 10 ошибка 400
  • Устанавливается другая программа дождитесь завершения установки ошибка