Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2025 00:34:28 +0100
From:      Michael Gmelin <grembo@freebsd.org>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: pkg upgrade foot shooting
Message-ID:  <A9903709-0059-4465-8865-27477FE864D8@freebsd.org>
In-Reply-To: <CAN6yY1vr4T4r9dLMt8-JH-yGSyUz%2B1-VJjXUKCJaU7T76K%2BUGg@mail.gmail.com>
References:  <CAN6yY1vr4T4r9dLMt8-JH-yGSyUz%2B1-VJjXUKCJaU7T76K%2BUGg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-429EF507-1D4A-4D39-8468-ED9B1E7218FB
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable



> On 13. Feb 2025, at 00:29, Kevin Oberman <rkoberman@gmail.com> wrote:
>=20
> =EF=BB=BF
> In my upgrade of pkg this morning, I shot myself in the foot. I inadverten=
tly killed the update while it was installing the new version, leaving my pk=
g database all messed up, or at least the entry for pkg is. I have a clean b=
ackup of pkg.sql.xz, but I can't figure out how to restore it.
>=20
> Any pkg command gets:
> The package management tool is not yet installed on your system.
> Do you want to fetch and install it now? [y/N]:
> but trying to do so gets:  the most recent version of pkg-2.0.5 is already=
 installed
>=20
> Any idea of what I can do to get a working pkg? I'd like to just blow away=
 the current database and then bootstrap pkg. I'm just not sure of what to d=
elete. I know there is a sqlite db somewhere. I've rummaged around in it in h=
te past, but it's been years and I can't seem to find it.
>=20
> Any clue as to how to get pkg reinstalled would be much appreciated.

Does this help? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269810#c=
4

-m


--Apple-Mail-429EF507-1D4A-4D39-8468-ED9B1E7218FB
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr"><br=
></div><div dir=3D"ltr"><br><div dir=3D"ltr"></div><blockquote type=3D"cite"=
>On 13. Feb 2025, at 00:29, Kevin Oberman &lt;rkoberman@gmail.com&gt; wrote:=
<br><br></blockquote></div><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB=
=BF<div dir=3D"ltr"><div><div style=3D"font-family:tahoma,sans-serif;font-si=
ze:small" class=3D"gmail_default">In my upgrade of pkg this morning, I shot m=
yself in the foot. I inadvertently killed the update while it was installing=
 the new version, leaving my pkg database all messed up, or at least the ent=
ry for pkg is. I have a clean backup of pkg.sql.xz, but I can't figure out h=
ow to restore it.</div><div style=3D"font-family:tahoma,sans-serif;font-size=
:small" class=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,s=
ans-serif;font-size:small" class=3D"gmail_default">Any pkg command gets:</di=
v><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmai=
l_default">The package management tool is not yet installed on your system.<=
br>Do you want to fetch and install it now? [y/N]:</div></div><div style=3D"=
font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">but t=
rying to do so gets:&nbsp; the most recent version of pkg-2.0.5 is already i=
nstalled</div><div style=3D"font-family:tahoma,sans-serif;font-size:small" c=
lass=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-serif=
;font-size:small" class=3D"gmail_default">Any idea of what I can do to get a=
 working pkg? I'd like to just blow away the current database and then boots=
trap pkg. I'm just not sure of what to delete. I know there is a sqlite db s=
omewhere. I've rummaged around in it in hte past, but it's been years and I c=
an't seem to find it.</div><div><br></div><div><div style=3D"font-family:tah=
oma,sans-serif;font-size:small" class=3D"gmail_default">Any clue as to how t=
o get pkg reinstalled would be much appreciated.</div></div></div>
</div></blockquote><br><div>Does this help?&nbsp;<a href=3D"https://bugs.fre=
ebsd.org/bugzilla/show_bug.cgi?id=3D269810#c4">https://bugs.freebsd.org/bugz=
illa/show_bug.cgi?id=3D269810#c4</a></div><div><br></div><div>-m</div><div><=
br></div></body></html>=

--Apple-Mail-429EF507-1D4A-4D39-8468-ED9B1E7218FB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A9903709-0059-4465-8865-27477FE864D8>