Hi,
this looks like you tried to set
zsh as your root shell for the user
root without making sure that it is either available at given path or installing it in the first place. You could try to restore your install to working version by either:
- Log in with another user that has enough privileges to edit
/etc/passwd and/or install new packages. Then you could:
- First make sure that
zsh is installed with apt install zsh and also where the executable is located with which zsh.
- Maybe that was enough to fix your issue, try using the GUI to access the shell at this point before continuing.
- If it wasn't, you'll have to edit
/etc/passwd: Use vipw. This should open the file in an editor of your choice (probably nano or vim.tiny). There should be a line that starts with root (probably the first line), make sure that the absolute path after last colon on that line points to zsh. In other words: make sure that it matches the output of which from before.
- If you don't have another user that you can log in with, you will need to use a rescue image of your choice to edit the file
/etc/passwd. In this case, just change the part after the last colon to /bin/bash.