0

When ever I try to run any software be it google-chrome or gedit , it doesnt open. When ever I try to open any software using terminal it shows an error :

(Invalid MIT-MAGIC-COOKIE-1 key
** (gedit:8440): WARNING **: Could not open X display
Invalid MIT-MAGIC-COOKIE-1 key
(gedit:8440): Gtk-WARNING **: cannot open display: :0
)
6
  • Consider this: unix.stackexchange.com/questions/199891/…
    – Marc
    May 29, 2017 at 21:38
  • That's a problem with the software you are trying to use talking to the software that manages the gui environment - all the stuff that isn't just plain text on a plain background. You need to give more details. Are you booted into a graphical environment? Exactly what command elicited that message? EXACTLY. You can get error messages like that when trying to run a graphical program as another user with sudo for example. Details matter. May 29, 2017 at 22:45
  • I just typed the command gedit filename e
    – divyang
    May 30, 2017 at 4:37
  • @Lew it was working perfectly fine even if I try to open Google chrome using terminal it shows the same error message ( command - google-chrome) . This command worked earlier.
    – divyang
    May 30, 2017 at 4:40
  • You never answered the question "Are you booted into a graphical environment?" I'll assume you are. I'll assume the "terminal" you are typing into is a terminal emulator in a WINDOW, not a tty. You didn't say how you started the terminal but I'll assume it is as a regular user. I'll assume you are working on a local machine you can touch, not over a network. All those kinds of details MATTER. But making a huge pile of assumptions, I'd try sudo apt-get install --reinstall xorg but YMMV. May 31, 2017 at 4:33

0

You must log in to answer this question.

Browse other questions tagged .