Gnome Terminal freeze

Asked by sameer

hello,

On my Ubuntu linux

I open up default gnome terminal, and it's stuck or freeze..

The only way to "enforce" it to start being responsive, is to hit CTRL+C, which results in bash/profile stopped to load. However, this renders the terminal being useless as any aliases are not loaded for example.

what could be the problem and how to fix this issue

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

1. Which Ubuntu release?

2. How do you open the terminal (keyboard shortcut, mouseclick, ..)?

3. Is there anything strange in your bash profile that may cause a loop?

Revision history for this message
sameer (mfaheem5697) said :
#2

Hi Manfred Hampl

Which Ubuntu release?
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

2. How do you open the terminal (keyboard shortcut, mouseclick, ..)? mouseclick

3. Is there anything strange in your bash profile that may cause a loop? i dont know

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Do you see the same behavior when you start the terminal by simultaneously pressing ctrl-alt-t?

Did you modify any of the startup scrips (~/.profile, ~/.bashrc, /etc/bash.bashrc, /etc/profile ... )?
If yes, what's their current contents?

Revision history for this message
sameer (mfaheem5697) said (last edit ):
#4
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

The bash completion part looks weird. I'm not in front of my system to check though.

Revision history for this message
sameer (mfaheem5697) said (last edit ):
#6
Revision history for this message
sameer (mfaheem5697) said :
#7

Hello Actionparsnip,

Can you please help on this

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Ah ok, it is OK. Just checked mine now.

If you log off, then press CTRL + ALT + F1 on the login screen, can you log in to the command line there and be OK?

Revision history for this message
sameer (mfaheem5697) said :
#9

yes this seems to be ok.......

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Ah OK cool. If you run:

sudo apt update
sudo apt -y full-upgrade
sudo apt --reinstall install gnome-terminal
sudo reboot

Does it help?

Revision history for this message
sameer (mfaheem5697) said :
#11

I have tried the steps provided by you but still it doesn't help.
Any other solution?

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

Just to verify the version, what is the output of

apt policy gnome-terminal

Revision history for this message
sameer (mfaheem5697) said :
#13

gnome-terminal:
  Installed: 3.36.2-1ubuntu1~20.04
  Candidate: 3.36.2-1ubuntu1~20.04
  Version table:
 *** 3.36.2-1ubuntu1~20.04 500

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Is this the full output? If yes, then something is wrong with your package management.

Revision history for this message
sameer (mfaheem5697) said :
#15

gnome-terminal:
  Installed: 3.36.2-1ubuntu1~20.04
  Candidate: 3.36.2-1ubuntu1~20.04
  Version table:
 *** 3.36.2-1ubuntu1~20.04 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.36.1.1-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

Ok, that's normal output.

Do you have any gnome extensions installed?

What exactly happens when you start a terminal? Do you see the new window (or not), what is shown in the terminal, etc.?
When you have one terminal window open, can you create a new window, and does this work then, or is it freezing as well?

Revision history for this message
sameer (mfaheem5697) said :
#17

when i open the terminal it freezes and doesn't show anything like a blank screen.

The only way to "enforce" it to start being responsive, is to hit CTRL+C, which results in bash/profile stopped to load. However, this renders the terminal being useless
sometimes while working in the middle it freeze.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#18

If you launch xterm instead, is it OK?

Revision history for this message
sameer (mfaheem5697) said :
#19

never tried xterm but when start bash from within a shell it shows nothing and when tried to run on different shell like zsh which shows new user prompt.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#20

OK in ZSH, run:

cp ~/.bashrc ~/.bashrc-2022-07-22
sudo cp /root/.bashrc ~/.bashrc
sudo chown foo:foo ~/.bashrc

Then try BASH. You will need to change "foo" for your username. I don't know if ZSH has the $USER variable. E.g

sudo chown andy:andy ~/.bashrc

Then use Gnome-Terminal as normal.

Revision history for this message
sameer (mfaheem5697) said :
#21

So what i understand from the solution is the bashrc file is being created similar to the one in /root ...so basically default and which would make the changes in the current state and assigning the ownership with my username.

so i would loose the minor changes with aliases which was done few months back?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#22

In the file used, yes. We have renamed the existing file so you can add what you need later. We need to get the shell functional first

Can you help with this problem?

Provide an answer of your own, or ask sameer for more information if necessary.

To post a message you must log in.