I'm using Linux Mint. When I click on terminal, it doesn't open (there is no response.)

How can I open it? Below information may be useful:

Kernel: 4.4.0-21-generic x86_64 (64 bit) Desktop: Cinnamon 3.0.6

Distro: Linux Mint 18 Alex

I have tried what suggested here, but it didn't solve the problem. It returns:

gnome-terminal is already the newest version (3.18.3-linuxmint1)

EDIT: It is very odd, because I have created another account and in new account terminal can be opened.

  • Compare the shell initialization files between the two accounts. If the shell fails or exits while running e.g. .bashrc, it may prevent the terminal from starting. – Kusalananda Apr 7 '18 at 13:50
  • How can I do that? @Kusalananda – Alexander Fill Apr 7 '18 at 13:52
  • How can I "Compare the shell initialization files between the two accounts."? @Kusalananda – Alexander Fill Apr 7 '18 at 13:53
  • Log into the account whose terminal works and look at the two sets of files and/or run a diff on them. The two sets of files being the shell initialization files on the two accounts. – Kusalananda Apr 7 '18 at 13:55
  • where can I find "two sets of files"? @Kusalananda – Alexander Fill Apr 7 '18 at 13:57

As the commenters have mentioned, things in your bash startup files (~/.bashrc, ~/.bash_profile) could be causing your shell to exit instantly, which could be causing the terminal emulator to instantly close.

It working properly on another account without a .bashrc suggests that something in your .bashrc is causing this.

If this is the case, renaming your .bashrc file should allow you to open your terminal emulator. You can then try to isolate the error by removing parts of your .bashrc until it starts up normally, or you can try using shellcheck.

| improve this answer | |
  • It doesn't need to be an issue in a shell startup file, but it's a very real possibility. For example, the result of a botched edit. – Kusalananda Apr 7 '18 at 21:04
  • I renamed bashrc but it didn't solve the problem – Alexander Fill Apr 8 '18 at 4:15
  • @AlexanderFill try opening a TTY (I think a shortcut should be Ctrl+Alt+F2), and logging in to the account that isn't working, to see if bash is working there – boxama Apr 8 '18 at 9:40
  • When I opened TTY, how can I check if the bash is working ? @boxama – Alexander Fill Apr 9 '18 at 4:37
  • @AlexanderFill if you can sign in and the bash prompt appears without error, it is working. To test your terminal emulator try DISPLAY=':0' gnome-terminal to open it on your X display. If that's failing you should get some error message at least – boxama Apr 9 '18 at 9:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.