Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

letsencrypt certbot broken

Tags:

certbot

CentOS 7 apache ver 2.4 php 7.1

My certbot is broken, and I am unable to fix it.

[root@sw4u ~]# certbot renew
Traceback (most recent call last):
  File "/bin/certbot", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: cffi>=1.8,!=1.11.3
[root@sw4u ~]# certbot
Traceback (most recent call last):
  File "/bin/certbot", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: cffi>=1.8,!=1.11.3

yum install python2-acme yum install phtyon2-certbot-*

Install Almost certbot, python2 and python3. But I can't solve this problem.

like image 440
권오현 Avatar asked Sep 20 '26 08:09

권오현


1 Answers

Have you installed cffi?

python3 -m venv env
source env/bin/activate
pip3 install cffi
like image 180
Cameron Hudson Avatar answered Sep 23 '26 15:09

Cameron Hudson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!