pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "pkg_delete -f" does not work right



Thanks.

On Wed, Aug 6, 2025 at 4:32 PM ci4ic4 <ci4ic4%proton.me@localhost> wrote:
>
>
>
>
>
>
> Sent with Proton Mail secure email.
>
> On Wednesday, 6 August 2025 at 16:27, Todd Gruhn <tgruhn2%gmail.com@localhost> wrote:
>
> > I re-searched both kdump files.
> >
> > There is only 1 result of "Opening pkgdb failed" in each
> > file. What should I do now??
> >
> > Did I miss something when I changed my pkgsrc files?
> > I found and fixed one with a _NetBSD .sh program.
> >
> > On Tue, Aug 5, 2025 at 8:32 AM Todd Gruhn tgruhn2%gmail.com@localhost wrote:
> >
> > > OH.. I still have that stuff sitting in a couple of files
> > >
> > > On Tue, Aug 5, 2025 at 8:30 AM Todd Gruhn tgruhn2%gmail.com@localhost wrote:
> > >
> > > > Do I need to re-do this stuff?
> > > >
> > > > On Tue, Aug 5, 2025 at 5:07 AM Benny Siegert bsiegert%gmail.com@localhost wrote:
> > > >
> > > > > On Tue, Aug 5, 2025 at 1:08 AM Todd Gruhn tgruhn2%gmail.com@localhost wrote:
> > > > >
> > > > > > I redid the last thing using ktrace / kdump.
> > > > > > I got the same result -- I sent the first
> > > > > > results in a *.txt file.
>
> > > > >
> > > > > The bit that you pasted from the kdump is the printing of the error
> > > > > message itself. Above that, there should be an "open" call to some
> > > > > other path that returns an error. That's the interesting part.
> > > > >
> > > > > --
>
> Just try:
> ...
>
>
> $ ktruss pkg_delete {whatever-package} 2>&1 | grep pkgdb
> pkg_delete: Opening pkgdb failed
>   7595   7595 pkg_delete open("/usr/pkg/pkgdb/pkgdb.byfile.db", 0x202, 0x1a4) Err#13 EACCES
>        "Opening pkgdb failed"
>
> (I am trying to delete a package as a normal user above, so the open does not succeed; if you have some other reason, it should be suggested here.)
>
>
>
> > > > > Benny


Home | Main Index | Thread Index | Old Index