本节介绍登录问题。
您在登录到 Java 桌面系统会话时可能看到如下错误消息:
Could not look up internet address for hostname. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding hostname to the file /etc/hosts |
解决方法: 确保在 /etc/hosts 文件中正确设置了主机名。请执行以下步骤:
按如下形式在 /etc/hosts 文件中设置主机名:
127.0.0.1 localhost loghost hostname localhost.localdomain |
hostname 是系统的名称。
确保主机名在 /etc/nodename 文件中列出。此文件还必须包含下面的行:
127.0.0.1 localhost loghost hostname localhost.localdomain |