On Thu, May 04, 2006 at 11:39:29 -0700, L.V.Gandhi wrote:
> On 5/4/06, Florian Kulzer <[EMAIL PROTECTED]> wrote:
> >On Thu, May 04, 2006 at 08:52:55 -0400, Rick Friedman wrote:
> >> I'm running Debian Sid. This morning, I saw that quite a few X/Xorg 
> >packages
> >> were available to be upgraded. So, I went ahead and did the upgrades.
> >>
> >> I use kdm as my login display manager. After the upgrade, X started fine.
> >> However, when any user would try to login, the screen would go black
> >> momentarily and then return to the kdm login screen. No user could login.
> >>
> >> After checking the .xsession-errors file for each user, the following 
> >error
> >> was seen in all:
> >>
> >> /etc/kde3/kdm/Xsession: line46: /etc/X11/Xsession: No such file or 
> >directory
> >>
> >> I checked the /etc/X11 directory and corrected the problem by creating a
> >> symbolic link as follows:
> >>
> >> ln -s Xsession.xfree86 Xsession
> >>
> >> After this, users were able to logon as usual.
> >>
> >> Anyone else experiencing this??

[...]

> I also faced the same problem. With Ricks soln, I could login.
> However reinstalling only x11-common didn't help. I then reinstalled
> kdm also. That also didn't help. I reverted back to Ricks soln.
> However I would like to know the following so that I can follow your method.
> 1)how to extract /etc/X11/Xsession manually from the x11-common
> 2)How to identify the other xorg packages which had been upgraded today

First of all, I have now looked into this a bit more; I also read the
bug reports which I mentioned in my earlier post in more detail. There
are two nicer ways to fix this problem:

a) /etc/X11/Xsession.xfree86 is in fact /etc/X11/Xsession from
   x11-common, it just gets renamed by mistake. Therefore you can just
   rename it again and the problem should be solved.

b) Another possibility is to install x11-common with dpkg:

   dpkg --force-confmiss -i 
/var/cache/apt/archives/x11-common_1%3a7.0.16_i386.deb

   The "force-confmiss" option will make sure that the missing file is
   restored.

I hope you will now not need this anymore, but the information might be handy
for another time:

1) The command is dpkg-deb. In our case it would be something like

   dpkg-deb -X /var/cache/apt/archives/x11-common_1%3a7.0.16_i386.deb tempdir

   This will extract all files from the package to tempdir. The directory
   hierarchy is preserved, therefore you would find the missing file at
   tempdir/etc/X11/Xsession.

2) Aptitude keeps a log of all its (intended) operations. If you don't
   use aptitude you can check for new files in the package cache:

   find /var/cache/apt/archives/ -type f -mtime -2 | sed 's/.*\///;s/_.*$//'

   ("-mtime -2" finds files which were modified less than 2 days ago.)

-- 
Regards,
          Florian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to