Subject: pkg_install Catch-22
To: None <tech-pkg@netbsd.org>
From: Curt Sampson <cjs@cynic.net>
List: tech-pkg
Date: 04/19/2005 13:53:57
The usual message:
/usr/pkg/bin/sudo ===> pkg_install-20050204 is already installed - perhaps an older version?
*** If so, you may use either of:
*** - "pkg_delete pkg_install-20050204" 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.
So let's try it!
cjs $ sudo pkg_delete pkg_install-20050204
Package `pkg_install-20050204' is marked as not for deletion
cjs $ sudo pkg_delete -f pkg_install-20050204
Package `pkg_install-20050204' is marked as not for deletion
Hm. Try another suggestion?
cjs $ make replace
===> Checking for vulnerabilities in pkg_install-20050318
===> Replacing pkg_install-20050318
===> Becoming root@cjs.tabemo.com to replace pkg_install.
/usr/pkg/bin/sudo *** WARNING - experimental target - data loss may be experienced ***
No /usr/pkg/bin/pkg_tarup binary - can't pkg_tarup pkg_install
*** Error code 1
Stop.
Well, there's one more option:
cjs $ make replace
===> Checking for vulnerabilities in pkg_install-20050318
===> Replacing pkg_install-20050318
===> Becoming root@cjs.tabemo.com to replace pkg_install.
/usr/pkg/bin/sudo *** WARNING - experimental target - data loss may be experienced ***
No /usr/pkg/bin/pkg_tarup binary - can't pkg_tarup pkg_install
*** Error code 1
Hm. What do I do? Wipe out /usr/pkg and start from scratch?
cjs
--
Curt Sampson <cjs@cynic.net> +81 90 7737 2974 http://www.NetBSD.org
Make up enjoying your city life...produced by BIC CAMERA