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

Re: dpkg error (while performing dist-upgrade)



On Friday 13 June 2003 00:53, you wrote:
> 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".

Actually I did not have xinit file at all.

napalmi:/home/tero# ls -dl /usr/X11R6/lib/X11/xinit
ls: /usr/X11R6/lib/X11/xinit: No such file or directory

"apt-get install xbase-clients" reported following:

napalmi:/usr# apt-get install xbase-clients
Reading Package Lists... Done
Building Dependency Tree... Done
1 packages upgraded, 0 newly installed, 0 to remove and 138  not upgraded.
1 packages not fully installed or removed.
Need to get 0B/1515kB of archives. After unpacking 152kB will be freed.
(Reading database ... 73012 files and directories currently installed.)
Preparing to replace xbase-clients 4.2.1-3 (using 
.../xbase-clients_4.2.1-6_i386
.deb) ...
ERROR: /etc/X11/xkb/xkbcomp exists and is not a symbolic link.  This package 
cannot be installed until this file is removed.
Aborting installation of xbase-clients package.
dpkg: error processing /var/cache/apt/archives/xbase-clients_4.2.1-6_i386.deb 
(-
-unpack):
 subprocess pre-installation script returned error exit status 1
ERROR: /usr/X11R6/lib/X11/xinit symbolic link does not exist.  Either the 
package didn't ship the symbolic link (a bug in the package), or dpkg failed 
to 
unpack it to the filesystem (a bug in dpkg).
Please report the package name, version, and the text of the above error 
message(s) to <debian-x@lists.debian.org>.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/xbase-clients_4.2.1-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)




Reply to: