Centos 7 Cannot find a valid baseurl for repo: base/7/x86_64 hatasının çözümü

Centos 7 sunucu güncelleme sırasında aşağıdaki hatayı alıyorsanız.

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

 

Çözüm için:

Repo dosyasını silelim.

rm -rf /etc/yum.repos.d/CentOS-Base.repo

 

Sonra tekrar Nano ile dosyayı oluşturalım.

nano /etc/yum.repos.d/CentOS-Base.repo

 

İçerisine aşağıdaki satırları kopyala yapıştır yapalım

 

 

# 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://vault.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra

baseurl=http://vault.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://vault.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra

baseurl=http://vault.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://vault.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra

baseurl=http://vault.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://vault.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra

baseurl=http://vault.centos.org/centos/$releasever/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

 

  • 0 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

CENTOS 7 DE ROOT ŞİFRESİ DEĞİŞTİRME-RESETLEME

CENTOS 7 DE ROOT ŞİFRESİ NASIL DEĞİŞTİRİLİR? Centos 7 de root şifresini değiştirmek alışmış...

Almalinux screen yükleme

Almalinux 8 ve üzeri sürümlerde screen yüklemek için aşağıdaki komutları girmeniz yeterlidir....

Cloudlinux opt/alt/python37/lib/python3.7/site-packages/clcommon/lib/cledition.py hatasınin çözümü

Merhaba   Cloudlinux de alınan hata içeriğine göre çözümü şu şekildedir.     Hata: The...

Linux de tar.gz uzantılı tüm dosyaları yedek klasörüne taşıma

Merhaba   Sunucunuzda tüm yedek dosyaları farklı klasörler içinde ve bir araya toplamak zaman...

Linux Disk Performansı Nasıl Ölçülür ? (Performans Testi)

Linux Disk Performansı Nasıl Ölçülür ? [Detaylı Disk Performans Testi] Ubuntu, CentOS ve benzeri...