我尝试安装我的zsh。安装zsh(sudo apt-get update && sudo apt-get install -y zsh
)之后
然后我安装
sudo apt-get install -y curl
然后安装git。
当我尝试此命令时会出现问题。
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
这是日志
sudo curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 146 100 146 0 0 91 0 0:00:01 0:00:01 --:--:-- 91
100 1779 100 1779 0 0 525 0 0:00:03 0:00:03 --:--:-- 1416
\033[0;34mCloning Oh My Zsh...\033[0m
Cloning into '/home/icom3/.oh-my-zsh'...
remote: Reusing existing pack: 10101, done.
remote: Total 10101 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (10101/10101), 1.92 MiB | 172.00 KiB/s, done.
Resolving deltas: 100% (5337/5337), done.
Checking connectivity... done.
\033[0;34mLooking for an existing zsh config...\033[0m
\033[0;33mFound ~/.zshrc.\033[0m \033[0;32mBacking up to ~/.zshrc.pre-oh-my-zsh\033[0m
\033[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc\033[0m
\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m
\033[0;34mTime to change your default shell to zsh!\033[0m
Password: chsh: PAM: Authentication failure
有什么主意吗
请注意,我已经尝试过
sudo vim /etc/pam.d/chsh
然后注释auth required pam_shells.so。但是,该错误仍然会发生。
curl
将文件打印到stdout,而不是像wget
; 那样写文件;您需要curl -L ... > install.sh
在命令末尾进行重定向。