Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have troubles again after upgrading Linux to version 12.04 - When I try to update progams and files with "apt-get update" it says something like there is no address added to your computer name. So my hostname has name "Marco" and my hosts file has line " Marco" So where is problem? Where should I change my name to get it right for updates? Thank you. Before on version 11.10 it was working fine.

W: Failed Something bad happened in the translation " http" (-5 - The machine name is not assigned to any address)
share|improve this question

migrated from Jun 4 '12 at 8:26

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

So the problem is with the nameserver(s). After updating to 12.04 there is no resolv.conf file, these settings are being configured in /etc/network/interfaces

For instance if this was you resolv.conf nameserver nameserver

No you need to rewrite it like this in /etc/network/interfaces:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.