Could not resolve 'us-east-1.ec2.archive.ubuntu.com'

Hi - I’m working on a problem getting m.i.a.b working on a minty fresh and updated ubuntu server on AWS EC2

when the setup script attempts to apt-get ldnsutils libldns1 nsd

i get the error below. other apt-get installs work fine, i did a --fix-missing. I reproduced it twice on new server spinups over a week (seeing if the repo was down or something)

I’ll post the solution if i find it.

Reading state information... Done
The following NEW packages will be installed:
  ldnsutils libldns1 nsd
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 925 kB of archives.
After this operation, 2,242 kB of additional disk space will be used.
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/universe nsd amd64 4.0.1-1ubuntu0.1
  Could not resolve 'us-east-1.ec2.archive.ubuntu.com'
 

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

i think this fixes it - replaces the us-east-1 entry in sources.list

sudo sed -i ‘s/us-east-1.ec2.//g’ /etc/apt/sources.list

Seems to be more a work around than a fix, can you resolve the hostname “us-east-1.ec2.archive.ubuntu.com” from your computer? (ping us-east-1.ec2.archive.ubuntu.com) <- should see an IP address after this, if not then the error is with DNS on their end, not yours. but if you see an IP address after pinging, configure your AWS EC3 VM with google’s or OpenDNS’s DNS servers.

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