Can't set hostname - Ubuntu
They're complaining that the hostname is invalid. I checked all the settings & whatnot. It's all fine. But the hostname is stuck as "(none)" - Nothing I can do to set the hostname works. Naturally I double checked the docs and whatnot. I've been a sysadmin for a long time so I should be able to manage this.
But nothing works! Anyone have any ideas?
Here's the prompt and result from the hostname command:
[email protected](none):/var/log# hostname
You can see the hostname in the prompt… But the hostname (redacted) command gives the right name.
> But nothing works! Anyone have any ideas?
You say nothing works, but we don't know what you tried to do.
What did you actually try?
Did you get errors when tried it?
Helps sometimes when you don't redact the info to see exactly what is being output.
I used a manual fix to get me through & forgot that was the one that needed to be updated, which it was. So with the fix in place it was acting up.
Thanks for making me run through the info again! Everything's great.