5

My Ubuntu OS' version is 18.04.1 LTS.

When I start gedit, this is the result gedit screenshot:

enter image description here

Same problem arises with GNOME Calculator:

enter image description here

I think some things wrong with GNOME programs. I wish to know followings:

  • Why is this happening?
  • How can i fix this?

4 Answers4

5

You could experience a problem related to input method modules. (https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1760818)

Try starting e.g. gedit by disabling GTK_IM_MODULE

GTK_IM_MODULE=none gedit

and check whether the issue is gone.

If it is gone, you could try to set GTK_IM_MODULE to none by invoking

im-config

and selecting choice "none" in the dialogs.

A reboot is necessary, afterwards.

steffel
  • 51
  • This fixed my problem. When I set it back to IBus and rebooted, the problem was still fixed. This answer should be marked as the correct answer. – Mark Jeronimus Feb 25 '19 at 14:34
  • I have the same issue when using gnome-calculator and gedit. This answer fixes the issue for me. – htaccess Feb 10 '20 at 00:14
1

Install the 'Synaptic Package Manager' and search for gedit,

using:

sudo apt-get update 
sudo apt-get install synaptic

This will help to figure out what is going on with any program/package issues.

  • I don't understand how can I use synaptic package manager to solve the problem. – Metin Ersin Arıcan Nov 07 '18 at 20:09
  • 1
    Did you install it and try to search gedit ? .............It's self explanatory, if there is a problem synaptic will indicate if there is a problem with the install, ie: broken package, unmet dependencies, wrong version etc ..... – Better Ideas Nov 07 '18 at 20:16
  • I am using synaptic already. But it doesn't indicate anything. Everything seems normal. – Metin Ersin Arıcan Nov 07 '18 at 20:38
  • 1
    Hmmm. I don't know what the problem could be. The only suggestion I have is to open synaptic, search gedit, right click and choose 'mark for complete removal', click apply and after it completes, right click and 'mark for installation' then after the reinstall click on the 'reload' icon, then click the 'mark all upgrades' ...follow through if there are any upgrades. Click on the 'apply' icon and that's it. If that doesn't fix it, then it's above my pay-grade. – Better Ideas Nov 07 '18 at 21:03
  • Also take a look at these links: https://snapcraft.io/gedit .......https://snapcraft.io/gnome-calculator – Better Ideas Nov 07 '18 at 21:09
  • Unfortunately didn't solve. – Metin Ersin Arıcan Nov 08 '18 at 18:16
1

By the way - your calculator may be a 'snap' program.

Try: sudo snap install gnome-calculator

Try: sudo snap refresh

0

This link may be of help:

gedit not working? [duplicate]

Using: apt-get install --reinstall gedit must have space before the --reinstall

or:

sudo apt-get purge gedit && sudo apt-get install gedit

Also try:

sudo apt-get purge gedit gedit-common
sudo apt-get clean
sudo apt-get install gedit

And do it for the Gnome calculator:

sudo snap remove gnome-calculator

and enter the following to install the deb version:

sudo apt install gnome-calculator

Another possibly is to update the 18.04.1 OS system with:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -f