Two things to check (assuming your machine is called my-machine, you can change this as appropriate):

  1. That the /etc/hostname file contains just the name of the machine.
  2. That /etc/hosts has an entry for localhost. It should have something like: localhost.localdomain localhost my-machine

If either of these files aren’t correct (since you can’t sudo), you may have to reboot the machine into recovery mode and make the modifications, then reboot to your usual environment.


分类: Ubuntu

0 条评论


Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注