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

Re: xlibs preinst script problem



On Fri, Oct 12, 2001 at 06:25:05PM -0700, Joan Eslinger wrote:
> Package name is xlibs, version seems to be 4.1.0-7.
> 
> pc-kilimanjaro:/var/cache/apt/archives# apt-get install xlibs
> <CR>Reading Package Lists... 0%<CR><CR>Reading Package Lists... 0%<CR><CR>Reading Package Lists... 2%<CR><CR>Reading Package Lists... Done<CR>
> <CR>Building Dependency Tree... 0%<CR><CR>Building Dependency Tree... 0%<CR><CR>Building Dependency Tree... 0%<CR><CR>Building Dependency Tree... 50%<CR><CR>Building Dependency Tree... 50%<CR><CR>Building Dependency Tree... Done<CR>
> Sorry, xlibs is already the newest version.
> 0 packages upgraded, 0 newly installed, 0 to remove and 6  not upgraded.
> 310 packages not fully installed or removed.
> Need to get 0B of archives. After unpacking 0B will be used.
> <CR><CR>Setting up xlibs (4.1.0-7) ...
> Analyzing /usr/X11R6/lib/X11/app-defaults:
> drwxr-xr-x   17 root     root         1024 Oct 11 22:45 /usr
> drwxr-xr-x    7 root     root         1024 Feb  3  2001 /usr/X11R6
> drwxr-xr-x    6 root     root         4096 Oct 11 22:45 /usr/X11R6/lib
> drwxr-xr-x   31 root     root         1024 Oct 12 18:10 /usr/X11R6/lib/X11
> drwxr-xr-x    2 root     root         1024 Oct 12 18:50 /usr/X11R6/lib/X11/app-defaults
> ERROR: /usr/X11R6/lib/X11/app-defaults is not a symbolic link.  The package 
> preinst script should have failed.
> Please report the package name, version, and the text of the above error 
> message(s) to <debian-x@lists.debian.org>.

Well, I really don't know how this happened.

See the attached preinst script.  I'm open to suggestions.  Anyone?

-- 
G. Branden Robinson                |       The key to being a Southern
Debian GNU/Linux                   |       Baptist: It ain't a sin if you
branden@debian.org                 |       don't get caught.
http://people.debian.org/~branden/ |       -- Anthony Davidson
#!/bin/sh
# Debian xlibs package pre-installation script
# Copyright 1998-2001 Branden Robinson.
# Licensed under the GNU General Public License, version 2.  See the file
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
# Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava.

set -e

THIS_PACKAGE=xlibs
THIS_SCRIPT=preinst

#INCLUDE_SHELL_LIB#

if [ "$1" = "install" -o "$1" = "upgrade" ]; then
  # app-defaults and xkb directories moved in 4.0
  for DIR in app-defaults xkb; do
    if [ -e /usr/X11R6/lib/X11/$DIR -a ! -L /usr/X11R6/lib/X11/$DIR ]; then
      message "Note: Removing obsolete /usr/X11R6/lib/X11/$DIR directory."
      mv /usr/X11R6/lib/X11/$DIR /usr/X11R6/lib/X11/$DIR.moved-by-preinst
    fi
  done

  check_symlinks_and_warn /usr/X11R6/lib/X11/xkb \
                          /usr/X11R6/lib/X11/app-defaults

  # clean up after 3.3.2.3a-2 to 3.3.2.3a-7
  if [ -L /usr/X11R6/lib/X11/locale ]; then
    message "Note: Removing /usr/X11R6/lib/X11/locale symbolic link."
    rm /usr/X11R6/lib/X11/locale
  fi
fi

#DEBHELPER#

exit 0

# vim:set ai et sts=2 sw=2 tw=0:

Attachment: pgpvuCT3QyNak.pgp
Description: PGP signature


Reply to: