Pihole install error on a fresh Raspbian Stretch - non-root privileges

I am trying to install PiHole on a fresh Raspbian Stretch image and I keep getting the following error about non-root privileges.

pi@raspberrypi:~ $ sudo curl -sSL https://install.pi-hole.net | bash

  [✗] Root user check
      Script called with non-root privileges
      The Pi-hole requires elevated privileges to install and run
      Please check the installer for any concerns regarding this requirement
      Make sure to download this script from a trusted source

  [✓] Sudo utility check

  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

And not surprisingly, PiHole does not work. Please advice.

1 Like

Ok....I used the manual commands and it worked

wget -O basic-install.sh https://install.pi-hole.net
sudo bash basic-install.sh
2 Likes

The following worked better for me:
curl -sSL https://install.pi-hole.net | sudo bash

2 Likes

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