yum 安装epel扩展后报错

安装epel扩展后出现的几个问题

A1:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
编辑/etc/yum.repo/epel.repo文件,

1
2
3
4
5
#baseurl
mirrorlist
改成
baseurl
#mirrorlist

A2:

PYCURL ERROR 7 - “Failed to connect to 2001:4178:5:200::10: Network is unreachable”

1
2
3
vim /etc/yum.conf
[main]
ip_resolve=4

A3:

[Errno 14] problem making ssl connection
[Errno 14] PYCURL ERROR 7 - Failed to connect to 2605:bc80:3010:600:dead:beef:cafe:fed9: Network is unreachable

1
2
3
yum install ca-certificates -y
yum clean all
yum list

A4:
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or “yum-complete-transaction –cleanup-only” and “yum history redo last”, first to finish them. If those don’t work you’ll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package.

1
2
3
4
yum install yum-utils
yum-complete-transaction --cleanup-only
package-cleanup --dupes
package-cleanup --problems

独学无友,孤陋寡闻;学习记录,欢迎拍砖!