gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 12:00:01 25 4
gpt4 key购买 nike

我试着关注 this document ,但我得到了这个结果:

root@debian:~# apt-get install python-certbot-nginx -t stretch-backports Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: python-certbot-nginx : Depends: python3-certbot-nginx but it is not going to be installed E: Unable to correct problems, you have held broken packages.

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

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: 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 but it is not going to be installed Depends: python3-mock but it is not installable Depends: python3-openssl (>= 0.13) but it is not installable Depends: python3-pyparsing (>= 1.5.5) but it is not installable Depends: python3-zope.interface but it is not installable E: Unable to correct problems, you have held broken packages.

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

这是我的 sources.list .

python -V 表示 Python 2.7.13,但也安装了 Python 3。

最佳答案

你有光盘吗?

deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main

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

sudo apt-get update

然后再次尝试安装python3-certbox-nginx

关于python - 使用 Nginx 在 Debian9 上安装 Let's encrypt/Certbot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51976179/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com