2021年4月18日 星期日

CentOS 7 一些錯誤的解決方式

 

CentOS 7 [Errno 256] No more mirrors to try.錯誤的解決方式


解決方式:

1.  yum clean all
2.  yum makecache

3.  重新使用yum 安裝軟體套件  e.g.   yum install python36 -y


CentOS7優先使用IPv4 > IPv6

複製預設範本 

cp /usr/share/doc/glibc-common-2.17/gai.conf /etc/gai.conf

vi /etc/gai.conf


拿掉以下這行註解

precedence ::ffff:0:0/96 100


service network restart 後即生效