-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
login loop in Ubuntu #334
Comments
It looks like |
yeah, the issue indeed is with |
What's lightdm-session? Can you try your OS without using that, and see if the problem still occurs? |
@bevacqua you can comment nvm call in ~/.profile and ~/.bash_profile instead of remove all nvm. |
I'm well aware of lightdm and how it's the default dm for unity in ubuntu, but I'm not familiar with how people set zsh as their default user shell. What is involved in doing this? How would I go from a stock ubuntu install to reproducing this issue? |
See zsh.sh in my dotfiles. I just use chsh -s `which zsh` |
This line in ~/.profile is causing Login Loop for me: I comment this, and can login again... I found this here: |
@afucher what is the content of your .xsession-errors file? |
the same from the issue: |
@afucher try changing the shebang in .nvm/nvm.sh to |
Since |
In my system |
No. I don't have that symlink and I get the same syntax errors
|
I'm getting the same error as well. Here's what I've in my .xsession-errors file. .nvm/nvm.sh: 24: .nvm/nvm.sh: Bad substitution As soon as I enter my password on the login screen in Ubuntu, the screen goes black for a second and then it brings the login screen back. Tried this with the newest version of NVM on GitHub. Had this in my .profile: [ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh Removing that line immediately made Unity work. |
My workaround is move this line |
@gwokae Did it stop the login loop? |
I think the problem is that sh cannot make dynamic substitution... If nvm force to put this in |
@abhishekbhardwaj : gwokae solution solves the loop (at least on my system) @gwokae Thanks for this, saved my day! |
@abhishekbhardwaj Yes, it works for me. |
I'm new in Ubuntu (Linux)..so what is the difference between @gwokae solution, or put |
@afucher These two files are just start scripts when user login. |
@gwokae Thank you very much. It works on my system too! 👍 |
For Mac OSX use |
~/.profile isn't a thing on Mac OS X that I'm aware of. |
I'm using BASH and getting the same exact error in my .xsession-errors. Once I stopped loading nvm it worked. |
@ljharb ~/.profile doesn't exist on Mac OS X by default. You need to create it in your home directory. |
nvm
is causing me a login loop in Ubuntu. I'm using azsh
shell.If I
rm -rf ~/.nvm
the problem goes away, but when I installnvm
again, the problem comes back.The text was updated successfully, but these errors were encountered: