View previous topic :: View next topic |
Author |
Message |
IceSunrise n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Mar 2008 Posts: 24 Location: Russia, Saint-Petersburg
|
Posted: Thu Sep 29, 2016 8:55 am Post subject: RESOLVED: hostname: line 24: hostname: command not found |
|
|
Hi there,
Absolutely unexpectedly my gentoo can not set the hostname on my machine anymore.
The error I get is this one:
Code: | /etc/init.d/hostname: line 24: hostname: command not found |
The line 24 in /etc/init.d/hostname is this one:
Code: | hostname "$hostname" |
Apparently I'm missing the hostname binary and indeed I can not find it on my system.
Could someone help me by pointing to the package hostname binary is part of and maybe explain where did it go to from my system?
Last edited by IceSunrise on Thu Sep 29, 2016 9:32 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31483 Location: here
|
Posted: Thu Sep 29, 2016 9:12 am Post subject: |
|
|
Code: | # equery b /bin/hostname
* Searching for /bin/hostname ...
sys-apps/net-tools-1.60_p20160215155418 (/bin/hostname) |
But I have not idea because is not installed in your system _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IceSunrise n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Mar 2008 Posts: 24 Location: Russia, Saint-Petersburg
|
Posted: Thu Sep 29, 2016 9:30 am Post subject: |
|
|
Haha, many thanks fedeliallalinea!
I've just reinstalled sys-apps/net-tools package with USE="hostname" flag and got back /bin/hostname binary.
Have no idea what happened here that I got this problem, maybe there was no that flag before and the binary was compiled by default, very strange...
Anyway, thanks for the help again! ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
klz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Jun 2011 Posts: 42
|
Posted: Tue Oct 11, 2016 8:01 pm Post subject: |
|
|
I had the same problem. Seems that the net-tools package got extra use-flags recently. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|