On 11/22/07, Pieter Verberne <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying to install gnome-doc-utils :
>
> $ sudo pkg_add gnome-doc-utils
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>         LC_ALL = (unset),
>         LC_CTYPE = "en_US.UTF-8",
>         LANG = (unset)
>     are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> Collision: the following files already exist
>         /usr/local/bin/gnome-doc-prepare (same md5)
>         /usr/local/bin/gnome-doc-tool (same md5)
>         /usr/local/bin/xml2po (same md5)
>         /usr/local/lib/pkgconfig/gnome-doc-utils.pc (same md5)
>         /usr/local/lib/pkgconfig/xml2po.pc (same md5)
>         /usr/local/man/man1/xml2po.1 (same md5)
>         /usr/local/share/aclocal/gnome-doc-utils.m4 (same md5)
>         /usr/local/share/xml2po/xhtml.pyc (same md5)
>         etc, etc, etc...
> /usr/sbin/pkg_add: fatal issues in  installing gnome-doc-utils-0.10.3p2
> $
>
> The Perl error just appeared today but it is no big deal for me right
> now. My problem is that I can't find any way in pkg_add(1) for dealing
> with this. There are just to many collision files to remove manually and
> I don't know how te make a script wich automaticly removes all these files.
>
> How should I handle this?
>

First, how did this happen? Is the package system out of sync, or did
you have a failed install?
Second, to deal with it: make a script to automatically remove the
files. Just pipe the output to a file, go in with your favourite
editor and delete everything before and after the filelists, and then
replace " (same md5)" with "", and then for file in `cat files`; do rm
file; done
Or just rm every file it lists by hand?

Reply via email to