LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Lots of errors when running an app with sudo (https://www.linuxquestions.org/questions/ubuntu-63/lots-of-errors-when-running-an-app-with-sudo-531535/)

bruno321 02-22-2007 09:40 PM

Lots of errors when running an app with sudo
 
Hi. I've just installed Kubuntu 6.10, but I have one problem: can't sudo. I mean, yes, I can for example sudo uname -r, but can't execute programs. With kwrite and kate for example, I get this which I don't get when executing them without sudo:

Code:

bruno321@bruno321:/etc$ sudo kwrite fstab
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode:  144
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode:  144
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
kded: ERROR: KUniqueApplication: Registering failed!
kded: ERROR: Communication problem with kded, it probably crashed.
kdeinit: Shutting down running client.
---------------------------------
It looks like dcopserver is already running. If you are sure
that it is not already running, remove /root/.DCOPserver_bruno321__0
and start dcopserver again.
---------------------------------

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
kded: ERROR: KUniqueApplication: Registering failed!
kded: ERROR: Communication problem with kded, it probably crashed.
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available! (lots more of these)
KCrash: Application 'kwrite' crashing...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

drkonqi: cannot connect to X server :0.0

I'm aware that the first part is a different problem: it appears with every program I execute, sudoing or not. It had happened with me before, with Ubuntu some weeks ago, but it doesn't have any visual consequences. The other errors, unfortunately, do have bad consequences.

Anyway, I also get:

Code:

bruno321@bruno321:/etc$ su -
Password:
root@bruno321:/etc# kwrite fstab
kwrite: cannot connect to X server

I'm using an AMD Sempron 2800+, mounted on a MSI K7N2 Delta2 with 512 MB of RAM, and a Geforce 6200 of which I haven't yet installed the drivers. I will when Adept has finished updating stuff. If that works, I will post it.

Thanks a lot.

cgjones 02-22-2007 10:33 PM

Try kdesu instead of sudo.

bruno321 02-23-2007 04:21 AM

Well, actually I had to reinstall kubuntu (due to some bad messes with X.org and the nvidia drivers), and now I don't get that problem anymore (well, the first part, yes. Whenever I execute anything, but it doesn't have any visual consequences).

Thanks anyway :)


All times are GMT -5. The time now is 03:10 PM.