업데이트 오류를 ​​암호화하자

업데이트 오류를 ​​암호화하자

매월 cron에서 다음 명령을 실행하면 이 오류가 발생합니다.

/opt/letsencrypt/letsencrypt-auto certonly --quiet --standalone --renew-by-default -d example.org -d www.example.org  
Creating virtual environment...
Installing Python packages...     
Installation succeeded.               
An unexpected error occurred:             
DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests                               
Please see the logfile 'certbot.log' for more details.

분명히 "example"은 내 도메인이 아니며 올바른 도메인을 사용했습니다. certbot.log추가 세부정보는 제공되지 않았습니다 .

Traceback (most recent call last):
  File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
    sys.exit(main())
  File "/opt/letsencrypt/certbot/main.py", line 858, in main
    plugins = plugins_disco.PluginsRegistry.find_all()
  File "/opt/letsencrypt/certbot/plugins/disco.py", line 183, in find_all
    plugin_ep = PluginEntryPoint(entry_point)
  File "/opt/letsencrypt/certbot/plugins/disco.py", line 34, in __init__
    self.plugin_cls = entry_point.load()
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2201, in load
    self.require(*args, **kwargs)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2218, in require
    items = working_set.resolve(reqs, env, installer)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 830, in resolve
    raise DistributionNotFound(req, requirers)
DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests

내가 무엇을 놓치고 있나요?

답변1

운영 체제를 지정하지 않았지만 Ubuntu 18.04 시스템에서 python-ndg-httpsclient 패키지를 설치하면 문제가 해결되었습니다.

sudo apt-get install python-ndg-httpsclient

이 답변이 조금 늦을 수 있다는 것을 알고 있습니다.

관련 정보