openEuler22.03(LTS-SP3)将静态IP配置之后,并且按要求设置DNS之后,也可以利用Xshell远程登录,可以ping通自己的主机,ping 百度时显示ping: baidu.com: Name or service not known,配置yum时,更新和下载都是0KB,然后失败, repository 'openEuler-everything': - Curl error (28): Timeout was reached for http://mirrors.tuna.tsi





配置的源:

[openEuler-everything]
name=openEuler-everything
baseurl=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/
enabled=1
gpgcheck=0
gpgkey=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/RPM-GPG-KEY-openEuler

[openEuler-EPOL]
name=openEuler-epol
baseurl=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/EPOL/main/x86_64/
enabled=1
gpgcheck=0

[openEuler-update]
name=openEuler-update
baseurl=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/update/x86_64/
enabled=1
gpgcheck=0

[openEuler-everything]
name=openEuler-everything
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/everything/x86_64/
enabled=1
gpgcheck=0
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/everything/x86_64/RPM-GPG-KEY-openEuler

[openEuler-EPOL]
name=openEuler-epol
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/EPOL/main/x86_64/
enabled=1
gpgcheck=0

这个源用的官方给的,应该没有问题的,复制下来看着有中文,其实是正确的


详细问题

yum update
openEuler-everything                                                                                             0.0  B/s |   0  B     03:44    
Errors during downloading metadata for repository 'openEuler-everything':
  - Curl error (28): Timeout was reached for http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/repodata/repomd.xml [Resolving timed out after 30001 milliseconds]
  - Curl error (28): Timeout was reached for http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/repodata/repomd.xml [Resolving timed out after 30000 milliseconds]
Error: 为仓库 'openEuler-everything' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

希望大佬门解决一下!!! :face_holding_back_tears:

网络不通,没法连接公网

具体怎么解决呢 :smiling_face_with_tear:

虚拟机?

对的

具体是怎么搭建的?VMware Workstation?

就是镜像安装

对,Vmware Workstation

右键看一下虚拟机设置



没有网卡,连的wifi

再加一张网卡,选择桥接模式,然后到系统里配置新网卡为dhcp自动获取地址

没有网卡啊 :sob:

就是网络设配器,没有么?

我用的随身Wifi,家里没有无线网

和这个没关系,你点一下添加

这个我直接改成桥接模式是不是不行呢
改完,远程连接就连接不上了

这样IP要用dhcp,不会是静态地址


嗯嗯,点击添加了

桥接啊,按照上面的截图配置

1 Like