4

在我的 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

有什么建议么?谢谢。

4

2 回答 2

4

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

本期报告了同样的问题。

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

于 2012-11-18T15:19:21.160 回答
0

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

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

资源

于 2015-11-02T17:21:30.470 回答