Solved How to get rid of pkg's insistence on false dependencies?

Recently, for the first time ever, I ran pkg check -d (and the other pkg check commands too). Ever since then, whenever I want to install a new package, pkg insists on wanting to install gnatcross-sysroot-aarch64 and a few other packages. I know for sure that I don't need this package.
Is there a way to remove the results of pkg check -d? Where are they stored? I'd like to be able to install packages again...

In advance, thanks!

I think I understand why pkg check -d is doing this, though it's incorrect. It's looking for a specific filename for some libraries, and not finding it, thinks they don't exist, even though they do exist.
Code:
root@nyann:~ # pkg check -d
Checking all packages: 100%
llvm10 is missing a required shared library: libcxxrt.so.1
llvm10 is missing a required shared library: libc.so.7
llvm10 is missing a required shared library: libthr.so.3
llvm10 is missing a required shared library: libm.so.5
llvm10 is missing a required shared library: libncurses.so.8
mesa-libs is missing a required shared library: libGLdispatch.so.0
mesa-libs is missing a required shared library: libGLX.so.0
p11-kit has a missing dependency: bash-completion

>>> Missing package dependencies were detected.
>>> Found 1 issue(s) in the package database.

The following packages will be installed:

New packages to be INSTALLED:
        bash: 5.1.4
        bash-completion: 2.11,2
        gnatcross-sysroot-aarch64: 1_1
        nvidia-driver: 440.100_1

Number of packages to be installed: 4

The process will require 334 MiB more space.
58 MiB to be downloaded.

>>> Try to fix the missing dependencies? [y/N]: n
>>> Summary of actions performed:

bash-completion dependency failed to be fixed

>>> There are still missing dependencies.
>>> Try fixing them manually.

>>> Also make sure to check 'pkg updating' for known issues.
root@nyann:~ # locate libm.so
/lib/libm.so.5
/usr/lib/debug/lib/libm.so.5.debug
/usr/lib/debug/usr/lib32/libm.so.5.debug
/usr/lib/libm.so
/usr/lib32/libm.so
/usr/lib32/libm.so.5

Also, even if I use -M as in pkg install -M schismtracker I can't install a new package without pkg insisting on gnatcross-sysroot-aarch64.
 
Code:
llvm10 is missing a required shared library: libncurses.so.8
Smoking gun. This library was part of FreeBSD 12. FreeBSD 13 has libncurses.so.9 instead.

Looks like you upgraded, but didn't fully upgrade your packages, so some are still from the repo for FreeBSD 12.

Fix it with pkg upgrade -f.
 
I'm on 12.2, not 13:
Code:
$ uname -a
FreeBSD nyann.tanasinn.mochi 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 GENERIC  amd64
$ freebsd-version -kru
12.2-RELEASE-p6
12.2-RELEASE-p6
12.2-RELEASE-p6

But pkg upgrade -f worked! My problem is solved.
Thanks! :D
 
Ok, that's pretty strange then, I don't think a patchlevel would ever change a library version in base? :-/

But then, upgrade -f can also solve strange confusions sometimes ;)
 
Back
Top