错误信息如下:
Error: couldn't get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt:
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from certbot.main import main
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 7, in <module>
import zope.component
File "/root/.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
certbot安装证书报如上错误的解决方案:
1、unset PYTHON_INSTALL_LAYOUT;
2、rm -rf /root/.local/share/letsencrypt/;
3、/root/certbot-auto renew --debug
4.执行域名安装命令即可
Error: couldn't get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt:
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from certbot.main import main
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 7, in <module>
import zope.component
File "/root/.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
certbot安装证书报如上错误的解决方案:
1、unset PYTHON_INSTALL_LAYOUT;
2、rm -rf /root/.local/share/letsencrypt/;
3、/root/certbot-auto renew --debug
4.执行域名安装命令即可