Pi-hole installation fails "Error: Neither IPv4 or IPv6 selected"

The issue I am facing:
Pi-hole installation fails with "Error: Neither IPv4 or IPv6 selected". This occurs regardless of installation method used. Instead of creating menus to guide installation, whiptail prints the arguments in their entirety, and does not wait for input whatsoever. I suspect that this issue is out of the scope of the Pi-hole community in general, but it's stopping me from installing Pi-hole on my system, so I'm hoping that someone here may have some insight / have had an issue with this in the past and can point me in the right direction. Thank you in advance for any help.

Details about my system:
uname -a returns:
Linux 4.19.0-16-686-pae #1 SMP Debian 4.19.181-1 (2021-03-19) i686 GNU/Linux

docker -v returns:
Docker version 18.09.1, build 4c52b90
Docker was installed using a lightly edited version of /docker-32bin/debian/build-image.sh on github (changed "jessie" to "buster")

Output of basic-install.sh

root@VTGUARDIAN:/home/humanuser/Bin/pihole_setup/Pi-hole/automated install# ./basic-install.sh

  [โœ“] Root user check

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

  [โœ“] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.3.27-1~deb10u1

  [โœ“] Checking apt-get for upgraded packages... up to date!

  [i] Installer Dependency checks...
  [โœ“] Checking for dhcpcd5
  [โœ“] Checking for git
  [โœ“] Checking for iproute2
  [โœ“] Checking for whiptail
  [โœ“] Checking for dnsutils

  [โœ“] Supported OS detected
  [i] SELinux not detected
--msgbox --backtitle Welcome --title Pi-hole automated installer \n\nThis installer will transform your device into a network-wide ad blocker! 26 70
--msgbox --backtitle Plea --title Free and open source \n\nThe Pi-hole is free, but powered by your donations:  https://pi-hole.net/donate/ 26 70
--msgbox --backtitle Initiating network interface --title Static IP Needed \n\nThe Pi-hole is a SERVER so it needs a STATIC IP ADDRESS to function properly.

In the next section, you can choose to use your current network settings (DHCP) or to manually edit them. 26 70
--separate-output --radiolist Choose An Interface (press space to toggle selection) 26 70 2 enp1s0 available ON docker0 available OFF
--separate-output --menu Select Upstream DNS Provider. To use your own, select Custom. 26 70 7 Google (ECS)  OpenDNS (ECS, DNSSEC)  Level3  Comodo  DNS.WATCH  Quad9 (filtered, DNSSEC)  Quad9 (unfiltered, no DNSSEC)  Quad9 (filtered + ECS)  Cloudflare  Custom 
  [i] Using upstream DNS:  ()
--separate-output --checklist Pi-hole relies on third party lists in order to block ads.\n\nYou can use the suggestion below, and/or add your own after installation\n\nTo deselect the suggested list, use spacebar 26 70 5 StevenBlack StevenBlack's Unified Hosts List on
--separate-output --checklist Select Protocols (press space to toggle selection) 26 70 2 IPv4 Block ads over IPv4 on IPv6 Block ads over IPv6 on
  [i] IPv4 address: 
  [i] IPv6 address: 
  Error: Neither IPv4 or IPv6 selected
root@VTGUARDIAN:/home/humanuser/Bin/pihole_setup/Pi-hole/automated install# 

Is this the same issue that was done on GitHub with a /usr/local/bin/whiptail binary that was in the path and was basically echo in disguise?

https://github.com/pi-hole/pi-hole/issues/4128

1 Like

Yes, that's the exact same issue. I wish I had posted here sooner, your post Installation fails ~Neither IPv4 or IPv6 selected ยท Issue #4128 ยท pi-hole/pi-hole ยท GitHub resolved the issue with whiptail immediately. I executed rm /usr/local/bin/whiptail and then hash -d whiptail with no other commands, and it resolved my issue. This was with a fresh debian installation using the debian-10.9.0-i386-netinst.iso from their site, downloaded on April 13th 2021.

Thank you so much, Dan!

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