Conflict hell after freebsd-update

Hello there. I am writing because I did a cock-up and I have no idea how to untangle it:

I upgraded from 14.2 to 15 a few days ago, it screwed up and managed to fix it with an pkg update -f
-Then I decided to try fixing up my Bluetooth, which It never worked on any FreeBSD I installed, and stupidly followed this guide: https://www.siberoloji.com/how-to-set-up-bluetooth-support-on-freebsd-operating-system/ (I know, there is no bluez on freeBSD, so this is fake/guy must have been drunk but at the time I was desperate, as I have been trying to have Bluetooth working for the last 4 months)

In one of the steps, it recommends making an upgrade again, so a freebsd-fetch and freebsd-update, it actually wanted to move into FREEBSD-15-RELEASE-p1.

but now, when I try to do a pkg update / pkg upgrade I get this

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

I tried locking the packages, manually removing the conflicting files, and removing some of the packages (which I refused, because some of them will autoremove 3/4 of my system and I couldn't find a way of not pulling the dependencies with them).

How I solve this mess? Worse case scenario I could reinstall, as I want to upgrade to a bigger disk, but for now I am stuck on holidays far away from the new disk and I would like this system to work, plus I don't want to nuke my future install.

Any ideas? Thanks in advance!
 
Show us the complete output of pkg upgrade. The output may exceed the maximum number of characters allowed by the forum editor, if that is the case, redirect into a file, attach file to your post.


pkg upgrade -n > pkgupg.txt
 
I upgraded from 14.2 to 15 a few days ago, it screwed up and managed to fix it with an pkg update -f
nothing was screwed up - you are supposed to upgrade all packages after a major release upgrade.
Did you follow the upgrade instructions from the handbook and checked the release notes?

Why follow some AI-generatet garbage if you already identified at the *second* step that it is hallucinated BS as usual?
Just follow the instructions in the handbook, this works for all supported devices as mentioned in the very first paragraph (34.7.1) in that section. If your device isn't supported (you checked the hardware notes?) no 'how to' from some random collection of AI-slop will change that...
 
Error log wasn't too big, actually, but here it is, it is good idea

About following the AI-slop... I guess impatience? Yes, I followed many official guides and the manual. Device is supported and detected, just never handshakes. It might be a hardware issue, but I know the think works on Linux (just that I decided to make my main computer FreeBSD, not having headphones is annoying, but not a deal breaker). In any case, that is an issue for another day. I never had any luck using Bluetooth on BSD, to the point that in the past I used dongles technically on the supported and working list but still, I never had any Bluetooth device working on any FreeBSD.

I did follow the instructions to upgrade, after rebooting with the new kernel is when I had the issues. I suspect that I had some port installed package which I didn't remember installing.
 

Attachments

I did follow the instructions to upgrade, after rebooting with the new kernel is when I had the issues. I suspect that I had some port installed package which I didn't remember installing.
How exactly did you upgrade?
This sounds as if you stopped halfway through the OS upgrade and just ran pkg upgrade
 
None of the issues you have with the packages had anything to do with the OS update (or upgrade).

I would suggest just removing one or more of the conflicting packages, and make a note if it wants to remove something you wanted to keep. Then make sure to upgrade whatever is left, remove old dependencies (pkg-autoremove(8)), then see if you can reinstall the things you still want to have that got removed with the clean up.

Or just start over; pkg delete -a and reinstall the things you need.
 
in this case I did
freebsd-update fetch && freebsd-update install
pkg update
pkg upgrade
If you still have issue my suggestion is.
1- Replace the old packages with new one .. --> pkg delete jpeg-turbo && pkg install mozjpeg
2- Ignore the conflicting packages?
3- Use -f flag --> pkg upgrade -f
4- Try to fix :
pkg check -Ba
pkg autoremove
pkg update -f
pkg upgrade
 
Back
Top