Linux 环境,我的电脑叫枝桠(机器的hostname), 每次执行sudo 就出现这个警告讯息:

sudo: unable to resolve host 枝桠

 

直接修改 /etc/hosts 的内容,在 127.0.0.1 localhost 后面加上自己机器的hostname,我的是枝桠,加上后就是 127.0.0.1 localhost 枝桠 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-09-19
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2022-02-20
  • 2021-05-20
相关资源
相似解决方案