Solved pkg installing and uninstalling the same packages over and over again

Hello,

Since successfully upgrading to FreeBSD-15.0-RELEASE, I keep having this minor annoyance:
Whenever I run
sh:
pkg update && pkg upgrade
, this same scenario happens:

Code:
$ doas pkg upgrade
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (416 candidates): 100%
Processing candidates (416 candidates): 100%
Checking integrity... done (19 conflicting)
  - mozjpeg-4.1.5 [FreeBSD-ports] conflicts with jpeg-turbo-3.1.3 [installed] on /usr/local/bin/cjpeg
  - mozjpeg-4.1.5 [FreeBSD-ports] conflicts with jpeg-turbo-3.1.3 [FreeBSD] on /usr/local/bin/cjpeg
  - mozjpeg-4.1.5 [FreeBSD-ports] conflicts with libjpeg-turbo-3.1.3 [installed] on /usr/local/bin/tjbench
  - svt-av1-hdr-3.1.3 [FreeBSD-ports] conflicts with svt-av1-3.1.2 [installed] on /usr/local/bin/SvtAv1EncApp
  - svt-av1-hdr-3.1.3 [FreeBSD-ports] conflicts with svt-av1-3.1.2 [FreeBSD] on /usr/local/bin/SvtAv1EncApp
  - svt-av1-hdr-3.1.3 [FreeBSD-ports] conflicts with svt-av1-3.1.2 [FreeBSD-ports] on /usr/local/bin/SvtAv1EncApp
  - tevent016-0.16.1_3 [FreeBSD-ports] conflicts with tevent-0.15.0_1 [installed] on /usr/local/include/tevent.h
  - tevent016-0.16.1_3 [FreeBSD-ports] conflicts with tevent-0.15.0_1 [FreeBSD] on /usr/local/include/tevent.h
  - libebur128-1.2.6 [FreeBSD-ports] conflicts with ebur128-0.1.10_10 [installed] on /usr/local/include/ebur128.h
  - libebur128-1.2.6 [FreeBSD-ports] conflicts with ebur128-0.1.10_10 [FreeBSD] on /usr/local/include/ebur128.h
  - talloc242-2.4.2_3 [FreeBSD-ports] conflicts with talloc-2.4.1_1 [installed] on /usr/local/include/pytalloc.h
  - talloc242-2.4.2_3 [FreeBSD-ports] conflicts with talloc-2.4.1_1 [FreeBSD] on /usr/local/include/pytalloc.h
  - talloc243-2.4.3 [FreeBSD-ports] conflicts with talloc242-2.4.2_3 [FreeBSD-ports] on /usr/local/include/pytalloc.h
  - talloc243-2.4.3 [FreeBSD-ports] conflicts with talloc-2.4.1_1 [installed] on /usr/local/include/pytalloc.h
  - talloc243-2.4.3 [FreeBSD-ports] conflicts with talloc-2.4.1_1 [FreeBSD] on /usr/local/include/pytalloc.h
  - tdb1410-1.4.10_3,1 [FreeBSD-ports] conflicts with tdb-1.4.9_1,1 [installed] on /usr/local/bin/tdbbackup
  - tdb1410-1.4.10_3,1 [FreeBSD-ports] conflicts with tdb-1.4.9_1,1 [FreeBSD] on /usr/local/bin/tdbbackup
  - fam-2.6.10_10 [FreeBSD-ports] conflicts with gamin-0.1.10_10 [installed] on /usr/local/include/fam.h
  - fam-2.6.10_10 [FreeBSD-ports] conflicts with gamin-0.1.10_10 [FreeBSD] on /usr/local/include/fam.h
Checking integrity... done (0 conflicting)
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    libcroco: 0.6.13_3 [FreeBSD-ports]
    libsrtp2: 2.7.0 [FreeBSD-ports]
    localedata: 5.4_2 [FreeBSD-ports]
    pcre: 8.45_4 [FreeBSD-ports]
    portaudio: 19.6.0_7,1 [FreeBSD-ports]

Number of packages to be installed: 5

The process will require 10 MiB more space.

Proceed with this action? [y/N]: y

These 5 packages always want to get installed by freebsd upgrade. I may choose to install them, they install fine. Yet, whenever I run pkg autoremove, they get immediately removed.

Code:
[I] ~ $ doas pkg autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 5 packages:

Installed packages to be REMOVED:
    libcroco: 0.6.13_3
    libsrtp2: 2.7.0
    localedata: 5.4_2
    pcre: 8.45_4
    portaudio: 19.6.0_7,1

Number of packages to be removed: 5

The operation will free 10 MiB.

Proceed with deinstalling packages? [y/N]:

Again, if I remove them, they will want to get installed immediately next time I run freebsd upgrade. How do I resolve this? What may be the reason for this to happen? Not a single one of those packages was installed manually, they were pulled in as some kind of dependency to something.
 
Ok, now by repairing the conflicts according to https://forums.freebsd.org/threads/conflicting-packages-after-upgrade-14-3-15-0.101203/
I'm down to one package.

Code:
root@asia:~ # pkg autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Installed packages to be REMOVED:
    localedata: 5.4_2

Number of packages to be removed: 1

The operation will free 1 MiB.

Proceed with deinstalling packages? [y/N]: Y
[1/1] Deinstalling localedata-5.4_2...
[1/1] Deleting files for localedata-5.4_2: 100%
root@asia:~ # pkg autoremove
Checking integrity... done (0 conflicting)
Nothing to do.
root@asia:~ # pkg upgrade
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (50 candidates): 100%
Processing candidates (50 candidates): 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    localedata: 5.4_2 [FreeBSD-ports]

Number of packages to be installed: 1

The process will require 1 MiB more space.

Proceed with this action? [y/N]:
 
Ok, now it solved itself. The package no longer installs and uninstalls perpetually. No idea what caused it and no idea what solved it. The package was unistalled and it did not demand to be installed with pkg upgrade anymore. This was definitely related to the upgrade to 15.0-RELEASE though.
 
Back
Top