Fixing a Pi-Hole installation problem: stuck configuring resolvconf

Quick entry to explain a problem I had installing Pi-Hole, the issue was caused because some days ago I was playing with my DNS server configuration and back then I created these to files: /etc/resolvconf/resolv.conf.d/head and /etc/resolvconf/resolv.conf.d/base

Some weeks later I decided to install Pi-Hole in my Raspberry Pi 3 and the installation process launched with the default command:

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

But the process was stuck configuring resolvconf package, so I stop the installation process and then I launched a command to install manually resolvconf package and the command showed me this:

# apt install resolvconf
...
Setting up resolvconf (1.79) ...

Configuration file '/etc/resolvconf/resolv.conf.d/base'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** base (Y/I/N/O/D/Z) [default=N] ? Y
Configuration file '/etc/resolvconf/resolv.conf.d/head'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** head (Y/I/N/O/D/Z) [default=N] ? Y

Setting up resolvconf package script detected that base and head files were created beforehand so the installation process was stuck in this question but the installation interface wasn’t shown this information so all the process was stuck, installing the package manually made the trick and then I launched again the same command to install Pi-Hole and everything works as expected.

I investigated this issue a bit more and I found that the same issue with a different package was reported long time ago you can check the following link: https://github.com/pi-hole/pi-hole/issues/2178

Enjoy Pi-Hole!


If opportunity doesn’t knock, build a door.
— Milton Berle

One thought on “Fixing a Pi-Hole installation problem: stuck configuring resolvconf

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s