Install script doesn't work on Ubuntu 12.04 #1081

semirenko opened this Issue Apr 19, 2012 · 23 comments


None yet

This is what I got running the install script:

Looking for an existing zsh config...
Found ~/.zshrc. �[0;32]Backing up to ~/.zshrc.pre-oh-my-zsh
Using the Oh My Zsh template file and adding it to ~/.zshrc
Copying your current PATH and adding it to the end of ~/.zshrc for you.
Time to change your default shell to zsh!
chsh: option requires an argument -- 's'
Usage: chsh [options] [LOGIN]

-h, --help display this help message and exit
-s, --shell SHELL new login shell for the user account now installed.
/usr/bin/env: zsh: No such file or directory
sh: 36: source: not found

Just can't start zsh to work.
Log out didn't help.

Tried to change shell to zsh with chsh -s /bin/zsh
chsh: /bin/zsh is an invalid shell


gwjo commented Apr 20, 2012

So is ZSH installed on your Ubuntu box?

same issue

semirenko closed this Apr 21, 2012

yes, all I needed to do, is to install ZSH first :)

d'oh, same issue, thanks.

Installed zsh first now I only receive

sh: 36: source: not found

Still oh my zsh is not my default bash. Any ideas?

selaux commented May 17, 2012

Same issue for me as for stelios.

36: source: not found

dzoba commented May 27, 2012

I am also getting "sh: 36: source: not found" on Ubuntu 12.04 64 bit

Actually.... Just had to do a "apt-get install git" and restart the terminal. Works now.

Same for me.
36: source: not found

pjar commented Jun 11, 2012

Same for me with git installed.
36: source: not found

Saidbek commented Jul 6, 2012

same issue, under the Ubuntu 10.10

LeoShi commented Jul 13, 2012

same issue, with git installed. under Ubuntu 12.04


stereodenis commented Aug 10, 2012

same issue with Ubuntu 12.04

i had the same issue.
The problem is that chsh only accepts shells which are in /etc/shells.
To fix it type the following and try again.
echo '/bin/zsh' | sudo tee -a /etc/shells
on my system zshell is installed in /usr/local/bin/zshell, so check where zshell is installed and change the path if necessary

try changing the default shell your terminal profile sets. This usually clears up this error for me.

buley commented Jan 11, 2013

I ran into this issue today. Try not using the curl/wget install and using apt instead: sudo apt-get install zsh

God.. How to make it work on Debian?

GuGuss commented Jul 18, 2013

Thanks editor ! "sudo apt-get install zsh" did the trick for me...

l am in centos
yum install zsh

bugkiwi commented Oct 9, 2014

Thanks @buley ! sudo apt-get install zsh work fine :)

Fedora 22: sudo dnf install zsh

I got the same error. How to fix? Some one help me

chsh -s $which zsh
chsh: zsh is an invalid shell

# Base system Debian GNU/Linux 8(jessie)64-bit
$ uname -a
Linux debian-xxx 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 

mcornella commented Aug 11, 2016

@tanchao90 first install zsh: sudo apt install zsh; then run chsh -s $(which zsh).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment