While trying to follow these instructions, I encountered the following error while attempting what seems like a simple sudo
edit operation:
$ sudo gedit /var/lib/dpkg/status
** (gedit:14898): WARNING **: Command line `dbus-launch --autolaunch=0bd873023a78bdb34ca1b9650000000b --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
Cannot open display:
Run 'gedit --help' to see a full list of available command line options.
Running the same without sudo
correctly launches gedit, but of course without editing ability. Does anyone have any idea what is going on?
nano
orvim
, which should work without complications. I'm unsure what is causing the error - I had assumedDISPLAY
was unset but testing this gives me a different error. – chronitis Nov 13 '12 at 13:30/var/lib/dpkg/status
is a file which I should be able to edit with gedit, but currently cannot. Please, if you have a useful answer add it below. – Bill Cheatham Nov 14 '12 at 17:56