[英]CERBOT ContextualVersionConflict: (zope.interface 4.3.2 (/usr/lib/python3/dist-packages)
I'm trying to get an SSL certificate using CERTBOT
through " certbot-dns-route53
".我正在尝试通过“
certbot-dns-route53
”使用CERTBOT
获得 SSL 证书。 I've install certbot
, aws-cli
and c ertbot-dns-route53
plugin on Ubuntu 18.0
我已经在
Ubuntu 18.0
上安装certbot
、 aws-cli
和 c ertbot-dns-route53
插件
I fired the following command "certbot certonly --dns-route53 -d mydomain.com" and got the following error我触发了以下命令“certbot certonly --dns-route53 -d mydomain.com”并收到以下错误
2021-04-24 13:05:20,028:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/local/lib/python3.6/dist-packages/certbot/_internal/main.py", line 1403, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/local/lib/python3.6/dist-packages/certbot/_internal/plugins/disco.py", line 237, in find_all
plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
File "/usr/local/lib/python3.6/dist-packages/certbot/_internal/plugins/disco.py", line 255, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point, with_prefix)
File "/usr/local/lib/python3.6/dist-packages/certbot/_internal/plugins/disco.py", line 51, in __init__
self.plugin_cls: interfaces.IPluginFactory = entry_point.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2323, in load
self.require(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2346, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 783, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (zope.interface 4.3.2 (/usr/lib/python3/dist-packages), Requirement.parse('zope.interface>=5.3.0a1'), {'zope.component'})
2021-04-24 13:05:20,028:ERROR:certbot._internal.log:An unexpected error occurred:
2021-04-24 13:05:20,028:ERROR:certbot._internal.log:pkg_resources.ContextualVersionConflict: (zope.interface 4.3.2 (/usr/lib/python3/dist-packages), Requirement.parse('zope.interface>=5.3.0a1'), {'zope.component'})
Help me out here.帮帮我。
Try this in terminal:在终端试试这个:
> sudo apt remove certbot
> sudo snap remove certbot
> sudo pip uninstall certbot
> sudo pip3 uninstall certbot
then you run然后你跑
> certbot
if ok you will get an error like:如果没问题,您将收到如下错误:
> Command 'cerbot' not found, did you mean:
now, install certbot现在,安装 certbot
> sudo apt install certbot
restart the terminal重启终端
Now, try if ok, run:现在,试试如果没问题,运行:
> certbot
if ok install certbot-dns-route53如果可以安装 certbot-dns-route53
> sudo apt install python3-certbot-dns-route53
Finally, restart the terminal and check to register your certificate.最后,重新启动终端并检查以注册您的证书。
This worked for me.这对我有用。 ;)
;)
Could be recent apt update conflicting files.可能是最近的 apt 更新冲突文件。 Follow procedure below;
遵循以下程序; which worked for me;
这对我有用; Assuming Ubuntu >= 18.0
假设 Ubuntu >= 18.0
sudo apt-get remove certbot
sudo pip3 uninstall certbot
sudo pip uninstall certbot
## Install snap if not installed
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
## check for any previous symlink and link again.
whereis certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo ln -s /snap/bin/certbot /usr/local/bin/certbot
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.