LINUX.ORG.RU

в CentOS 7 не работает репозиторий, я что только не делал, все никак. Что не так с файлом настройки?

 , ,


0

2
[base]
name=CentOS-$releasever - Base

baseurl=http://mirror.mirohost.net/centos/$releasever/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Все устроено по такому принципу, не работает, Кто знает в чем дело, помогите. Устанавливал с минимального установочного носителя CentOS-7-x86_64-Minimal-1511.iso

Пишет что что-то с репозиторием не то. Адрес репозитория в нормальне, пути в норме.



Последнее исправление: serhey (всего исправлений: 2)

Пишет что что-то с репозиторием не то

Приведите точный текст ошибке, желательно на английском.

mky ★★★★★
()
Ответ на: комментарий от mky

Как его записать? Сейчас с ubuntu livecd сижу.

serhey
() автор топика
Ответ на: комментарий от mky

bash-4.2# yum update Завантажені додатки: fastestmirror http://mirror.mirohost.net/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - «Could not resolve host: mirror.mirohost.net; Unknown error» Спроба використання іншого дзеркала.

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. 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 base

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

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try. http://mirror.mirohost.net/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - «Could not resolve host: mirror.mirohost.net; Unknown error»

serhey
() автор топика
Ответ на: комментарий от serhey

Could not resolve host: mirror.mirohost.net; Unknown error

Очевидно же, у тебя dns'ы плохие/не работают. Смотри настройки своей сети.

ping mirror.mirohost.net и telnet mirror.mirohost.net 80 тебе в помощь.

Ivan_qrt ★★★★★
()
Ответ на: комментарий от novitchok

Name - это имя репы, ни на что важное не влияет. Base - то, что основной репозиторий, а не updates. Здесь $basearch не нужен. А в $baseurl он прописан.

То, что с сеткой проблемы - вполне уверен.

Ivan_qrt ★★★★★
()
Ответ на: комментарий от Ivan_qrt

ну да, эт я чота затупил, был не прав, тогда может имеет смысл ТСу не по baseurl, а по mirrorlist к репам цепляться, или в седьмом центосе уже не mirrorlist, а metalink в конфигах ставится.

novitchok ★★★★★
()
Ответ на: комментарий от novitchok

ТС'у имеет смысл в сетке разобраться, а уж потом в конфиги реп лезть.

Ivan_qrt ★★★★★
()
Ответ на: комментарий от Ivan_qrt

Уже исправил нужно было редактировать файл resolve.conf, и PEERDNS установить значение «no», чтобы resolve.conf не перезаписывался сам.

serhey
() автор топика
Ответ на: комментарий от serhey

А не лучше dns-ы правильные в конфигурации прописать?

Ivan_qrt ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.