ubuntu/xenial vagrant box has /etc/hosts misconfigured
Bug #1568447 reported by
Adam Chou
This bug report is a duplicate of:
Bug #1561250: Xenial vagrant image is missing its hostname in /etc/hosts.
Edit
Remove
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using the ubuntu/xenial-64 vagrant box from this location: https:/
Trying to start it up gives me this error:
hostname -f
Stdout from the command:
Stderr from the command:
sudo: unable to resolve host ubuntu-xenial
mesg: ttyname failed: Inappropriate ioctl for device
hostname: Name or service not known
Logging into the box and running hostname -f also returns the same error.
cat /etc/hostname shows ubunu-xenial
ubuntu-xenial should also be set in /etc/hosts, but is not.
Adding ubuntu-xenial to 127.0.0.1 will allow the hostname -f command to execute correctly.
To post a comment you must log in.
I think this bug is critical.
Can't use Ubuntu 16.04 in vagrant.