Ubuntu: Removed resolvconf can't install anymore


As stated in the title, I removed resolvconf (with reinstalling in mind because name resolution was acting up) but now I'm unable to install this package.
I tried two things:
apt-get install --reinstall resolvconf
resulting in the following error:

Package resolvconf is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'resolvconf' has no installation candidate

Using apt-get install resolvconf I get the same error.


Test this:

Open a terminal,

Press Ctrl+Alt+T

Run it:

sudo -i  wget http://fr.archive.ubuntu.com/ubuntu/pool/main/r/resolvconf/resolvconf_1.69ubuntu1_all.deb  dpkg -i resolvconf_1.69ubuntu1_all.deb  


Grab the download URL domain:

$ sudo apt install resolvconf  ...  E: Impossible de récupérer http://fr.archive.ubuntu.com/ubuntu/pool/main/r/resolvconf/resolvconf_1.78ubuntu2_all.deb  

Resolve it manually using OpenDNS server (provided you have nslookup, otherwise use some online DNS resolver):

$ nslookup fr.archive.ubuntu.com  ...  Non-authoritative answer:  Address:  

Edit your hosts file:

$ gksudo gedit /etc/hosts &>/dev/null &  

Add: fr.archive.ubuntu.com  

Retry to reinstall resolvconf:

$ sudo apt install resolvconf  

Disconnect / reconnect your network from network-manager.


Remove the now useless entry from your hosts file.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »