Eu tento instalar Oh meu zsh. Após instalar o zsh ( sudo apt-get update && sudo apt-get install -y zsh
)
Então eu instalo
sudo apt-get install -y curl
então instale o git.
o problema ocorre quando tento este comando.
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
este é o log
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
Existe alguma ideia?
Note que eu tentei
sudo vim /etc/pam.d/chsh
então, a autenticação de comentário é necessária pam_shells.so. No entanto, o erro ainda ocorre.
fonte
curl
imprime o arquivo em stdout em vez de gravá-lo comowget
; você precisa de umcurl -L ... > install.sh
redirecionamento no final do comando.