ubuntu sudo : anable to resolve host

/etc/hostsの中身がmy-laptopなのに
/etc/hostnameの中身がmy-laptop.ubuntuだったので
.ubuntuを消して保存。(delete ".ubuntu")
sudoしたらパスワードを求められるようになってちゃんと動いた。