如何解决centos系统yum安装tinyproxy时出现的问题
如何解决centos系统yum安装tinyproxy时出现的问题
yum安装tinyproxy时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again,本文将针对此问题进行详细说明。
1.在yum install tinyproxy时出现错误。

2.输入vi /etc/yum.repos.d/epel.repo,打开编辑器。

3.将
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
enabled=1
pgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
修改为
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
enabled=1
pgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
修改完成后按Esc输入“:wq”保存并退出,如下图。

4.这时候在重新输入
yum install tinyproxy
安装就可以了。
