View previous topic :: View next topic |
Author |
Message |
DevOne Guru

Joined: 13 Jul 2005 Posts: 419
|
Posted: Sun Jan 15, 2017 3:30 pm Post subject: [SOLVED] Installing gentoo fails on chroot!!! |
|
|
Hello there,
I am a bit surprise since I always have installed gentoo without problem for more than 15 years!
Now, when I start a usb stick (with gentoo 64bit minimal or live), when I hit the chroot step, I got this error:
Code: |
chroot /mnt/gentoo /bin/bash
bash: eval: line 24: syntax error near unexpected token `newline`
bash: eval: line 24: `Usage: lesspipe <file>`
|
Reading around I have seen that this error coould be caused by a wrong image (not in my case) or
the problem are the < and >
But I really I don't know how to figure it out!
Someone knows this problem?
Thanks _________________ Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Last edited by DevOne on Mon Jan 23, 2017 7:43 am; edited 2 times in total |
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Jan 15, 2017 5:20 pm Post subject: Re: Installing gentoo fails on chroot!!! |
|
|
[quote="DevOne"] Code: | bash: eval: line 24: syntax error near unexpected token `newline`
bash: eva;: line 24: `Usage: lesspipe <file>` |
DevOne ... that looks to me like a typo in the bashrc, bash_completion, or env, 'eva;' rather than 'eval'.
best ... khay |
|
Back to top |
|
 |
DevOne Guru

Joined: 13 Jul 2005 Posts: 419
|
Posted: Sun Jan 15, 2017 5:24 pm Post subject: Re: Installing gentoo fails on chroot!!! |
|
|
[quote="khayyam"] DevOne wrote: | Code: | bash: eval: line 24: syntax error near unexpected token `newline`
bash: eva;: line 24: `Usage: lesspipe <file>` |
DevOne ... that looks to me like a typo in the bashrc, bash_completion, or env, 'eva;' rather than 'eval'.
best ... khay |
I made a type copying the message! Now it is fine in the thread _________________ Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/ |
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Jan 15, 2017 5:38 pm Post subject: Re: Installing gentoo fails on chroot!!! |
|
|
[quote="DevOne"] khayyam wrote: | DevOne wrote: | Code: | bash: eval: line 24: syntax error near unexpected token `newline`
bash: eva;: line 24: `Usage: lesspipe <file>` |
DevOne ... that looks to me like a typo in the bashrc, bash_completion, or env, 'eva;' rather than 'eval'. |
I made a type copying the message! Now it is fine in the thread |
DevOne ... I see. Ok, well try the following:
Code: | # env -i chroot /mnt/gentoo /bin/bash -l |
... that would at least rule out something in the env of the bootdisk causing it. You could also pass '--noprofile' to bash (which would cause it to not process startup files), but that will cause the shell to have little in the way of an env (but would provide a clue as to the cause).
best ... khay |
|
Back to top |
|
 |
DevOne Guru

Joined: 13 Jul 2005 Posts: 419
|
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Jan 16, 2017 8:52 pm Post subject: |
|
|
DevOne wrote: | Same behaviour. ... |
DevOne ... well, those were suggested simply to try and get a handle on the problem. I'm surprised '--noprofile' provided the same behaviour as that would suggest its not the bashrc. Anyhow, you should probably skip trying to solve the problem and use sysresccd.
best ... khay |
|
Back to top |
|
 |
DevOne Guru

Joined: 13 Jul 2005 Posts: 419
|
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Jan 21, 2017 5:28 pm Post subject: |
|
|
DevOne wrote: | Ok I will try using sysrescue...but is this a strange behaviour, isn't it? |
DevOne ... yeah, not something I've seen myself (though its been a long time since I used the minimal CD), I haven't seen another report of someone with similar issues either.
best ... khay |
|
Back to top |
|
 |
DevOne Guru

Joined: 13 Jul 2005 Posts: 419
|
|
Back to top |
|
 |
|