How to reinstall gnome-terminal?

83,570

Solution 1

Read the next paragraph to its end before doing anything!

Switch to a TTY by pressing Ctrl + Alt + F1. It also works for F2 to F6. If something is running on TTY1 (used F1), use the next one. Log in and enter sudo apt-get purge gnome-terminal. To get back to the graphical session, press Ctrl + Alt + F7.

You might want to remove the profile files before reinstalling gnome-terminal (by typing in sudo apt-get install gnome-terminal). To do so, delete ~/.gconf/apps/gnome-terminal, if it exist on your system. I have no idea where it is on Ubuntu 15.04, so maybe google this one.

Edit: I figured out the path on Ubuntu 15.04: /usr/share/glib-2.0/schemas/org.gnome.Terminal.gschema.xml.

Solution 2

Most likely you ran into this problem after upgrading python2.7 to python3.5, anyway the solution is rather easy: Just open xterm and type the following:

sudo apt-get -f install gnome-terminal

or

sudo apt-get remove gnome-terminal && sudo apt-get install gnome-terminal

if it didn't work either ways though, run sudo apt-get remove python3 first and repeat the steps.

Solution 3

open xterm or a tty terminal, and run the following command:

sudo apt-get remove gnome-terminal && sudo apt-get install gnome-terminal
Share:
83,570

Related videos on Youtube

sprabhakaran
Author by

sprabhakaran

Updated on September 18, 2022

Comments

  • sprabhakaran
    sprabhakaran almost 2 years

    I dont know exactly what happened. When I open my terminal window, it completely cracked. I dont anything editing this window. How to i reinstall gnome-terminal ?

    I have tried the below post's solutions, How to reinstall Terminal?

    But, it didn't solve my problem.

    enter image description here

    It would be great, if give any solutions.

    Thanks.

    • Admin
      Admin over 8 years
      The question you linked to seems to be about reinstalling gnome-terminal when it's been removed: to reinstall it when it's currently installed but screwed up, you probably need to add the flag --reinstall to the command i.e. sudo apt-get install --reinstall gnome-terminal
    • Admin
      Admin over 8 years
      I have tried with your command. But, that problem has not solved.
    • Admin
      Admin over 8 years
      In that case, the problem is likely not with any of the files in the gnome-terminal package - perhaps it is something in your local (user) configuration? Do you see the same behaviour if logged in to a different account / guest account?
    • Admin
      Admin over 8 years
      @steeldriver I have tried different users too .... Still, blank window only opened. I have tried to execute exit command in this window. It works. But, content has not displayed.
  • UTF-8
    UTF-8 over 8 years
    I've never had something like this and have no idea how to solve it. However, you can try to install a new terminal. Mate Terminal is pretty much the same thing. sudo apt-get install mate-terminal
  • UTF-8
    UTF-8 over 8 years
    Did you delete the files mentioned in my answer?
  • sprabhakaran
    sprabhakaran over 8 years
    sorry.... small mistake.. It works well... Thank you very much.
  • rkalra
    rkalra about 4 years
    It worked like a charm. Thank you so much. :)