[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] Dangling symlink ?

I think Matt hit it on the head, Debian seems not to have handled the upgrade to a 'modular' xserver too well.  Anyway, I scoured around my box last night and heres a few notes to help you understand what should be happening.

steved@nospam.Moria:~$dpkg --list xlib6g
ii  xlib6g              4.0.2-7             pseudopackage providing X libraries
I run a slightly older version of X.

steved@nospam.Moria:~$ ls -la /etc/X11/X
rwxrwxrwx    1 root     root           20 Mar  3 00:36 /etc/X11/X -> /usr/bin/X11/XFree86
So /etc/X11/X is a symlink to /usr/bin/X11/XFre86

steved@nospam.Moria:~$ ls -la /usr/bin/X11/XFree86 
-rwxr-xr-x    1 root     root      1491868 Feb 22 16:13 /usr/bin/X11/XFree86
And /usr/bin/X11/XFree86 is the xserver, and it's a real file (1.4 meg)

So what package has provided that file?
steved@nospam.Moria:~$ dpkg --search /usr/bin/X11/XFree86
dpkg: /usr/bin/X11/XFree86 not found.

WHAT?  Not found? I was just looking at it!
Lets try a generic search for just XFree86

steved@nospam.Moria:~$ dpkg --search XFree86
xserver-xfree86: /usr/X11R6/bin/XFree86
xfree86-common: /usr/share/doc/xfree86-common/XFree86-FAQ.html
xserver-xfree86: /usr/X11R6/man/man1/XFree86.1x.gz
xfree86-common: /usr/share/doc/xfree86-common/XFree86-FAQ.text.gz
xdm: /etc/X11/xdm/pixmaps/XFree86.xpm
xdm: /etc/X11/xdm/pixmaps/XFree86bw.xpm

The first one is the one we are looking for.
Package 'xserver-xfree86' has provided /usr/X11R6/bin/XFree86,
but this is a different spot to /usr/bin/X11Xfree86, and here's the tricky part.

steved@nospam.Moria:~$ ls -la /usr/bin/X11
lrwxrwxrwx    1 root     root           12 Mar  1 23:01 /usr/bin/X11 -> ../X11R6/bin

/usr/bin/X11 is what I call a 'directory symlink' to the /usr/X11R6/bin directory.
i.e /usr/X11R6/bin/XFree86 is the same file as /usr/bin/X11Xfree86
Anytime you ask for something in the /usr/biun/X11 directory it points you straight at the /usr/X11R6/bin directory.

steved@nospam.Moria:~$ cat /etc/debian_version 

And you can check if the Xfree86 version 4 server is installed by:
steved@nospam.Moria:~$ dpkg --status xserver-xfree86
Package: xserver-xfree86
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 11300
Maintainer: Branden Robinson <branden@nospam.debian.org>
Source: xfree86
Version: 4.0.2-7
Replaces: xserver-common (<< 4.0), libxfont-xtt (<< 1:
Provides: xserver
Depends: xserver-common (>> 4.0), debconf (>= 0.2.26), libc6 (>= 2.2.1), zlib1g (>= 1:1.1.3)
Suggests: mdetect, read-edid
Description: the XFree86 X server
 The XFree86 X server is an X server for several architectures and operating
 systems; its architecture was completely redesigned for the 4.0 release, and
 features a loadable module system in which required modules are loaded on
 demand by a single server binary as opposed to the video card-specific X
 servers of the 3.x release.
 The XFree86 server supports most modern graphics hardware from most vendors,
 and supersedes most version 3.x XFree86 X servers.  See
 <http://www.xfree86.org/4.0.1/Status.html> for information on its support for
 your particular hardware.
 If the mdetect and read-edid packages are present, the debconf scripts in
 this package will use them to attempt automatic configuration of your mouse
 and monitor.

Notice the Status: line near the top...

Anyway, my notes from that time indicate that I fixed it all by:
apt-get install task-x-window-system
I was also missing files like 'startx' and 'deXter' which is the debian Xwindow config utility..

Hope that all helps....


Your password must be at least 18770 characters and
cannot repeat any of your previous 30689 passwords.
Type a password that meets these requirements in both
text boxes.  -  Windows 2000 attempts security  <bah!>

SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug