Tried to do a wipe clean/reinstall and am getting an error, "Error: Could not update local repository. Contact support." and [X] Check for existing repository in /etc/.pihole

I tried to add some new blocklists on the admin panel and was out of disk space. I've only had this raspberry pi running for less than a month and somehow it already filled a 64g sd card. I tried following some forums on how to clear up space and messed the system up so bad I couldn't get internet through the pi's DNS, and lost many functions on the admin site. Couldn't see query logs and anytime I tried to open them I would get an error. Unfortunately I can't access the web admin interface anymore so I don't remember the exact error code. So i thought maybe the best thing to do would be to wipe the card completely and start fresh. I removed the card from the pi and opened the card on my laptop and deleted everything, looking back this may not have been the best way to do this but its the only way I knew how. I then re wrote the card with the raspberry pi imager to raspberry pi OS LITE (64 bit) and tried to reinstall pi hole from there. After setting my static ip and running "curl -sSL https://install.pi-hole.net | bash" it starts to reinstall but when I get through all the options it leaves me with Check for existing repository in /etc/.pihole
"Error: Could not update local repository. Contact support."
My only idea at this point is to try a new card but I'm not sure. This is all way over my head honestly. I have learned a decent bit through initially getting it set up and now trying to work through this problem but the closest knowledge base I have to this is G-code for CNC machines. Any help would be greatly appreciated. Thanks in advance!

Raspberry pi 4 model B 4gb, Raspberry Pi OS Lite (64-bit)

I would include a debug token but when I run the debug command I get "command not found"

This only works after the installation and Pi-hole is not yet installed.


Try to remove the contents of /etc/.pihole (don't forget the dot) using this command:

rm -r /etc/.pihole

If you successfully delete the directory, then try to install Pi-hole again.

Thanks for the response, heres what get when running "rm -r /etc/.pihole"

rm: cannot remove '/etc/.pihole': No such file or directory