What does it mean when my raspberry Pi model B+'s boot screen says: "[FAIL] startpar : service(s) returned failure : hostname.sh ... failed!
-
What is in your /etc/hostname file. If you can't start your pi normally to check try holding down the shift key while it boots to get into recovery mode. The error message in question usually means that their is something wrong with the file I mentioned above.– Steve RobillardCommented Oct 19, 2014 at 21:48
Add a comment
|
2 Answers
Remove any disallowed characters from the hostname file. Alphanumeric and hyphen only are allowed, and cannot start or end with hyphen.
$ sudo nano /etc/hostname
Then also edit the hosts file with the matching new hostname, typically after 127.0.1.1 unless changed
$ sudo nano /etc/hosts
I had the same problem, fixed it by replacing the _
with -
.
-
1