yum安装遇到的问题

执行命令:yum -y install glances

报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again


解决:

vi /etc/yum.repos.d/epel.repo

#baseurl

mirrorlist

改为:

baseurl

#mirrorlist


继续执行命令:yum -y install glances

报错:[Errno 14] problem making ssl connection


解决:

vi /etc/yum.repos.d/epel.repo

将enabled=1先改为enabled=0

然后命令行执行:yum install ca-certificates

安装成功后,将enabled重新改为1

再执行:yum -y install glances

安装成功!

猜你喜欢

转载自blog.51cto.com/11009785/2406380