Hi I had the same problem with my upgrade to 4.0.2.
By default it expects /etc/X11/X to be your server. I set up a symlink from there to the actual xserver which is xfree86 (sorry don't remember the path and am away from my Linux box - a "find" should locate it). Malcolm Gray