Pi-hole won't switch to Dark Mode

That would explain why your installation has failed the way it did. :wink:

You shouldn't do that in general, and also it is specifically not required to install Pi-hole. Pi-hole's installation script handles necessary access control itself.