YumRepo错误:所有镜像URL均未使用ftp,http [s]或文件 [英] YumRepo Error: All mirror URLs are not using ftp, http[s] or file

查看:1371
本文介绍了YumRepo错误:所有镜像URL均未使用ftp,http [s]或文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Windows上使用 VMWare Workstation 9 设置了 centOS 6.5服务器 8.1 主机笔记本电脑。尝试使用 yum 安装软件包时,出现以下错误:

I have set up a centOS 6.5 server using VMWare Workstation 9 on a Windows 8.1 host laptop. When trying to use yum to install packages I get the following error:

[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

虚拟机可以在其他计算机上运行( Windows 7 台式机和一台 Windows 8.1 笔记本电脑),但不是我需要的笔记本电脑。我能够ping通来自来宾的主机和来自主机的来宾,因此可以连接到互联网。

The VM works on other machines (Windows 7 desktop and an Windows 8.1 laptop), just not the one I need it to work on. I am able to ping the host from the guest and the guest from the host, so there is a connection to the internet.

我已经卸载并重新安装了Workstation 9。到工作站10。重建了CentOS 6.5服务器。

I have uninstalled and reinstalled Workstation 9. Ungraded to workstation 10. Rebuilt the CentOS 6.5 server. Nothing seems to solve the issue.

从Windows 8升级到Windows 8.1时,我安装了VMWare。后来我发现我应该在升级之前先卸载VMWare。

When I upgraded from Windows 8 to Windows 8.1, I had VMWare installed. I found out later that I should have uninstalled VMWare before upgrading. Could this have messed up my VMWare network adapters?

任何人有任何想法吗?

推荐答案

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

Be sure that you can ping vault.centos.org.

然后编辑 /etc/yum.repos.d/CentOS -Base.repo

注释镜像列表并取消注释 baseurl

全部更改

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

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

并享受您的百胜更新!!! ;)

And enjoy your yum update!!! ;)

这篇关于YumRepo错误:所有镜像URL均未使用ftp,http [s]或文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆