使用国内镜像安装k3s 失败

环境信息:
K3s 版本:

节点 CPU 架构、操作系统和版本:Linux linshi-pro 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
集群配置:
1 servers

问题描述:
使用国内镜像源安装指定版本的k3s失败

复现步骤:

预期结果:
安装成功

实际结果:

附加上下文/日志:

日志
[INFO]  Finding release for channel v1.27
[INFO]  Using v1.27.15+k3s2 as release
[INFO]  Downloading hash rancher-mirror.rancher.cn/k3s/v1.27.15-k3s2/sha256sum-amd64.txt
[INFO]  Downloading binary rancher-mirror.rancher.cn/k3s/v1.27.15-k3s2/k3s
[INFO]  Verifying binary download
[INFO]  Installing k3s to /usr/local/bin/k3s
[INFO]  Finding available k3s-selinux versions
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base                                                                                                                                                                                                                                                     | 3.6 kB  00:00:00     
epel                                                                                                                                                                                                                                                     | 4.3 kB  00:00:00     
extras                                                                                                                                                                                                                                                   | 2.9 kB  00:00:00     
updates                                                                                                                                                                                                                                                  | 2.9 kB  00:00:00     
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 12] Timeout on https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: (28, 'Operation timed out after 30000 milliseconds with 0 out of 0 bytes received')
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 12] Timeout on https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: (28, 'Operation timed out after 30001 milliseconds with 0 out of 0 bytes received')
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.

rpm 的问题需要手动处理下,我没有 centos 的主机,帮不上你

重新再次执行安装命令即可,但是没找到问题的原因

今天重新安装还是这个基础环境,又出现超时 :joy:,请问有什么好的办法解决吗。。。一直超时

没找到好的解决办法,最终参考文档中心的离线安装方法安装,奇怪为啥ubuntu能正常拉取,centos不行,

因为 Ubuntu 不需要这个步骤,:smile: