From nobody Wed Feb 12 23:34:28 2025 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtZQw4TDbz5nWK9 for ; Wed, 12 Feb 2025 23:34:32 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YtZQw3YR5z3Pc4; Wed, 12 Feb 2025 23:34:32 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739403272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xvO/7MDj4ml3aepMAEnL1IBJa6QLu9yQZvdtvJDLywI=; b=Xv7UBum+jvw9uTjOgabArJGNku2W0KmPUxJDl38Zo6gZhjqo8l5XM57DuNUBaFQgdnSBto bs3A2TIdQpGZ2SwUVUID937dA9A0Lfnfq8B2FmryJCJUOPOGMPX34HaRlbTpfF+y8a6RML yKXBrMnTi+3eSRIyWdtgRwZ7fhjftdPtnsbWLQqrjlo0DFWlN34kqHAwHxzcd8i8pk2hNU 9blzzIWN7xMm48A/rxwPrjtqYSMhYMpVgHXAPkyRd44niAC4hBK1Qkzoq7kL52dcpOmdRO SZ369DWB1TXUQk0T59Vuf21HpFDW8D8IcrjY0kC791aV2lv0MCB6vj73ce0r8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739403272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xvO/7MDj4ml3aepMAEnL1IBJa6QLu9yQZvdtvJDLywI=; b=ZNNBWjoLVzw+I371Z4K0r+l/S2OBNedvRGdYe/Y+c5o8P6xea1rdgmWRXQdUJZPxiEzsMc Qek7lCRpZ2G2Q4Kgaevs3JAEFS3UaqRi3QXAdtRrPv4ts6WECqGpji6bUsNZ4NjQvVRCW5 1AGLBTOnj1HmNE85a/BxKPlU/vC0Wn/qLQpWZFPUAYtUbDGLARqBxo8FSTFPE9Nf1klfem K9r4o84K2Bua7hDeJS1uOuEpYHoTow1K9Vry9wQEugKxdnB7dVwUwGg+7C/et9xaeUdlhr xji25jluF2JZuLeR8i6GNemY8IPTiMQNucj0n/O8hQ6o+XFhAYmURs4zP5z7Zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739403272; a=rsa-sha256; cv=none; b=TkQUaDyVtIP/kfq1Y/q/N/doL+ZWZQrXVZUoEfbHuyT6ZB85zE36+dWMu2Z7eP7chVolnK uvJsg8wADVj+vr8MQwKpN9hN8wuW+derrlysnqqiZdtHEFeBlFGQ9Gm+61taizgdf53yCF ml0toV1f5hgUv/v71LyJEuMbrjMTPGdmqbi/4cmmRmaoR638XrR1WTN6X/25xv50SeHkV7 pzapRaun8cRaTbGWddFPhg7CFBKHz2yDa8SkWo5du87bpPde3PEKWrzN+VHIVr9tM+2DNt lQpnSdmgv1sMExQ3Fdzln1zGxLs0RS9/pnpGjBaKfcEX6sa0q5sCwTfB3cXnrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: grembo/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YtZQw01xMz12Sg; Wed, 12 Feb 2025 23:34:31 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id fa8dda43 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Feb 2025 23:34:29 +0000 (UTC) Content-Type: multipart/alternative; boundary=Apple-Mail-429EF507-1D4A-4D39-8468-ED9B1E7218FB Content-Transfer-Encoding: 7bit List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (1.0) Subject: Re: pkg upgrade foot shooting From: Michael Gmelin In-Reply-To: Date: Thu, 13 Feb 2025 00:34:28 +0100 Cc: FreeBSD Ports ML Message-Id: References: To: Kevin Oberman X-Mailer: iPhone Mail (20H350) --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 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

On 13. Feb 2025, at 00:29, Kevin Oberman <rkoberman@gmail.com> wrote:=

=EF=BB= =BF
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.

Any pkg command gets:
The package management tool is not yet installed on your system.<= br>Do you want to fetch and install it now? [y/N]:
but t= rying to do so gets:  the most recent version of pkg-2.0.5 is already i= nstalled

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.

Any clue as to how t= o get pkg reinstalled would be much appreciated.


-m
<= br>
= --Apple-Mail-429EF507-1D4A-4D39-8468-ED9B1E7218FB--