Subject: Re: pkg_install Catch-22
To: Curt Sampson <cjs@cynic.net>
From: Justin Newcomer <liquidice5@gmail.com>
List: tech-pkg
Date: 04/19/2005 01:00:38
did you try a "pkg_delete -ff pkg_install-20050204"

its a pain, but its usually what i end up having to do

I thought a single -f would do it, but then i tried it before i sent
the email, and it didnt, but the -ff did it


On 4/19/05, Curt Sampson <cjs@cynic.net> wrote:
> The usual message:
>=20
>      /usr/pkg/bin/sudo =3D=3D=3D> pkg_install-20050204 is already install=
ed - perhaps an older version?
>      *** If so, you may use either of:
>      ***  - "pkg_delete pkg_install-20050204" and "/usr/bin/make reinstal=
l" 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 r=
e-linking
>      ***    dependencies, risking various problems.
>=20
> So let's try it!
>=20
>      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
>=20
> Hm. Try another suggestion?
>=20
>      cjs $ make replace
>      =3D=3D=3D> Checking for vulnerabilities in pkg_install-20050318
>      =3D=3D=3D> Replacing pkg_install-20050318
>      =3D=3D=3D> 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
>=20
>      Stop.
>=20
> Well, there's one more option:
>=20
>      cjs $ make replace
>      =3D=3D=3D> Checking for vulnerabilities in pkg_install-20050318
>      =3D=3D=3D> Replacing pkg_install-20050318
>      =3D=3D=3D> 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
>=20
> Hm. What do I do? Wipe out /usr/pkg and start from scratch?
>=20
> cjs
> --
> Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974   http://www.NetBSD.org
>       Make up enjoying your city life...produced by BIC CAMERA
>