package manager broken
Tom H
tomh0665 at gmail.com
Fri May 31 01:20:50 UTC 2013
On Thu, May 30, 2013 at 2:54 PM, Ric Moore <wayward4now at gmail.com> wrote:
> On 05/30/2013 02:35 PM, Tom H wrote:
>> On Thu, May 30, 2013 at 1:59 PM, Paul Tremblay <ptrembl at amazon.com> wrote:
>>>
>>> If this helps, my /etc/hosts file looks like this:
>>>
>>> 127.0.0.1 ptrembl-dev.ant.amazon.com ptrembl-dev localhost
>>> ...
>>
>> I don't think that "/etc/hosts" has a bearing on this problem but it's
>> best not to have it set u this way.
>>
>> The Ubuntu default is
>>
>> For DHCP
>> 127.0.0.1 localhost
>> 127.0.1.1 ptrembl-dev.ant.amazon.com ptrembl-dev
>>
>> For static
>> 127.0.0.1 localhost
>> a.b.c.d ptrembl-dev.ant.amazon.com ptrembl-dev
>>
>> because there are supposed to be problems with certain
>> applications/situations when localhost is an alias of the hostname or
>> the hostname is an alias of localhost.
>
> then wouldn't the localhost name be appended with the hostname?
> 127.0.0.1 localhost ptrembl-dev
That's the case where the hostname is an alias of localhost.
If you install "libnss-myhostname", you can simply have "127.0.0.1
localhost" in "/etc/hosts" (as well as the loopback ipv6 stuff) and
not have to worry about that file on any box that you manage. IIRC, if
you're using dhcp, it maps the hostname to 127.0.0.2 (which is the old
Debian/Ubuntu hostname ip address).
More information about the ubuntu-users
mailing list