My ip is:
95.156.230.229 cause I want to migrate from vreecoaster.de to the IP
I ran this command:
I delete /etc/letsencrypt folder and replaced it by an old one, that was corrupt and yeah. How I delete or repair the files. I ran so much commands.
It produced this output:
-bash: /usr/bin/certbot: No such file or directory
My web server is (include version):
Apache 2.38.2 Deb
The operating system my web server runs on is (include version):
Debian 10 Backports
I can login to a root shell on my machine (yes or no, or I don't know):
yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
If this is a new server without certbot, you'll need to install it first. If certbot isn't installed, it doesn't matter what the contents of /etc/letsencrypt is. Note: the certbot programs location is not inside /etc/letsencrypt.
I was on this link. I've finished setup, then I changed the /etc/letsencrypt folder, then nothing worked and I read posts how to delete certbot completely and reinstall it new. But yeah the reinstall doesnt go normal.
That's an error from after the attempt to reinstall certbot. If the reinstall wasn't succesful, it's understandable the next command will fail too. I'd like to see what's going wrong during the reinstall of certbot. Perhaps it's just as simple as a missing symbolic link to the certbot program inside /snap/ somewhere.
You might try to run whereis certbot to see if it can find a location. If that doesn't give any proper result, I'd like to see the commands you ran to reinstall certbot and all the corresponding outputs.
Also, I notice the whereis command now too (missed that just now).. Which is strange. Apart from the above (about running the instructions from the top), I'm curious about what the output of ls -l /usr/bin/certbot might be.
OK, great, thanks. So the snap seems to be installed, but /usr/bin/certbot already exists. Perhaps it's pointing to some incorrect location? Could you run the ls -l /usr/bin/certbot command and see where it points to?
I understand that, but for some reason, the symbolic link /usr/bin/certbot, which is used if you "just" run certbot seems to be malfunctioning (I don't know why). It should be possible to just type /snap/bin/certbot on the command line to at least check if certbot works or not.