LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 758|回复: 2

/etc/init.d/hostname starts failed

[复制链接]
发表于 2006-3-15 20:26:44 | 显示全部楼层 |阅读模式
I recently updated my portage to the latest one, glibc to version 2.4 and my compiler from 3.3.6 to 3.4.5, then I did the following

emerge --update system
emerge --update world

But after finishing everything, An error occurs:

Set to the hostname of this machine

HOSTNAME="Gary"
hostname: name too long
Failed to set the hostname
Failed to start /etc/init.d/hostname

Then the system asked for root password for maintenance.....

What happen to my linux box ??

I did anything wrong????
发表于 2006-3-15 21:50:49 | 显示全部楼层
emerge world 后etc-update过了吗??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-15 22:07:49 | 显示全部楼层
fix it ! I copy another /etc/init.d/hostname script from another machine to my machine, everything goes well now....

to Iamthetop: I did etc-update
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表