is the K Desktop Environment. Since kde needs XFree86 to run, apt-get will install that for you too, automatically. If it is successful, the graphics (like kde) should start working when you run 'startx'.
As for your error, I don't know how bad it is, but you don't really need apache right now. It is the webserver. Try 'startx' to see if the installation worked.