CentOS 7 Repo için geçerli bir baseurl bulunamıyor: base / 7 / x86_64


0

Bu hata beni deli ediyor, forumlarda yayınlanan her şeyi deniyorum ve hiçbir şey işe yaramıyor.

Yazarken:

# yum update

Aşağıdaki hatayı alıyorum:

[root @ www yum.repos.d] # yum update Complementos Cargados: önbelleğe HOSTFILE gelen fastestmirror Yükleme ayna hızları alınamadı mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock hatası 14 oldu : curl # 56 - "Recv hatası: Uzak makine tarafından bağlantı sıfırlandı"

Yapılandırılmış havuzlardan biri başarısız oldu (Bilinmiyor) ve yum devam etmek için yeterli önbellek verisine sahip değil. Bu noktada yum'un yapabileceği tek güvenli şey başarısız olmaktır. Bunu düzeltmek için çalışmanın birkaç yolu var:

 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

Repo için geçerli bir baseurl bulunamıyor: base / 7 / x86_64

Kendi IP'sine sahip bir üretim sunucusudur, bu yüzden DHCP'yi denedim ve ONBOOT = hayır (evet var), vb.

Eğer yazarsam:

# curl -v 'http://mirrorlist.centos.org/?repo=os&arch=x86_64&release=7'

Bu ne elde ediyorum:

[root@www yum.repos.d]# curl -v 'http://mirrorlist.centos.org/?repo=os&arch=x86_64&release=7'
* About to connect() to mirrorlist.centos.org port 80 (#0)
*   Trying 2001:1b48:203::4:10...
* Connected to mirrorlist.centos.org (2001:1b48:203::4:10) port 80 (#0)
> GET /?repo=os&arch=x86_64&release=7 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: mirrorlist.centos.org
> Accept: */*
>
* Recv failure: Connection reset by remote machine
* Closing connection 0
curl: (56) Recv failure: Connection reset by remote machine

Benim CentOS-Base.repoiçeriğin:

> # 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

Ve içeriği /etc/yum.conf:

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release


#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Nasıl yum updatetekrar iş yapabilirim ???


belki belirli bir repo sunucusu ayarlamaya çalışırsınız, buraya bakın
Zina

Bir tür yerel ağ sorunu olabilir gibi görünüyor. Sorunsuz erişebiliyorum http://mirrorlist.centos.org/?repo=os&arch=x86_64&release=7. Aynı ağdaki diğer makinelerle aynı sorunu yaşıyor musunuz?
larsks,

@Pathros Trying 2001:1b48:203::4:10...IPv6 ile bağlanmak istiyor musunuz?
user3788685 13:18
Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.