sh:39:来源:找不到安装oh-my-zsh时

时间:2012-11-09 17:35:00

标签: zsh ubuntu-12.04

在我的Ubuntu 12.04 LTS上,我试图通过在github oh-my-zsh项目页面上找到的命令来安装oh-my-zsh。

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

但我收到以下错误。 尝试用sudo,结果相同。

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

有什么建议吗? 感谢。

2 个答案:

答案 0 :(得分:4)

错误sh: 39: source: not found只是问题的一部分。您发布的输出还表示与更改默认shell相关的问题:Password: chsh: PAM authentication failed

报告了同样的问题in this issue

您应该按照oh-my-zsh github page(或here)提供的手动安装步骤进行操作。

答案 1 :(得分:0)

通过手动运行ohmyz.sh脚本来解决问题:

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

source