Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Linux và các thủ thực nhỏ (http://quantrinet.com/forum/forumdisplay.php?f=430)
-   -   Repository CentOS 7 lỗi (http://quantrinet.com/forum/showthread.php?t=10390)

hoctinhoc 14-08-2024 11:35 PM

Repository CentOS 7 lỗi
 
Repository CentOS 7 lỗi

Cách Fix: Vào 103.139.202.52 scp /etc/yum.repo. qua bên server lỗi.

scp /etc/yum.repos.d/* root@quantrinet.com:/etc/yum.repos.d/

sau đó gõ yum clean all or reboot

Cach 2:

Chạy các lệnh sau:

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
echo "sslverify=false" >> /etc/yum.conf
yum clean all
yum update -y


Rồi cài đặt lại


Bây giờ là 02:30 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.