使用 Nginx 在 Debian9 上安装 Let's encrypt/Certbot

Bar*_*mas 5 python debian nginx stretch certbot

我试图按照这个文件,但我有这个结果:

root@debian:~# apt-get install python-certbot-nginx -t stretch-backports 读取包列表...完成 构建依赖树 读取状态信息...完成 一些包无法安装。这可能意味着您请求了一个不可能的情况,或者如果您使用的是不稳定的发行版,则某些必需的包尚未创建或已从 Incoming 中移出。以下信息可能有助于解决这种情况:

以下软件包具有未满足的依赖项: python-certbot-nginx :依赖项:python3-certbot-nginx 但不会安装 E:无法纠正问题,您持有损坏的软件包。

当我尝试安装python3-certbox-nginx 时

无法安装某些软件包。这可能意味着您请求了一个不可能的情况,或者如果您使用的是不稳定的发行版,则某些必需的包尚未创建或已从 Incoming 中移出。以下信息可能有助于解决这种情况:

以下软件包具有未满足的依赖项: python3-certbot-nginx : Depends: certbot (>= 0.25.0~) but it is not going to be installed Depends: python3-acme but it is not going to be installed Depends: python3-certbot但它不会被安装依赖:python3-mock 但它不可安装依赖:python3-openssl (>= 0.13) 但它不可安装依赖:python3-pyparsing (>= 1.5.5) 但它不可安装取决于:python3-zope.interface 但它不可安装 E:无法纠正问题,您持有损坏的软件包。

我在我的 sources.list 中添加了 backports dep 并运行了apt-get update.

这是我的sources.list

python -VPython 2.7.13,但也安装了 Python 3。

小智 0

你有光盘吗?

deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main
Run Code Online (Sandbox Code Playgroud)

你可以尝试评论这一行并应用

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

并尝试再次安装python3-certbox-nginx