首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Certbot Python Augeas依赖项

Certbot Python Augeas依赖项
EN

Stack Overflow用户
提问于 2020-03-05 06:25:18
回答 1查看 583关注 0票数 1

尝试使用AWS和Certbot SSL启动一个简单的LAMP服务。当我运行certbot-auto时,我得到了以下错误:

代码语言:javascript
复制
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Problem in Augeas installation',)

我尝试通过:pip3 install python-augeas安装python-augeas

结果:

代码语言:javascript
复制
ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-27aroyjq/python-augeas/setup.py'"'"'; __file__='"'"'/tmp/pip-install-27aroyjq/python-augeas/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-27aroyjq/python-augeas/pip-egg-info
         cwd: /tmp/pip-install-27aroyjq/python-augeas/
    Complete output (31 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-27aroyjq/python-augeas/setup.py", line 43, in <module>
        test_suite="test.test_augeas",
      File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/dist.py", line 448, in __init__
        k: v for k, v in attrs.items()
      File "/usr/lib64/python3.6/distutils/dist.py", line 281, in __init__
        self.finalize_options()
      File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/dist.py", line 740, in finalize_options
        ep.load()(self)
      File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/dist.py", line 747, in _finalize_setup_keywords
        ep.load()(self, ep.name, value)
      File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 217, in cffi_modules
        add_cffi_module(dist, cffi_module)
      File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 49, in add_cffi_module
        execfile(build_file_name, mod_vars)
      File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 25, in execfile
        exec(code, glob, glob)
      File "augeas/ffi.py", line 47, in <module>
        lib = ffi.dlopen("augeas")
      File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/api.py", line 150, in dlopen
        lib, function_cache = _make_ffi_library(self, name, flags)
      File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/api.py", line 832, in _make_ffi_library
        backendlib = _load_backend_lib(backend, libname, flags)
      File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/api.py", line 827, in _load_backend_lib
        raise OSError(msg)
    OSError: ctypes.util.find_library() did not manage to locate a library called 'augeas'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

有谁有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2020-04-30 00:47:51

代码语言:javascript
复制
$ yum install augeas
$ python3 -m pip install certbot

这修复了AWS Linux 2实例上的问题。如果您使用负载均衡器,则可以使用AWS ACM服务。如果没有,我发现Certbot工作得很好。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60535616

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档