Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


installing_pi_hole_linux_ubuntu_version_24_04

This is an old revision of the document!


installing Pi-Hole on Linux Ubuntu version 24.04

First run update packages and upgrade Ubuntu Server

sudo apt update && sudo apt upgrade -y

To check if curl is installed and functioning on Ubuntu Server 24.04, run the command

curl --version

If curl is not installed, run this command to install it:

sudo apt install curl -y

Next, Disable the default systemd-resolved DNS stub listener to free up Port 53 for Pi-hole. Then, restart systemd-resolved with the following commands:

sudo sed -i 's/#DNSStubListener=yes/DNSStubListener=no/' /etc/systemd/resolved.conf

sudo systemctl restart systemd-resolved

Next intall Pi-Hole for standard bare metal server environments (not containerized) using the Official Automated Script – Run the official network installer command:

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

OPTION: When installing on Ubuntu version 26.04, you will instead need to disable the Operating System version check when running the official network installer of Pi-Hole:

curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true bash
installing_pi_hole_linux_ubuntu_version_24_04.1786993183.txt.gz · Last modified: 2026/08/17 18:59 by wikiadmin