NextcloudPi letsencrypt is not working unmet dependencies


i get an error by trying to configure: Automatic signed SSL certificates. Let’s Encrypt is a free, automated, and open Certificate Authority.

It was working the last time on 2th Dez., but now it’s not working anymore. Can somebodey help me please what’s wrong?

Reading state information…
ca-certificates is already the newest version (20161130+nmu1+deb9u1).
python is already the newest version (2.7.13-2).
openssl is already the newest version (1.1.1b-1+0~20190228092419.10+stretch~1.gbp729d89).
openssl set to manually installed.
gcc is already the newest version (4:8.1.0-1).
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-dev : Depends: libpython-dev (= 2.7.13-2) but it is not going to be installed
Depends: python2.7-dev (>= 2.7.13-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

This is not a nextcloud problem, but of the Debian system. Try:

sudo apt -f install

I resolved this problem by running the following command:

sudo apt install python2.7=2.7.13-2+deb9u3 python2.7-minimal=2.7.13-2+deb9u3  libpython2.7-stdlib=2.7.13-2+deb9u3 libpython2.7-minimal=2.7.13-2+deb9u3

However this also removed:

libpython2.7 libsmbclient php-smbclient python-ldb python-samba python-talloc python-tdb samba
  samba-common-bin samba-libs

However the let’s encrypt configuration itself seems borked as well.
It won’t update, and after fiddling around with the config it did.
However apache still uses the old certs.