Pi-Hole uninstall crashes, and stops you from being able to re-install

I feel like I'm going crazy, all I've been trying to do is install PiHole on a brand new Pi 4, with a clean install of Raspberry Pi OS 32 bit and have had nothing but issues. First I was thrown by what looked to be an error saying I had called the scripts with non root privileges which is apparently normal and only serves to confuse people like me....error discussed here.

After being scared off by the error, I then decided to install the manual way which went great until it froze up at a particular part and caused 2 system crashes- something to do with "symlink". But in the end I got it working.

I decided however to further investigate this "symlink" issue, and do a complete re-install knowing it's fine to ignore the error info about script not being ran with admin privelages. So, I used again this documentation here and ran pihole uninstall...all was going fine, until It asked me if I wanted to uninstall dependancies that were installed with pihole:

[i] The following dependencies may have been added by the Pi-hole install:
dhcpcd5 git iproute2 whiptail dnsutils cron curl iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data libcap2 lighttpd php7.3-common php7.3-cgi php7.3-sqlite3 php7.3-xml php7.3-json php7.3-intl

So, I then spent forever waiting and pressing Y to the dozens of dependancies, only to find out it crashes half way through and kicked me back to prompt...oh, and it uninstalled curl meaning I can no longer run:

curl -sSL https://install.pi-hole.net | bash

So, I reinstalled curl by running:

sudo apt install curl

Only to find out that again, after running

curl -sSL https://install.pi-hole.net | bash

It throws an error after the "update cache of locally available packages" saying:

Cancel was selected, exiting installer

Even though I am 100% certain I never so much as touched the keyboard, and I tried multiple times.

And after all this, the whole reason I'm moving to a Pi 4 in the first place is because it's not documented in this documentation here that it's not possible to install DoH through cloudflared on the Pi Zero, the Pi 1 B, and the Pi 2 B (and possibly others). Due to a 2 year old bug in cloudflared...you can only install a 2018 version.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.