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

Re: dpkg error (while performing dist-upgrade)



On Thu, Jun 12, 2003 at 04:04:44PM +0300, Tero Laitinen wrote:
> Unfortunately, the script above did not help. 
> 
> The script said:
> ----------
> napalmi:/home/tero# ./script "/usr/X11R6/lib/X11/xinit"
> Searching for overlapping packages...
> no overlaps found.
> ----------
> 
> I tried to execute "apt-get dist-upgrade" again but same error persists.
> "ERROR: /usr/X11R6/lib/X11/xinit symbolic link does not exist. "
> 
> Any clue what might help?

Hmmm.  That just really shouldn't happen.

The xbase-clients preinst says:

if [ "$1" = "install" -o "$1" = "upgrade" ]; then
  # xinit and xsm dirs moved to /etc/X11 in 4.x
  for DIR in xinit xsm; 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/xinit \
                          /usr/X11R6/lib/X11/xsm \
                          /etc/X11/xkb/compiled \
                          /etc/X11/xkb/xkbcomp

...so that should nuke any existing /usr/X11R6/lib/X11/xinit, and give
you a warning if something fishy is going on.

Later, the xbase-clients postinst does the following:

check_symlinks_and_bomb /usr/X11R6/lib/X11/xinit \
                        /usr/X11R6/lib/X11/xsm \
                        /etc/X11/xkb/compiled \
                        /etc/X11/xkb/xkbcomp

# now safe to remove old xinit and xsm dirs
for DIR in xinit xsm; do
  if [ -e /usr/X11R6/lib/X11/$DIR.moved-by-preinst -a -L /usr/X11R6/lib/X11/$DIR ]; then
    rm -r /usr/X11R6/lib/X11/$DIR.moved-by-preinst
  fi
done

That "check_symlinks_and_bomb" function is what you're seeing.

What exactly is /usr/X11R6/lib/X11/xinit on your system?

Can you show us the output of "ls -dl /usr/X11R6/lib/X11/xinit"?

After that, try just "apt-get install xbase-clients".

-- 
G. Branden Robinson                |     No math genius, eh?  Then perhaps
Debian GNU/Linux                   |     you could explain to me where you
branden@debian.org                 |     got these...       PENROSE TILES!
http://people.debian.org/~branden/ |     -- Stephen R. Notley

Attachment: pgpRLOEPewGlW.pgp
Description: PGP signature


Reply to: