Installing Pi-hole On Debian / Ubuntu Servers
This tutorial details the steps necessary (and a few optional ones) for installing Pi-hole to your device or virtual machine running either Debian or Ubuntu – these instructions should work fine with either option. At the time this tutorial was last edited, the current version of Debian is 11 and the current version of Ubuntu Server LTS is 22.04, however, at this time, Ubuntu 22.04 is not supported by Pi-hole. If you’d like to use Ubuntu, make sure you use version 20.04 instead. If Ubuntu 22.04 becomes supported this document will be updated, if needed, to reflect necessary changes.