Subject: Re: broken package database?
To: Frank Knappe <knappe@tu-harburg.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 09/09/2002 23:57:28
On Mon, Sep 09, 2002 at 11:23:38PM +0200, Frank Knappe wrote:
> 
> 			Hallo!
> 
> I'm afraid that my pkg system has a huge problem.
> 
> root@trinity# make install
> ===> Installing for kdebase-2.2.2nb1
> ===>  kdebase-2.2.2nb1 is already installed - perhaps an older version?
> *** If so, you may wish to ``pkg_delete kdebase-2.2.2nb1'' and install
> *** this package again by ``make reinstall'' to upgrade it properly,
> *** or use ``make update'' to upgrade it and all of its dependencies.
> *** If you really wish to overwrite the old package of kdebase-2.2.2nb1
> *** without deleting it first, set the variable "FORCE_PKG_REGISTER"
> *** in your environment or the "make install" command line.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> 
> root@trinity# pkg_delete kdebase-2.2.2nb1
> pkg_delete: package 'kdebase-2.2.2nb1' doesn't have a prefix

OK, the directory exists but is empty. Just do:
rm -rf /var/db/pkg/kdebase-2.2.2nb1

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--