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?
Brendan Darrer
  • 259
  • 1
  • 2
  • 17

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
  • 2
  • 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.

Brendan Darrer
  • 259
  • 1
  • 2
  • 17
  • 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

Brendan Darrer
  • 259
  • 1
  • 2
  • 17
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
Brendan Darrer
  • 259
  • 1
  • 2
  • 17
  • 1
    I have had tried but it is not working. And also problem is not special to gedit. – Metin Ersin Arıcan Nov 07 '18 at 18:33
  • Can you open gedit from the ubuntu search icon for "gedit", i.e. without using terminal? – Brendan Darrer Nov 07 '18 at 18:37
  • It is not also working. – Metin Ersin Arıcan Nov 07 '18 at 19:11
  • I have tried your last edit but not working. – Metin Ersin Arıcan Nov 07 '18 at 19:20
  • Restart the computer? – Brendan Darrer Nov 07 '18 at 19:21
  • I did a lot of times. – Metin Ersin Arıcan Nov 07 '18 at 19:23
  • What is not working? the command `sudo dpkg --configure -a` etc. or the `gedit` part? – Brendan Darrer Nov 07 '18 at 19:26
  • any of them not working. – Metin Ersin Arıcan Nov 07 '18 at 20:04
  • Have you tried this one? --> [Can't open terminal in Ubuntu 18.04 after upgrade from 17.10](https://askubuntu.com/questions/1040566/cant-open-terminal-in-ubuntu-18-04-after-upgrade-from-17-10) – Brendan Darrer Nov 07 '18 at 20:10
  • 1
    Sorry, I am not a native English speaker and I think I have used wrong words. I have no problem with terminal. By "working", I meant any of the solutions you recommended didn't solve the issue. – Metin Ersin Arıcan Nov 07 '18 at 20:14
  • Okay! Here's another one to try: [Terminal not working on Ubuntu 18.04](https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1788364) . It's good to try it, even if it appears unrelated, it could solve it. @luis-de-sousa "for those seeking for a solution to this: removing the orca package permanently solves this issue: `sudo apt purge orca` " – Brendan Darrer Nov 07 '18 at 20:22
  • I just tried `synaptic`. I think you need to find out what it tells you about `gedit`. Ask **@Better Ideas** what to look for. Have you just recently installed Ubuntu 18.04.1 ? – Brendan Darrer Nov 07 '18 at 20:47
  • Try these ones: [gedit not opening from terminal - not authenticated](https://www.linuxquestions.org/questions/linux-newbie-8/gedit-not-opening-from-terminal-not-authenticated-4175530980/) and [gedit fails to open as root in terminal](https://bbs.archlinux.org/viewtopic.php?id=154120) – Brendan Darrer Nov 07 '18 at 21:02
  • Also see: [How can I run sudo gedit as gksu gedit](https://askubuntu.com/questions/314938/how-can-i-run-sudo-gedit-as-gksu-gedit). Try `sudo gedit` ? – Brendan Darrer Nov 07 '18 at 21:04
  • In synaptic everything seems normal. Unfortunately they didn't solve the problem. – Metin Ersin Arıcan Nov 08 '18 at 18:18
  • I suggest saving all your important files to storage device (e.g. USB stick). Once you have backed up your files, you could try to reinstall ubuntu 18.04.1. If that doesn't work, try installing 16.04 LTS. You could, however, first test if `gedit` works on your ubuntu 18.04.1, by booting it from the original USB drive containing the OS? I.e. boot 18.04.1 from the USB stick and try `gedit` there. To test if it is the OS or the hard drive. If it is the OS, then download a new one and install. – Brendan Darrer Nov 08 '18 at 20:36