coreutils
Robert Millan
rmh at aybabtu.com
Thu Dec 8 22:21:12 UTC 2005
On Thu, Dec 08, 2005 at 03:49:27AM -0500, waldeck at hk2.uwaterloo.ca wrote:
> Hi,
>
> since two weeks it is NOT possible to update coreutils:
>
> coreutils
> Get:1 http://kfreebsd-gnu.debian.net unstable/main coreutils 5.93-5 [2854kB]
> Fetched 2854kB in 3s (922kB/s)
> (Reading database ... 7713 files and directories currently installed.)
> Preparing to replace coreutils 5.2.1-2.1+kbsd (using .../coreutils_5.93-5_kfreebsd-i386.deb) ...
> Removing `local diversion of /usr/share/man/man1/md5sum.textutils.1.gz to /usr/share/man/man1/md5sum.1.gz'
> dpkg-divert: rename involves overwriting `/usr/share/man/man1/md5sum.textutils.1.gz' with
> different file `/usr/share/man/man1/md5sum.1.gz', not allowed
> dpkg: error processing /var/cache/apt/archives/coreutils_5.93-5_kfreebsd-i386.deb (--unpack):
> subprocess pre-installation script returned error exit status 2
> Errors were encountered while processing:
> /var/cache/apt/archives/coreutils_5.93-5_kfreebsd-i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
coreutils moved the real files as "md5sum" and placed symlinks in the
"md5sum.textutils" locations, while setting a Replaces: on dpkg.
In order for this to work, it must remove the diverts in preinst:
# work around stupid dpkg diversion of md5sum
dpkg-divert --remove /usr/share/man/man1/md5sum.textutils.1.gz
dpkg-divert --remove /usr/bin/md5sum.textutils
It seems your system _does_ have a divert set, but maybe something was changed
after that. I can't figure out what ..
Which version of dpkg are you using? Have you ever upgraded or re-installed
dpkg on this system? (current version is 1.13.11+kfreebsd which dates from 28
Aug 2005)
Is /usr/share/man/man1/md5sum.textutils.1.gz a symlink?
--
Robert Millan
More information about the Glibc-bsd-devel
mailing list