If you're using our pip
instructions, you will need to destroy and recreate the virtual environment from scratch after upgrading to a new Debian major version.
Your data isn't stored in /opt/certbot
, so it's safe to delete it and follow the instructions from the beginning.