我在 CentOS 7 上安装 certbot 时遇到了一点麻烦——我已经运行sudo yum install epel-release
:
[centos@jump-1 ~]$ sudo yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.solarvps.com
* epel: mirror.us.leaseweb.net
* extras: mirrors.lga7.us.voxel.net
* updates: mirror.datto.com
Package epel-release-7-6.noarch already installed and latest version
Nothing to do
但是sudo yum install certbot
出现了:
[centos@jump-1 ~]$ sudo yum install certbot
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.solarvps.com
* epel: mirror.symnds.com
* extras: mirrors.lga7.us.voxel.net
* updates: mirrors.advancedhosters.com
No package certbot available.
Error: Nothing to do
我应该尝试什么?
@hogarthj ,有什么想法吗?
它在回购...
https://dl.fedoraproject.org/pub/epel/7/x86_64/c/
你能看到任何其他的epel包吗?
您可能想尝试清除 yum 缓存,否则请使用高级调试运行它并粘贴输出。
感谢您为我指出正确的方向 - 我显然在/etc/yum.repos.d
中有一个糟糕的epel.repo
$ - 我rm
编辑了它,删除epel-release
,清除了yum 缓存,然后重新安装epel-release
,它现在可以工作了。
最有用的评论
感谢您为我指出正确的方向 - 我显然在
/etc/yum.repos.d
中有一个糟糕的epel.repo
$ - 我rm
编辑了它,删除epel-release
,清除了yum 缓存,然后重新安装epel-release
,它现在可以工作了。