gpt4 book ai didi

windows-8.1 - YumRepo 错误 : All mirror URLs are not using ftp, http[s] 或文件

转载 作者:行者123 更新时间:2023-12-03 14:30:42 25 4
gpt4 key购买 nike

我已经设置了centOS 6.5 server使用 VMWare Workstation 9Windows 8.1主机笔记本电脑。尝试使用时 yum安装软件包我收到以下错误:

[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

VM 可以在其他机器上运行( Windows 7 台式机和 Windows 8.1 笔记本电脑),只是不是我需要它运行的机器。我能够从 guest 和来自主机的 guest ping 主机,因此可以连接到互联网。

我已经卸载并重新安装了 Workstation 9。未升级到工作站 10。重建 CentOS 6.5 服务器。似乎没有什么可以解决问题。

当我从 Windows 8 升级到 Windows 8.1 时,我安装了 VMWare。后来我发现我应该在升级之前卸载 VMWare。这可能弄乱了我的 VMWare 网络适配器吗?

谁有想法?

最佳答案

确保您可以 ping vault.centos.org。

然后编辑/etc/yum.repos.d/CentOS-Base.repo
评论mirrorlist并取消注释 baseurl
全部更改

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


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

享受你的百胜更新!!! ;)

关于windows-8.1 - YumRepo 错误 : All mirror URLs are not using ftp, http[s] 或文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21396508/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com