Re: X applications won't run after xorg upgrade [Update]
On Fri, Jun 09, 2006 at 17:56:50 -0400, Wayne Topa wrote:
> Wayne Topa(linuxone@intergate.com) is reported to have said:
[...]
> > Sorry, I mentioned in a previous post that I had done all the
> > suggestions at http://wiki.x.org. That included running
> > dpkg-reconfigure x11-common. I have tried Console Users Only as well
> > as anyone, with the same results, only root can start X.
> >
> Still trying to get Xorg running and did a reinstall of a bunch of
> xorg packages. It seems that there is a problem with x11-common.
>
> Running 'aptitude reinstall x11-common' the file size shows a 279K
> package but the package in the archive directory is 273K. This error
> shows up when aptitude is unpacking the file
> -------
> E: Sub-process gzip returned an error code (100)
> E: Prior errors apply to /var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb
> debconf: apt-extracttemplates failed: Bad file descriptor
> ------------
$ ls -lh /var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb
-rw-r--r-- 1 root root 273K 2006-05-21 23:19 /var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb
The difference in file length might be due to aptitude using
SI-kilobytes (1000 bytes) while "ls -lh" still uses the old definition
(1024 bytes, which is now supposedly called a "kibibyte"). Your .deb
file could be damaged nevertheless, so it might be better to delete it
and download it again. For comparison, here is my md5sum:
$ md5sum -b /var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb
6c2b7dd7514dbe4defd0c949817290b1 */var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb
> BUT, users can get past the original error I reported and now show a new error.
> ------------
> error opening security policy file /etc/X11/xserver/SecurityPolicy
> ------------
>
> This is interesting. I do not have the /etc/X11/xserver directory at all!
>
> Would appreciate it if someone with a working xorg could tell me which package
> contains the '/etc/X11/xserver/SecurityPolicy' file.
The SecurityPolicy file on my system seems to have come from the old
xserver-common package (6.9.0.dfsg.1-6). The new xserver-xorg package
replaces xserver-common, but the SecurityPolicy was left in place during
the upgrade; it is obviously treated as a configuration file. You can
extract the file from the old package with "dpkg-deb -X". If you do not
have the package in your apt archives anymore you can download it to
some temporary directory with "aptitude download"; this can be done as a
normal user and it does not change your installation.
My permissions are as follows:
$ ls -ld /etc/X11/xserver/
drwxr-xr-x 2 root root 4096 2006-04-05 13:28 /etc/X11/xserver/
$ ls -l /etc/X11/xserver/
total 4
-rw-r--r-- 1 root root 2925 2004-04-28 20:20 SecurityPolicy
--
Regards,
Florian
Reply to: