Unable to install Pihole on Ubuntu 18.04

Hi All,

New to this forum, please forgive me for any mistakes. I was trying to install pihole, but no luck. It keeps failing on this step:

curl -sSL --fail https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-linux-x86_64 -o pihole-FTL-linux-x86_64

I updated all the packages beforehand as well.

I updated the nameserver, resolved.conf, pointed it to a public DNS, no luck.

Any help would be great. Thank you!

This will temporarily reset the nameserver on the Pi to bypass Pi-Hole DNS.

sudo nano /etc/resolv.conf

edit nameserver 127.0.0.1 to nameserver 9.9.9.9 or your preferred third party DNS service, save and exit

Then we will run the verbose version of the installer. Please post the output of the following, if Pi-hole fails to install.

Edited command:

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

I've tried this before too, with no luck, but here it is again:

In the resolv.conf, the only thing that I've noticed is the options:

nameserver 127.0.0.53
options edns0


Updated the nameserver to 1.1.1.1 and ran the verbose version and it always fails here: [i] Downloading and Installing FTL...

It just haults and stops working at the step above.

Full info:

[i] Installer Dependency checks...
[✓] Checking for apt-utils
[i] Checking for dialog (will be installed)
[✓] Checking for debconf
[i] Checking for dhcpcd5 (will be installed)
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail
[i] Using Google (ECS)
[i] Your static IPv4 address: 192.168.4.4/24
[i] Your static IPv4 gateway: 192.168.4.1
[✓] Set IP address to 192.168.4.4
You may need to restart after the install is complete
[i] Unable to find IPv6 ULA/GUA address, IPv6 adblocking will not be enabled
[i] IPv4 address: 192.168.4.4/24
[i] IPv6 address:
[i] Web Interface On
[i] Web Server On
[i] Logging On.
[✗] Check for existing repository in /etc/.pihole
[✓] Clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole

[✗] Check for existing repository in /var/www/html/admin
[✓] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin

[i] Main Dependency checks...
[✓] Checking for cron
[✓] Checking for curl
[✓] Checking for dnsutils
[✓] Checking for iputils-ping
[✓] Checking for lsof
[i] Checking for netcat (will be installed)
[✓] Checking for psmisc
[✓] Checking for sudo
[i] Checking for unzip (will be installed)
[✓] Checking for wget
[i] Checking for idn2 (will be installed)
[i] Checking for sqlite3 (will be installed)
[✓] Checking for libcap2-bin
[✓] Checking for dns-root-data
[i] Checking for resolvconf (will be installed)
[✓] Checking for libcap2
[i] Checking for lighttpd (will be installed)
[i] Checking for php-common (will be installed)
[i] Checking for php-cgi (will be installed)
[i] Checking for php-sqlite3 (will be installed)
[✓] Enabling lighttpd service to start on reboot...
[✓] Creating user 'pihole'

[i] FTL Checks...

[✓] Detected x86_64 architecture
[i] Checking for existing FTL binary...
[i] Downloading and Installing FTL...

That appears to be the output of the installer without the verbose option.

This is the output it's giving me with the -x as well, not sure why it's doing that.

Pardon me, that was my error. I omitted the required sudo. Run this instead:

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

My fault, I knew I missed something, thanks!

My DNS can also resolve to github and I can download the file directly too, odd...

Try download that file to your home folder ~ for diagnosing and post output here:

cd ~

curl -sSL --fail https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-linux-x86_64 -o pihole-FTL-linux-x86_64

EDIT: Disk full maybe ?

df -h

No issues with disk, more than enough:
image

When I ran that command, it halted the system.

Let's check a few things with your /tmp folder, to see if there are any restrictions:

mount | grep "/tmp"

grep tmp /etc/fstab

Also, post the output of this command:

curl -sSL --fail https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-linux-x86_64

I ran the above commands and it accepted it and there was no output for the other command, so this time it didn't halt the system.

I spoke too soon, I did a restore prior to the pihole failed install and tried the commands and then the "cur -sSL..." and it halted the system when I ran the command.

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