Actually, I was changing the /etc/hosts file for apache server configuration and accidentally removed "127.0.0.1 localhost" line from that. and the above mentioned programs stopped functioning. I still don't know why only the programs started as root were affected.
So you should check your /etc/hosts file -- gedit fails to run as root in jaunty https://bugs.launchpad.net/bugs/311237 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs