ZSH not working

Bug #1819949 reported by Mohammad Shoriful Islam Ronju
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zsh (Ubuntu)
Expired
Low
Unassigned

Bug Description

After installing zsh I couldn't run any commands. After typing command like e.g: ls if I press enter it does nothing just plays an error sound on Ubuntu 18.10.

Below is my system spec.

Laptop: Chuwi Lapbook SE
Running OS: Ubuntu 18.10
Processor: Intel Gemini Lake 4100
RAM: 4GB

Let me know if you need any details.

Thanks

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. How did you install zsh? How did you start using it? Is that from a graphical session? a vt?
could you take a screenshot/photo showing the issue?

Changed in zsh (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Mohammad Shoriful Islam Ronju (smronju) wrote :

I installed zsh via terminal using 'sudo apt install zsh'. After that I changed my shell from terminal 'chsh -s /usr/bin/zsh' then rebooted. After that my terminal stucked here. Can't even list directory with 'ls' command.

Also followed this tutorial but same result. No luck!

Revision history for this message
Axel Beckert (xtaran) wrote :

> Also followed this tutorial but same result.

Which tutorial? There was no link except to the screen shot in your message...

Revision history for this message
Mohammad Shoriful Islam Ronju (smronju) wrote :
Revision history for this message
Axel Beckert (xtaran) wrote : Re: [Bug 1819949] Re: ZSH not working

Hi Mohammad,

Mohammad Shoriful Islam Ronju wrote:
> https://linuxhint.com/install_zsh_shell_ubuntu_1804/

Ok, according to this tutorial(*) that prompt in your screenshot is
the default prompt from oh-my-zsh -- which doesn't come from any
official Ubuntu repo.

So please disable oh-my-zsh first and see if that fixes the issue
already.

If that doesn't fix the issue, please check if running "zsh -f"
(disables the parsing of .zshrc; call it e.g. from bash) still shows
the issue.

If "zsh -f" shows the issue, there is definitively a bug, either in
zsh or the terminal. (Since zsh seems to start at least and does not
crash, it might also be a terminal issue.)

If "zsh -f" works fine, you need to start commenting lines from your
.zshrc until the issue vanishes. The last line you commented out then
likely caused the issue. If that line is known, one can continue to
figure out why that line causes this issue.

It might also be helpful if you could post the output of
"/usr/share/bug/zsh 3>&1" to see which other packages on your system
provide zsh-sourced files.

Footnotes:

(*) IMHO this tutotal is crap:

    * "whereis" is overkill if you can use "which"
    * The user shoudn't use usermod as root (sudo …) to change a user shell
      but chsh (as you did).
    * There's no need to reboot just to make a change of a user shell
      effective.

  Regards, Axel
--
 ,''`. | Axel Beckert <email address hidden>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
  `- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE

Revision history for this message
Mohammad Shoriful Islam Ronju (smronju) wrote :

Running "zsh -f" works fine. However comment out all the lines on .zshrc file still didn't work. I'm attaching "/usr/share/bug/zsh 3>&1" commands output here.

Thanks for your kind help.

Note: Is there any way to source changed .zshrc file? Tried ". ~/.zshrc" and "source ~/.zshrc" nothing worked. I use those commands in mac.

Revision history for this message
Axel Beckert (xtaran) wrote :

Hi Mohammad,

Mohammad Shoriful Islam Ronju wrote:
> Running "zsh -f" works fine.

Ok.

> However comment out all the lines on .zshrc file still didn't work.

You need to start a new zsh to test those changes, i.e. open a new
terminal or starting zsh from bash.

> I'm attaching "/usr/share/bug/zsh 3>&1" commands output here.

Thanks. Nothing suspicious on a first glance.

> Note: Is there any way to source changed .zshrc file? Tried ".
> ~/.zshrc" and "source ~/.zshrc" nothing worked. I use those commands
> in mac.

These commands generally work on Linux, too. Point is just that they
don't undo things which have been commented out from .zshrc. Hence you
need to start a new zsh everytime you comment out or remove something
from your .zshrc.

  Regards, Axel
--
 ,''`. | Axel Beckert <email address hidden>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
  `- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE

Revision history for this message
Mohammad Shoriful Islam Ronju (smronju) wrote :

Yeah tried opening new terminal every time when commented out a line. Finally logged out and logged in to check. No luck :(

Revision history for this message
Axel Beckert (xtaran) wrote :

Hi Mohammad,

Mohammad Shoriful Islam Ronju wrote:
> Yeah tried opening new terminal every time when commented out a line.
> Finally logged out and logged in to check. No luck :(

Does a ~/.zshenv exist, too? That one gets sourced before .zshrc (and
can change the path for .zshrc).

If you have debsums installed, does "debsums -e zsh-common" show any
modified files under /etc/zsh/? Because "zsh -f" also skips them (or
at least some of them).

  Regards, Axel
--
 ,''`. | Axel Beckert <email address hidden>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
  `- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE

Revision history for this message
Mohammad Shoriful Islam Ronju (smronju) wrote :

~/.zshenv is not there. debsums was not installed. I installed it and attached the output.

Revision history for this message
Axel Beckert (xtaran) wrote :

Hi Mohammad,

Mohammad Shoriful Islam Ronju wrote:
> ~/.zshenv is not there. debsums was not installed. I installed it and
> attached the output.

Thanks! Unfortunately I'm starting to run out of ideas what else could
cause this issue. :-(

  Regards, Axel
--
 ,''`. | Axel Beckert <email address hidden>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
  `- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE

Revision history for this message
Mohammad Shoriful Islam Ronju (smronju) wrote :

Hi there,

I found that from terminal advanced menu options if I select reset then my commands runs. So every time I type a command I need to reset before hitting enter. Is there any idea why I need to reset it?

Thanks

Revision history for this message
Mohammad Shoriful Islam Ronju (smronju) wrote :

Using Hyper as my terminal with zsh and running fine :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for zsh (Ubuntu) because there has been no activity for 60 days.]

Changed in zsh (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.