3 ms·
Question for those who have an install of 16.04 - if you type `hostname -f`, do you get the "command not found" error? I didn't have time to dig into it, but th
by falcolas 11y ago
Question for those who have an install of 16.04 - if you type `hostname -f`, do you get the "command not found" error? I didn't have time to dig into it, but the man pages indicated that `-f` was still a valid option, but it appears that `hostname` was shifted to quasi-function.
I came upon this while trying to bring up my vagrant development box against 16.04, part of which was to set the hostname via `server.vm.hostname`.
- mclemme 11y agoYou mean in a console? Works fine here.
- falcolas 11y ago$ vu development-16 Bringing machine 'development-16' up with 'virtualbox' provider... ==> development-16: Importing base box 'ubuntu/xenial64'... ==> development-16: Matching MAC address for NAT networking... ==> development-16: Checking if box 'ubuntu/xenial64' is up to date... ==> development-16: Setting the name of the VM: ubuntu-xenial-16.04-cloudimg [...] ==> development-16: Machine booted and ready! ==> development-16: Checking for guest additions in VM... ==> development-16: Setting hostname... The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! 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 $ vssh development-16 Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-22-generic x86_64) * Documentation: https://help.ubuntu.com/ Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 0 packages can be updated. 0 updates are security updates. ubuntu@ubuntu-xenial:~$ hostname ubuntu-xenial ubuntu@ubuntu-xenial:~$ hostname -f hostname: Name or service not known ubuntu@ubuntu-xenial:~$ which hostname /bin/hostname ubuntu@ubuntu-xenial:~$ \hostname -f hostname: Name or service not known ubuntu@ubuntu-xenial:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS" Fun times.
- mclemme 11y agoSeems very odd, here it works clemme@ubuntu:~ $ hostname -f ubuntu clemme@ubuntu:~ $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
- falcolas 11y agoYeah, does seem odd. Looks like I'll need to ping Vagrant, since `ubuntu/xenial64` is their managed box.