Install problem \ DNS errors \ installation stuck

Hello!
Before im install miab, and no have problems.

Today i buy vps in my country with clean 18.04.
I have many errors:

Installing nsd (DNS server)…

FAILED: apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew install nsd ldnsutils openssh-client
-----------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
openssh-client is already the newest version (1:7.6p1-4ubuntu0.3).
The following additional packages will be installed:
  libevent-2.1-6 libldns2
The following NEW packages will be installed:
  ldnsutils libevent-2.1-6 libldns2 nsd
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,144 kB of archives.
After this operation, 3,532 kB of additional disk space will be used.
Err:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libevent-2.1-6 amd64 2.1.8-stable-4build1
  Temporary failure resolving 'us.archive.ubuntu.com'
Err:2 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 nsd amd64 4.1.17-1build1
  Temporary failure resolving 'us.archive.ubuntu.com'
Err:3 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libldns2 amd64 1.7.0-3ubuntu4
  Temporary failure resolving 'us.archive.ubuntu.com'
Err:4 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 ldnsutils amd64 1.7.0-3ubuntu4
  Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libe/libevent/libevent-2.1-6_2.1.8-stable-4build1_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/n/nsd/nsd_4.1.17-1build1_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/ldns/libldns2_1.7.0-3ubuntu4_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/l/ldns/ldnsutils_1.7.0-3ubuntu4_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

After i watch in my resolv.conf i see 127.0.0.1.
Is it too early to change the dns server on the system?

p.s. After im change resolv to 8.8.8.8 and install need packages (ldnsutils libevent-2.1-6 libldns2 nsd), and restart mailinabox, installation stuck on

Mail-in-a-Box Version:  v0.44
Updating system packages...
Installing system packages...
Initializing system random number generator...
Firewall is active and enabled on system startup
Installing nsd (DNS server)...
Generating DNSSEC signing keys...
Installing Postfix (SMTP server)...

(more than 20 mins)
If i try run mailinabox again I get a certbot installation error since the dns is not working

p.p.s. Sorry for my pure english.

@icehard

Who is your VPS provider? I suspect that their Ubuntu image is perhaps not standard …

Just throwing an idea out there … destroy and reinstall the OS from scratch.

Before you begin installing MiaB check that their resolver is resolving:

nslookup us.archive.ubuntu.com

If it isn’t then contact your provider as you are having connectivity issues. It may be something simple, or it may not be - I am not a networking person.

Let me know what happens…

Yep, i think too. http://timeweb.com/

nslookup us.archive.ubuntu.com
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: us.archive.ubuntu.com
Address: 91.189.91.39
Name: us.archive.ubuntu.com
Address: 91.189.91.38
Name: us.archive.ubuntu.com
Address: 2001:67c:1562::18
Name: us.archive.ubuntu.com
Address: 2001:67c:1562::15

When I encounter the issue you had with DNS lookups on install, I generally add an entry to the /etc/hosts file for the repository.

If you did the nslookup after reinstall, it looks like things are better already. :slight_smile:

great idea, forgot about that!

p.s. I reinstall os, nslookup before install

1 Like

it seems i found a solution. Add forward ip in named.conf, and installation goes without errors

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.