Conflicting packages after upgrade 14.3->15.0

Hello,
After upgrading from FreeBSD 14.3 to 15.0, my installation ran into the following issues:
1. When trying running pkg I always got this error:
Code:
ld-elf.so.1: Shared object "libutil.so.9" not found, required by "pkg"
I managed to solve this considering the advise posted on https://forums.freebsd.org/threads/two-issues-after-upgrading-to-version-15.100592/
by using
Code:
pkg bootstrap -f

2. Then I updated all the packages.
pkg reports that all the packages of 15.0 are up to date.

But although my 14.3 installation didn't have any ports collection until the upgrade (to my knowledge), pkg now refers to some ports and conflicting packages.
Current outputs of pkg update / upgrade:

Code:
$ doas pkg update  
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...
Fetching meta.conf:   0%
FreeBSD repository is up to date.
All repositories are up to date.

Code:
$ doas pkg upgrade
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf:   0%
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...
Fetching meta.conf:   0%
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (477 candidates): 100%    477 B   0.5 k/s    00:01    
Processing candidates (477 candidates): 100%    477 B   0.2 k/s    00:02    
Checking integrity... done (20 conflicting)
  - 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
  - talloc243-2.4.3 [FreeBSD-ports] conflicts with talloc-2.4.1_1 [FreeBSD-ports] on /usr/local/include/pytalloc.h
  - luajit-openresty-2.1.20250826 [FreeBSD-ports] conflicts with luajit-2.1.0.20251208 [installed] on /usr/local/bin/luajit
  - luajit-openresty-2.1.20250826 [FreeBSD-ports] conflicts with luajit-2.1.0.20251208 [FreeBSD] on /usr/local/bin/luajit
  - 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 jpeg-turbo-3.1.2 [FreeBSD-ports] on /usr/local/bin/cjpeg
  - 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
  - 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 talloc243-2.4.3 [FreeBSD-ports] on /usr/local/include/pytalloc.h
  - talloc242-2.4.2_3 [FreeBSD] conflicts with talloc243-2.4.3 [FreeBSD-ports] on /usr/local/include/pytalloc.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
  - talloc242-2.4.2_3 [FreeBSD-ports] conflicts with talloc-2.4.1_1 [FreeBSD-ports] on /usr/local/include/pytalloc.h
  - talloc242-2.4.2_3 [FreeBSD] conflicts with talloc-2.4.1_1 [installed] on /usr/local/include/pytalloc.h
  - 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)
Your packages are up to date.

Code:
$ freebsd-version  
15.0-RELEASE-p1

How to proceed to solve the listed conflicts.
I am not experienced with ports.

Thanks in advance
Bob
 
I guess, on 14, the package repository was named FreeBSD, after upgrading to 15, it is now named FreeBSD-ports but the FreeBSD one however still active, you should disable it.
 
You shouldn't have FreeBSD as a repository name in 15. See what pkg repos tells.
Show the content of /etc/pkg/FreeBSD.conf and anything you may have in /usr/local/etc/pkg/repos/.
Output of pkg repos:
Code:
$ pkg repos
FreeBSD-ports: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-ports-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-base: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0",
    enabled         : no,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkgbase-15"
  }
FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

Content of /etc/pkg/FreeBSD.conf:

Code:
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#   echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#
# Note that the FreeBSD-base repository is disabled by default.
#

FreeBSD-ports: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: no
}

Content of /usr/local/etc/pkg/repos/

Code:
drwxr-xr-x  2 root wheel uarch   3 Dec  1  2024 ./
drwxr-xr-x  3 root wheel uarch   3 Dec  1  2024 ../
-rw-r--r-- 1 root wheel uarch 425 Dec 1 2024 FreeBSD.conf

Content of /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

I don't know if it has some relation with the issue, but note that in release 14, I once modified the line with the URL from default (.../quarterly ?) to .../latest
 
I had this exact issue too. To resolve: -

1. Edit the file /usr/local/etc/pkg/repos/FreeBSD.conf and then change the line "FreeBSD: {" to "FreeBSD-ports: {".
2. pkg upgrade


My URL was set to "latest" too. Now I don't get anymore conflicts with "talloc" etc.


Hope this helps!
 
Eg for quarterly,
freebsd repos
Code:
pkg repos
FreeBSD-ports: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-ports-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-base: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0",
    enabled         : no,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkgbase-15"
 
I had this exact issue too. To resolve: -

1. Edit the file /usr/local/etc/pkg/repos/FreeBSD.conf and then change the line "FreeBSD: {" to "FreeBSD-ports: {".
2. pkg upgrade


My URL was set to "latest" too. Now I don't get anymore conflicts with "talloc" etc.


Hope this helps!
This is precisely what you have to do.
 
I'd just rm(1) the /usr/local/etc/pkg/repos/FreeBSD.conf.
If the Op does that, the system will return to quarterly FreeBSD-ports.
I don't think that is what the Op wants.

By the way, I forgot: if you want to select latest, you have to do that for FreeBSD-ports-kmods also.

/usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD-ports: {
url: "pkg+http://pkg.freebsd.org/${ABI}/latest"
}
FreeBSD-ports-kmods: {
url: "pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR}"
}
 
Back
Top