Getting “Error: couldn't get currently installed version for letsencrypt” when trying to renew my certificates

Hi,
run the commands in the following sequence:

rm -rf ~/.local/share/letsencrypt
./certbot-auto --debug
choose c when asked
./letsencrypt-auto --debug certonly -a webroot --agree-tos --renew-by-default YOUR Domain Details.