"GDM: Xserver not found" on reboot

Bug #29055 reported by Douglas Green
10
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

My system is an AMD64 with Dapper Drake flight 3 and all the latest updates. After using the system for a while this evening, I rebooted. It would only boot into text mode, and displayed this problem:

GDM: Xserver not found: /usr/X11R6/bin/X :0 -br -audit 0 -auth
/var/lib/gdm:0.Xauth -nolisten tcp vt7
Error: Command could not be executed!
Please install the X server or correct GDM configuration and restart GDM.

Next screen:
The X server is now disabled. Restart GDM when it is configured correctly.

From the shell, I found that:
1. /var/lib/gdm directory was empty
2. /usr/X11R6/bin/X -> ../../bin/X which did not exist
3. When I ran /usr/bin/startx, it said:
Xauth: creating new authority file /root/.server auth.5268
Xauth: creating new authority file /root/.Xauthority
Xauth: creating new authority file /root/.Xauthority
/etc/X11/xinit/xservers: line 2: /usr/bin/X11/X: No such file or directory
/etc/X11/xinit/xservers: line 2: exec /usr/bin/X11/X: cannot execute. No such file or directory.
giving up [note: that's what it said, not me ;-)]
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.

Note also that:
1. I wrote that all down by hand so maybe not every digit is 100% correct.
2. I presume this means that X was somehow wiped out during apt upgrades since I wasn't doing anything manually with X when this happened.
3. I am not sure if libx11 is the applicable package name for this sort of problem.

Don't know if it matters but I have this model of integrated graphics controller:
VGA compatible controller: ATI Technologies Inc RS480 [Radeon Xpress 200G Series]

The good news is that I did an "apt-get --reinstall upgrade" which fixed the problem. It reinstalled a dozen or so files, among them x-window-system-core, x11-common, and xserver-xorg. Then a quick reboot and I was "back in brown" once again. :-)

Revision history for this message
Douglas Green (douglas-s-green) wrote :

I have seen others with similar comments on the Ubuntu mailing list, that they did an update and ended up booting to a shell prompt rather than to Gnome. One of them suggested to symlink /usr/X11R6/bin/X to /usr/bin/Xorg, which they said worked for them. I believe the command they are referring to is "ln -s /usr/bin/Xorg /usr/X11R6/bin/X". Not sure if this would have worked in my case, but it might have.

Matt Zimmerman (mdz)
Changed in libx11:
assignee: nobody → seb128
Revision history for this message
Matt Zimmerman (mdz) wrote :

dpkg -s x11-common xserver-xorg | grep Version

Make sure you're upgraded to 7.0.0-0ubuntu10

Revision history for this message
Matt Zimmerman (mdz) wrote :

My impression is that this situation is fixed in the latest X packages, but perhaps gdm should be updated to use the new location of the X server (with a corresponding versioned dependency) to resolve any ambiguity

Revision history for this message
Sebastien Bacher (seb128) wrote :

The gdm config file has been updated but there is still the conffile update issue for some people (need to replace by the package version or update by hand). Daniel, what version/what xorg package should be required?

Revision history for this message
sam tygier (samtygier) wrote :

can this be considered fixed?

Revision history for this message
Daniel Holbach (dholbach) wrote :

Does this bug still occur to somebody?

Changed in gdm:
status: Unconfirmed → Needs Info
Revision history for this message
SH (s-de-hoog) wrote :

This just happened to me while upgrading from 5.10 to 6.06LTS

The symbolic link trick described by Douglas Green did the job for me.
It turned out that after upgrading /usr/X11R6/bin/X was pointing at /usr/bin/X (in stead of /usr/bin/Xorg) and /usr/bin/X was pointing back at /usr/X11R6/bin/X

Revision history for this message
Marcos Wasem (mwasem) wrote :

I'm having a similar problem. I'm using Ubuntu 6.10, and I have an Nvidia driver installed. The error message I receive at boot is the following:

GDM: Xserver not found: /usr/bin/Xgl :0 :0 -fullscreen -ac -accel
glx: pbuffer -accel xv:fvo -aut /var/lib/gdm :0 .Xauth -nolisten tcp vt7

Error: Command could not be executed.

I've written all this by hand, too, so probably the message is not accurate.

Thanks a lot.

Revision history for this message
Sebastien Bacher (seb128) wrote :

That doesn't look like a gdm bug, rather config files not updated for the xorg changes which should be done by the users who modifier their file since the conffiles are not replaced on upgrade to respect the changes by the user

Changed in gdm:
assignee: seb128 → desktop-bugs
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.