From owner-freebsd-questions@freebsd.org Tue Apr 6 06:38:26 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 330895D5243 for ; Tue, 6 Apr 2021 06:38:26 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FDyXK2F4yz4vj8 for ; Tue, 6 Apr 2021 06:38:24 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Mon, 5 Apr 2021 23:38:10 -0700 Subject: Re: Yet another (fatal?) pkg upgrade error To: freebsd-questions@freebsd.org References: <2517.1617677444@segfault.tristatelogic.com> From: David Christensen Message-ID: <0fa1a3de-8612-57eb-2639-e78a4c10f3ba@holgerdanske.com> Date: Mon, 5 Apr 2021 23:38:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <2517.1617677444@segfault.tristatelogic.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FDyXK2F4yz4vj8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 184.105.128.27) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-2.08 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[184.105.128.27:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[184.105.128.27:from:127.0.2.255]; ARC_NA(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.984]; DMARC_NA(0.00)[holgerdanske.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; SUBJECT_HAS_QUESTION(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 06:38:26 -0000 On 4/5/21 7:50 PM, Ronald F. Guilmette wrote: > I'm trying to work out what I can do to get around the problem(s) described > in my prior message, and now it appears that even the "pkg info" command is > seriously malfunctioning for some unknown reason, making the resolution of > that prior problem all that much harder. > > Specifically, in response to the following command: > > pkg info --file /usr/local/lib/libglib-2.0.so.0 > > I get only the following rather unhelpfuland uninformative error message: > > pkg: archive_read_open_fd: Unrecognized archive format > > What is the solution for this? It appears that some data base file > somewhere (where?) is most probably corrupted. (I don't believe that > corruption was in any way my fault, but I am altogether less interested > in assigning blame at the moment than I am in just fixing the problem(s).) > > So, what data base file, specifically, is corrupted and how many I recreate > or regerenate it again into a "good" state? > > And why doesn't the above error message provide me with even the slightest > clue as to what file, exactly, has gone goofy? Would it have been all that > hard to include the pathname, you know, just as a small courtesy for exactly > such situations? I believe 'pkg info --file pkg-file' expects 'pkg-file' to be a FreeBSD package file (?). Are you trying to figure out what package provides /usr/local/lib/libglib-2.0.so.0 ? If so, see pkg-which(8): 2021-04-05 23:31:56 dpchrist@f3 ~ $ freebsd-version; uname -a 12.2-RELEASE-p5 FreeBSD f3.tracy.holgerdanske.com 12.2-RELEASE-p4 FreeBSD 12.2-RELEASE-p4 GENERIC amd64 2021-04-05 23:32:15 dpchrist@f3 ~ $ pkg which /usr/local/lib/libglib-2.0.so.0 /usr/local/lib/libglib-2.0.so.0 was installed by package glib-2.66.7,1 David