Ubuntu: Why can't I use the same host name for two dual-boot OS on the same machine?


I run Win 10 (installed first) and Ubuntu 16.04 (installed second) on the same notebook.

During the Ubuntu installation, I was asked to enter a host name for the computer. I tried to enter the same host name I configured in Windows, but got an error message that this host name is already in use in the current network.

The above happened to me on my previous notebook as well.

Why does Ubuntu know what host name the dual-boot Windows installation uses, how can I avoid this error in the future and how can I give it the same host name anyway?


You can have the same host name in each OS in a multi-boot system. However, if you are connecting to the network, your DHCP server may still have an active lease for that name, and Ubuntu tries to obtain a DHCP lease using the name you enter. If an active lease already exists, you may see the error you are getting.

You can open your router or DHCP server's config and clear the lease table, and that should free up use of the name to install with it. Alternatively, you can install using a different name and change it after.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »