Python-certbot-apache' has no installation candidate

i have been trying to install certbot i have listed below.

root@SyncCloud:/var/www/html/nextcloud# sudo apt install python-certbot-apache
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package python-certbot-apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-certbot-apache

E: Package ‘python-certbot-apache’ has no installation candidate
root@SyncCloud:/var/www/html/nextcloud# apt-get install certbot
Reading package lists… Done
Building dependency tree
Reading state information… Done
certbot is already the newest version (0.40.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@SyncCloud:/var/www/html/nextcloud# sudo apt install python-certbot-apache
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package python-certbot-apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-certbot-apache

E: Package ‘python-certbot-apache’ has no installation candidate
root@SyncCloud:/var/www/html/nextcloud#

Hello @Caleb_Shah,

I don’t want to be rude, but this question has nothing to do with Nextcloud.

Setting up a web server with a suitable php version and valid SSL certificates is independent of Nextcloud.
Please use the search function of this forum or your preferred search engine.

1 Like

Thank you so much rake,
Sorry for to many questions.

For having this apt command to work you have to follow this :

And again it’s have nothing to do with Nextcloud.
Certbot have it’s own help (discourse) forum. you can google your error and you will find it.