当我输入时sudo su
,出现以下错误消息:
pi@Mapi ~ $ sudo su
sudo: unable to resolve host Mapi
因此,在/etc/hosts/
和主机名中,/etc/hostname
Mapi 与 thame 完全相同(我还检查了其中没有空格)
pi@Mapi ~ $ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 Mapi
pi@Mapi ~ $ cat /etc/hostname
Mapi
没有空格: