我试图用Amazon更新EC2上的SSL证书,但是我收到了下面的错误:
[ec2-user@ip-xxx-xx-xx-xx letsencrypt]$ ./letsencrypt-auto renew
Error: couldn't get currently installed version for /home/ec2-user/.local/share/letsencrypt/bin/letsencrypt:
Traceback (most recent call last):
File "/home/ec2-user/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from certbot.main import main
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 12, in <module>
import zope.component
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in <module>
from zope.interface import Interface
ImportError: No module named interface知道怎么解决吗?
发布于 2017-05-18 09:10:16
有人和你有同样的问题,查看社区论坛,让我们加密。
该线程的一个解决方案是:
基本上,我从零开始重新安装它: cd $HOME/..local/共享rm -fr letsencrypt unset PYTHON_INSTALL_LAYOUT ./certbot-auto域证书--webroot -w DOCUMENT_ROOT --调试
发布于 2018-12-22 12:32:39
我在Amazon实例中也遇到了同样的问题,该实例最初是用cert设置的,运行良好。我试图通过另一篇文章来解决其他一些问题,这也是我来的结果。
最后,我不得不做以下几件事
rm -rf /opt/eff.org/*它可能会失败,但建立一个干净的虚拟环境。
./certbot-auto --debug
cd /opt/eff.org/certbot/venv/lib64/python2.7
mv site-packages site-packages.sav
ln -s dist-packages/ site-packages现在您已经准备好再次运行certbot-auto
./certbot-auto --debughttps://stackoverflow.com/questions/42180144
复制相似问题