Bind9, resolvconf install failing

Hello,

I’m getting an error for the installation of bind9 and resolvconf. This is a cut of the log:

installing bind9 resolvconf ...

FAILED: apt-get -y install bind9 resolvconf
-----------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  bind9utils
Suggested packages:
  dnsutils bind9-doc
The following NEW packages will be installed:
  bind9 bind9utils resolvconf
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 486 kB of archives.
After this operation, 1,883 kB of additional disk space will be used.
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main resolvconf all 1.69ubuntu1.1
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ trusty/main bind9utils amd64 1:9.9.5.dfsg-3
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ trusty/main bind9 amd64 1:9.9.5.dfsg-3
  Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/r/resolvconf/resolvconf_1.69ubuntu1.1_all.deb  Temporary failure resolving 'archive.ubuntu.com'

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/bind9/bind9utils_9.9.5.dfsg-3_amd64.deb  Temporary failure resolving 'archive.ubuntu.com'

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/bind9/bind9_9.9.5.dfsg-3_amd64.deb  Temporary failure resolving 'archive.ubuntu.com'

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
-----------------------------------------
Traceback (most recent call last):
  File "tools/editconf.py", line 61, in <module>
    input_lines = list(open(filename))
FileNotFoundError: [Errno 2] No such file or directory: '/etc/default/bind9'
grep: /etc/bind/named.conf.options: No such file or directory
sed: can't read /etc/bind/named.conf.options: No such file or directory

FAILED: service resolvconf restart
-----------------------------------------
resolvconf: unrecognized service
-----------------------------------------

It is possible, though, to install other packages. Anyone knows why this is happening?

By the way, the nameservers are set to 8.8.8.8 and 8.8.4.4 and the VPS type is OpenVZ

I found that there was an issue installing UFW, loaded some kernel modules and hoping that it’ll work now.

Ahh great that you were able to figure it out.