LetsEncrypt Installation Fehler

TFrenz

Active Member
May 13, 2020
102
9
38
60
Hallo, habe euer Tutorial durchgearbeitet.
https://forum.proxmox.com/threads/how-to-lets-encrypt-and-pmg.41493/

Beim installieren von certbot kommen aber fehler, und auch das weitere Instalieren funktioniert dann nicht mehr.
An was kann das liegen?
Proxmox 6.2.5

root@mta:~# apt-get install certbot -t stretch-backports Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: python-pyicu python3-acme python3-asn1crypto python3-certbot python3-cffi-backend python3-configargparse python3-configobj python3-cryptography python3-distutils python3-future python3-josepy python3-lib2to3 python3-mock python3-openssl python3-parsedatetime python3-pbr python3-requests-toolbelt python3-rfc3339 python3-setuptools python3-tz python3-zope.component python3-zope.event python3-zope.hookable python3-zope.interface Suggested packages: python3-certbot-apache python3-certbot-nginx python-certbot-doc python-acme-doc python-configobj-doc python-cryptography-doc python3-cryptography-vectors python-future-doc python-mock-doc python-openssl-doc python3-openssl-dbg python-setuptools-doc The following NEW packages will be installed: certbot python-pyicu python3-acme python3-asn1crypto python3-certbot python3-cffi-backend python3-configargparse python3-configobj python3-cryptography python3-distutils python3-future python3-josepy python3-lib2to3 python3-mock python3-openssl python3-parsedatetime python3-pbr python3-requests-toolbelt python3-rfc3339 python3-setuptools python3-tz python3-zope.component python3-zope.event python3-zope.hookable python3-zope.interface 0 upgraded, 25 newly installed, 0 to remove and 6 not upgraded. 2 not fully installed or removed. Need to get 2,302 kB of archives. After this operation, 11.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ftp.debian.org/debian stretch-backports/main amd64 python3-asn1crypto all 0.24.0-1~bpo9+1 [78.2 kB] ...... Get:25 http://ftp.de.debian.org/debian buster/main amd64 python-pyicu amd64 2.2-2 [234 kB] Fetched 2,302 kB in 1s (4,066 kB/s) Selecting previously unselected package python3-asn1crypto. (Reading database ... 66965 files and directories currently installed.) .... Unpacking certbot (0.28.0-1~bpo9+1) ... Selecting previously unselected package python-pyicu. Preparing to unpack .../24-python-pyicu_2.2-2_amd64.deb ... Unpacking python-pyicu (2.2-2) ... Setting up python3-configargparse (0.13.0-1) ... Setting up python3-requests-toolbelt (0.8.0-1) ... Setting up python3-zope.event (4.2.0-1) ... Setting up python3-zope.interface (4.3.2-1+b2) ... Setting up python-pyicu (2.2-2) ... Setting up nginx-full (1.14.2-2+deb10u3) ... [B]Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. invoke-rc.d: initscript nginx, action "start" failed. ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2020-09-16 11:35:39 CEST; 5ms ago Docs: man:nginx(8) Process: 2586 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)[/B] Sep 16 11:35:39 mta.ebf-frenz.de systemd[1]: Starting A high performance web server and a reverse proxy server... Sep 16 11:35:39 mta.ebf-frenz.de nginx[2586]: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/pmg-quarantine.conf:2 Sep 16 11:35:39 mta.ebf-frenz.de nginx[2586]: nginx: configuration file /etc/nginx/nginx.conf test failed Sep 16 11:35:39 mta.ebf-frenz.de systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Sep 16 11:35:39 mta.ebf-frenz.de systemd[1]: nginx.service: Failed with result 'exit-code'. Sep 16 11:35:39 mta.ebf-frenz.de systemd[1]: Failed to start A high performance web server and a reverse proxy server. [B]dpkg: error processing package nginx-full (--configure): installed nginx-full package post-installation script subprocess returned error exit status 1[/B] Setting up python3-tz (2019.1-1) ... Setting up python3-zope.hookable (4.0.4-4+b4) ... Setting up python3-configobj (5.0.6-3) ... Setting up python3-rfc3339 (1.1-1) ... Setting up python3-lib2to3 (3.7.3-1) ... Setting up python3-asn1crypto (0.24.0-1~bpo9+1) ... Setting up python3-cffi-backend (1.12.2-1) ... Setting up python3-distutils (3.7.3-1) ... Setting up python3-setuptools (40.8.0-1) ... dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured Setting up python3-pbr (4.2.0-4~bpo9+2) ... update-alternatives: using /usr/bin/python3-pbr to provide /usr/bin/pbr (pbr) in auto mode Setting up python3-zope.component (4.3.0-1) ... Setting up python3-mock (2.0.0-4) ... Setting up python3-cryptography (2.3-1~bpo9+1) ... Setting up python3-future (0.16.0-1) ... update-alternatives: using /usr/bin/python3-futurize to provide /usr/bin/futurize (futurize) in auto mode update-alternatives: using /usr/bin/python3-pasteurize to provide /usr/bin/pasteurize (pasteurize) in auto mode Setting up python3-parsedatetime (2.4-2~bpo9+1) ... Setting up python3-openssl (19.0.0-1~bpo9+1) ... Setting up python3-josepy (1.1.0-2~bpo9+1) ... Setting up python3-acme (0.28.0-1~bpo9+1) ... Setting up python3-certbot (0.28.0-1~bpo9+1) ... Setting up certbot (0.28.0-1~bpo9+1) ... Created symlink /etc/systemd/system/timers.target.wants/certbot.timer → /lib/systemd/system/certbot.timer. Processing triggers for man-db (2.8.5-2) ... Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1) root@mta:~#
 
An was kann das liegen?

Das Tutorial wurde für die alte Version 5.x (basierend auf Debian Stretch) erstellt.

Die aktuelle Version basiert auf Debian Buster. D.h. anstatt "stretch", immer "buster" verwenden.