Sh: 39: source: not found When installing oh-my-zsh

On my Ubuntu 12.04 LTS, I tried to install oh-my-zsh following the command found on the github oh-my-zsh project page.

wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

But I get the following error. Tried with sudo, same result.

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! Password: chsh: PAM authentication failed __ __
__ / /_ _ __ __ __ __ _ / /_
/ __ / __ \ / __ `__ / / / / /_ / / / _ \ / // / / / / / / / / / / // / / /( ) / / / _ // // // // //_, / / / // //
/_
/

.... is now installed. sh: 39: source: not found

Any suggestions? Thanks.

+4
source share
2 answers

The sh: 39: source: not found error is only part of the problem. The output also indicates problems with changing the default shell: Password: chsh: PAM authentication failed .

The same issue is reported in this release .

You must follow the installation instructions on the oh-my-zsh github page (or here ).

+4
source

The problem is resolved by running the ohmyz.sh script manually:

 rm -rf ~/.oh-my-zsh/ curl -L http://install.ohmyz.sh > install.sh sh install.sh 

a source

0
source

Source: https://habr.com/ru/post/1445111/


All Articles