I wanted to make a slight correction on my blog post regarding my upgrade to 15.0-RELEASE. While the upgrade was completely successful, with the exception of the first attempt on my laptop (all of the systems were already on 14.3p6 prior to starting the upgrade, the freebsd-update fetch install was a "just in case" measure), I did miss one note in the release notes.
Starting with FreeBSD-15.0, the names of the repositories changed. In the past, they were FreeBSD and Freebsd-kmod. In FreeBSD-15.0, the repo names changed to FreeBSD-ports and FreeBSD-ports-kmods (and FreeBSD-base if you are using pkgbase).
When I updated FreeBSD, I missed the part about the repos changing. Since I run the latest repos, I updated the FreeBSD and FreeBSD-kmod repos in /usr/local/etc/pkg/repos/FreeBSD.conf. When I would do pkg updates, I would get about a dozen packages that conflicted as in the following example:
Checking integrity... done (11 conflicting)
- mozjpeg-4.1.5 [FreeBSD-ports] conflicts with jpeg-turbo-3.1.2 [installed] on /usr/local/bin/cjpeg
- mozjpeg-4.1.5 [FreeBSD-ports] conflicts with jpeg-turbo-3.1.2 [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_9 [installed] on /usr/local/include/ebur128.h
- libebur128-1.2.6 [FreeBSD-ports] conflicts with ebur128-0.1.10_9 [FreeBSD] on /usr/local/include/ebur128.h
- ja-libslang-1.4.5.j2_1 [FreeBSD-ports] conflicts with libslang2-2.3.3_2 [installed] on /usr/local/lib/libslang.a
- ja-libslang-1.4.5.j2_1 [FreeBSD-ports] conflicts with libslang2-2.3.3_2 [FreeBSD] on /usr/local/lib/libslang.a
- llvm19-lite-19.1.7_1 [FreeBSD-ports] conflicts with llvm19-19.1.7_1 [installed] on /usr/local/llvm19/lib/clang/19/include/arm_bf16.h
- llvm19-lite-19.1.7_1 [FreeBSD-ports] conflicts with llvm19-19.1.7_1 [FreeBSD] on /usr/local/llvm19/lib/clang/19/include/arm_bf16.h
Turns out I wasn't the only one, since another person started this forum post on the forum.
I added the new repo to my latest repo file, instead of replacing the entries... So save yourself some headaches. If you are running the latest repo, you need to replace the old entries in your /usr/local/etc/pkg/repos/FreeBSD.conf with the following:
FreeBSD-ports: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
enabled: yes,
}
FreeBSD-ports-kmods: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/
kmods_latest_${VERSION_MINOR}"
enabled: yes,
}
Then your next pkg upgrade should clear up all of the conflicts.