pkgsrc-Users archive

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

Re: pkg_delete fails



OK I made all or the files that were mentioned.

BUT -- I must now make pkgdb.refcound .
I never had pkgdb.refcound; how do I make pkgdb.refcound???

On Mon, Jul 21, 2025 at 3:44 PM Todd Gruhn <tgruhn2%gmail.com@localhost> wrote:
>
> WOW --  I read https://pkgsrc.org/pkgdb-change , I am confused.
>
> Try reading tomorrow morning ...
>
> On Mon, Jul 21, 2025 at 7:29 AM Todd Gruhn <tgruhn2%gmail.com@localhost> wrote:
> >
> > Thanks -- this is the first time that I was this.
> > SO, I am totally confused
> >
> > On Mon, Jul 21, 2025 at 3:31 AM ci4ic4 <ci4ic4%proton.me@localhost> wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Sent with Proton Mail secure email.
> > >
> > > On Monday, 21 July 2025 at 04:11, Todd Gruhn <tgruhn2%gmail.com@localhost> wrote:
> > >
> > > > I just did this again (in emacs):
> > > >
> > > > gandalf# pwd
> > > > pwd
> > > > /usr/pkgsrc/games/doomlegacy
> > > > gandalf# pkg_delete -f doomlegacy
> > > > pkg_delete -f doomlegacy
> > > > pkg_delete: Opening pkgdb failed
> > > > gandalf#
> > >
> > >
> > > OK, you may have been hit by https://pkgsrc.org/pkgdb-change/ - check which pkg_{add,info,delete} you are actually executing - you surely have /usr/sbin/pkg_* as part of the system, but you may also have installed pkgtools/pkg_install at some stage, and, depending on its age, one of them may be used the wrong package database. You can find which one you are trying to open using
> > > ..
> > > # ktruss pkg_info go125 2>&1 | grep pkgdb | head -1
> > >   1847   1847 pkg_info __stat50("/usr/pkg/pkgdb", 0x7f7fff8e3100) = 0
> > > ..
> > >
> > > for instance.
> > >
> > > >
> > > > gandalf#
> > > >
> > > > gandalf# make
> > > > make
> > > > gandalf# make install
> > > > make install
> > > > => Bootstrap dependency digest>=20211023: found digest-20220214
> > > >
> > > > ===> Installing binary package of doomlegacy-1.48.14nb1
> > > >
> > > > pkg_add: package `doomlegacy-1.48.14nb1' already recorded as installed gandalf# pkg_info doomlecagy-1.48.12nb1 pkg_info doomlecagy-1.48.12nb1 pkg_info: can't find package` doomlecagy-1.48.12nb1'
> > > > gandalf# pkg_info doomlegacy-1.48.14nb1
> > > > pkg_info doomlegacy-1.48.14nb1
> > > > pkg_info: can't find package `doomlegacy-1.48.14nb1'
> > > > gandalf#
> > > >
> > > >
> > > > I cant see the prob -- I was doing this as root.
> > > > I cannot see the prob.
> > > >
> > > > On Sun, Jul 20, 2025 at 2:41 PM ci4ic4 ci4ic4%proton.me@localhost wrote:
> > > >
> > > > > Sent with Proton Mail secure email.
> > > > >
> > > > > On Sunday, 20 July 2025 at 19:00, Todd Gruhn tgruhn2%gmail.com@localhost wrote:
> > > > >
> > > > > > from pkg_delete gives me this:
> > > > > >
> > > > > > pkg_delete: Opening pkgdb failed
> > > > >
> > > > > you are not running pkg_delete as root:
> > > > >
> > > > > ....
> > > > >
> > > > > $ id
> > > > > uid=1000(xci) gid=100(users) groups=100(users),0(wheel)
> > > > > $ pkg_delete go120
> > > > > pkg_delete: Opening pkgdb failed
> > > > > $ sudo sh
> > > > > # pkg_delete go120
> > > > > ...
> > > > >
> > > > > > Explain; and how to I fix it?
> > > > > >
> > > > > > There is a pkg* for this???


Home | Main Index | Thread Index | Old Index