---
title: "/usr/sbin/dpkg-reconfigure: resolvconf is broken or not fully installed"
date: 2024-09-03T20:13:08.000Z
author: Z.SHINCHVEN
tags: [Linux, Ubuntu, resolvconf, dpkg-reconfigure]
canonical: https://atlassc.net/2024/09/04/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:

```bash
/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:

```bash
sudo apt-get purge resolvconf
sudo apt-get install resolvconf
```
