Date: Mon, 5 Apr 2021 23:38:09 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: freebsd-questions@freebsd.org Subject: Re: Yet another (fatal?) pkg upgrade error Message-ID: <0fa1a3de-8612-57eb-2639-e78a4c10f3ba@holgerdanske.com> In-Reply-To: <2517.1617677444@segfault.tristatelogic.com> References: <2517.1617677444@segfault.tristatelogic.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0fa1a3de-8612-57eb-2639-e78a4c10f3ba>