Re: How can I install with unmet dependencies
Michael D. Crawford wrote:
dircha said to try apt-get update again.
I did, and it didn't help. I think maybe the packages are OK for i386,
but not for the powerpc which I'm using. It was just an hour or two ago
that I previously updated.
I'm baffled on that. The mirror I use as well as packages.debian.org
reports a libxft-dev that depends libxft2 (= 2.1.2-6) for all
architectures except hurd-i386.
I also tried "apt-get install libxft-dev", which I wouldn't have
expected to do anything, as it was already installed, but it did try to
install it. However, it didn't work, because overwriting Xft.h with
Xft1.h is not allowed:
Preparing to replace libxft-dev 2.1.2-5 (using
.../libxft-dev_2.1.2-6_powerpc.deb) ...
diversion of /usr/X11R6/include/X11/Xft/Xft.h to
/usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev
Removing `diversion of /usr/X11R6/include/X11/Xft/Xft.h to
/usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev'
dpkg-divert: rename involves overwriting
`/usr/X11R6/include/X11/Xft/Xft.h' with different file
`/usr/X11R6/include/X11/Xft/Xft1.h', not allowed
dpkg: error processing
/var/cache/apt/archives/libxft-dev_2.1.2-6_powerpc.deb (--unpack):
subprocess pre-installation script returned error exit status 2
This appears to be reported already in the bug database for libxft-dev [1].
Installation should work, but some upgrade scenarios appear not to.
You could try installing the deb with:
# dpkg --force-overwrite -i /var/cache/apt/archi...
(it's either --force-overwrite or --force-overwrite-diverted that you need)
Or remove it then reinstall:
# dpkg --force-depends -r libxft-dev
# apt-get install libxft-dev
That should be correct. You might need to check the dpkg manual if it
complains about something else.
[1] http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=libxft-dev
Reply to: