ohmyzsh: Zsh is not installed! Please install zsh first!

hello robbyrusell !

after install like your description on debian 9.4 i got this error:

Zsh is not installed! Please install zsh first!

zsh is install

# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/bin/zsh
/usr/bin/zsh

two hours ago i install it on a another debian 9.4 computer and it works and i see you make changes one hour ago

please fix

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 40
  • Comments: 46 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Well, zsh is not there so it must not be installed. sudo apt install zsh will do.

Solved that problem running these first:

sudo apt update
sudo apt install git zsh -y

Then the curl:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Solved that problem running these first:

sudo apt update
sudo apt install git zsh -y

Then the curl:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

If you’re feeling adventurous/impatient, you can work around this by installing from https://raw.githubusercontent.com/mriedmann/oh-my-zsh/master/tools/install.sh until the fix gets merged to master.

I’m a fucking moron. Fixed on master

I solve it just downloading manually the install.sh file and commented out the lines 27 to 30, where the validation exists. Before

  if command -v zsh >/dev/null 2>&1; then
    printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
    exit
  fi

After

#  if command -v zsh >/dev/null 2>&1; then
#   printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
#    exit
#  fi

then execute de file sh install.sh

Cheers.

Ubuntu 16.04 same problem

Well, zsh is not there so it must not be installed. sudo apt install zsh will do.

It worked!

that was exactly an error that I got when I tried to install ZSH on VPS, OS Ubuntu 18.04 and the solution that figured out with it is 💯 apt install ZSH

Hey guys, I have a solution for this. In the distribution Pop_os! I did the installation using apt and then I used wget to install the files.

1 - sudo apt-get install zsh 2 - sh -c “$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)”

Performed a fresh install of macOs, installed Homebrew, performed brew install zsh zsh-completions, followed by curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh, throws Zsh not installed.

I read through a different issue and adding /usr/local/bin/zsh to /etc/shells changed nothing.

$sudo apt install zsh Then enter your sudo password , type ‘y’ and press ok .

Based on @skaunited, here we have a simple method for offline installation

mkdir zsh-installer
cd zsh-installer
sudo apt-get --print-uris --yes install zsh | grep ^\' | cut -d\' -f2 > zsh.txt
wget -i zsh.txt
sudo dpkg -i *.deb

Today I made a fresh reinstall of my macOS.

  1. Installed Brew
  2. Ran brew install zsh zsh-completions
  3. Ran sh -c “$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

I’m always getting “Zsh is not installed! Please install zsh first!”. I’ve been also tried to change the shell to zsh and then to execute the setup script for Oh my zsh but no luck on that as well.

I’m getting this as well. Just installed a clean Ubuntu18.04 and was setting up my terminal when I ran into this issue and got a huge shock.

I’m also getting this error. Installed via homebrew on macOS 10.13.4 in iTerm.

zsh 5.5.1 (x86_64-apple-darwin17.5.0) - same problem