vanarie's picture

Recently APT-GET started having problems resolving archive.ubuntu.com to install packages.

The fix is easy:

1) Add this to the end of file /etc/hosts

91.189.88.46    archive.ubuntu.com
91.189.88.46    security.ubuntu.com

2) Restart network from the command line: 

#/etc/init.d/networking restart
Forum: 
Liraz Siri's picture

If Ubuntu ever move the server to another address those IP addresses will be broken so its best to solve this problem by using a reliable DNS server, like Google's:
nameserver 8.8.8.8
nameserver 8.8.4.4
You can configure the nameserver in the configuration console if you configure your address with a static IP. You can also add it to /etc/resolv.conf but if you later use the configuration console those changes might get overwritten.
Jeremy Davis's picture

Do you mean one of the Ubuntu based Turnkey Linux appliances? If not you're not in the right place... I suggest that you try the Ubuntu forums (or at least start a new forum thread in the 'general' section because it doesn't apply to this thread). TKL appliances don't have a desktop (they are server appliances).

If you do mean TKL then you need to supply a bit more info. perhaps post some screenshots of something.

Jeremy Davis's picture

Better to fix the actual problem (which is likely DNS resolution). As Liraz writes (2nd post in this thread) if you use a reliable DNS server, you shouldn't have these sort of issues anyway...

Jeremy Davis's picture

This is really old thread (back when TurnKey Linux was based on Ubuntu). We've since moved to a Debian base (~7 years ago) as IMO it has better security and stability.

Regardless, it sounds like you are having network issues of some sort. I'd recommend checking the network setup you are using for your VM and/or VirtualBox in general, plus the networking configuration of your host. Beyond that, your best bet would probably be to post somewhere where there are Ubuntu experts. E.g.:

  • https://ubuntuforums.org/
  • https://askubuntu.com/
  • https://www.reddit.com/r/Ubuntu/
  • Good luck.

    Add new comment