avatar

ShīnChvën ✨

Effective Accelerationism

Powered by Druid

/usr/sbin/dpkg-reconfigure: resolvconf is broken or not fully installed

I tried to upgrade my server from Ubuntu 22.04 to 24.04, the process was accidentally interrupted, and I was left with a broken resolvconf package. When I tried to reconfigure it with dpkg-reconfigure, I got the following error message:

/usr/sbin/dpkg-reconfigure: resolvconf is broken or not fully installed

I cannot access the internet, and my /etc/resolv.conf file is empty becuase of the interruption.

After querying ChatGPT, I found a solution.

Here's how I fixed it:

sudo apt-get purge resolvconf
sudo apt-get install resolvconf