Ubuntu系統(tǒng),系統(tǒng)提示“無法解析主機”,只需修改/etc/hosts文件,修改完之后要重啟網(wǎng)絡(luò)。具體過程如下:1、修改hostssudo gedit /etc/hosts2、添加解析記錄( . )127.0.0.1 localhost.localdomain localhost127.0.0.1 localhost3、保存后重啟網(wǎng)絡(luò)sudo /etc/init.d/networking restart