Subject: Re: pkg_install problem
To: John Klos <john@sixgirls.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 11/01/2004 12:49:16
On Mon, Nov 01, 2004 at 03:45:05AM -0800, John Klos wrote:
> pkg_install is special; how is this supposed to be handled properly?
>
> lain: {16} make update
> ===> do-su-deinstall [pkg_install-20041031] ===> Deinstalling for
> pkg_install
> ===> do-su-deinstall [pkg_install-20041031] ===> Becoming
> root@lain.ziaspace.com to deinstall pkg_install.
> /usr/bin/su Terminal type is xterm-color.
> Running /usr/sbin/pkg_delete -K /var/db/pkg -r pkg_install-20040813
> Package `pkg_install-20040813' is marked as not for deletion
> ===> do-fetch [pkg_install-20041031] ===> Checking for vulnerabilities in
> pkg_install-20041031
> ===> do-su-install [pkg_install-20041031] ===> Installing for
> pkg_install-20041031
> ===> do-su-install [pkg_install-20041031] ===> Becoming
> root@lain.ziaspace.com to install pkg_install.
> /usr/bin/su Terminal type is xterm-color.
> ===> real-su-install [pkg_install-20041031] ===> pkg_install-20040813 is
> already installed - perhaps an older version?
> *** If so, you may use either of:
> *** - "pkg_delete pkg_install-20040813" and "/usr/bin/make reinstall" to
> upgrade properly
> *** - "/usr/bin/make update" to rebuild the package and all of its
> dependencies
> *** - "/usr/bin/make replace" to replace only the package without
> re-linking
> *** dependencies, risking various problems.
> *** Error code 1
Try re-adding the following two lines to the Makefile:
NO_PKG_REGISTER= # defined
NO_PACKAGE= Deinstallation is not permitted
If that's not sufficient, try 'make replace' and hope it works...
Thomas