Solved Samba version selection help

So I want to host a Samba server on my FreeBSD system but I'm having some trouble. The handbook only mentions Samba v416 but I've noticed a v419 has been posted since. My first instinct is to download v419 since it's newer and might have some important security or compatibility updates but, when I tried to install it it ran into some conflicts with my exciting packages.

Code:
root@ketflat1:~ # pkg install samba419
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    ldb28: 2.8.2
    samba419: 4.19.9_4

Number of packages to be installed: 2

The process will require 86 MiB more space.
16 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/2] Fetching ldb28-2.8.2.pkg: 100%  229 KiB 234.5kB/s    00:01  
[2/2] Fetching samba419-4.19.9_4.pkg: 100%   15 MiB  16.1MB/s    00:01  
Checking integrity... done (4 conflicting)
  - ldb28-2.8.2 conflicts with samba416-4.16.11_5 on /usr/local/lib/python3.11/site-packages/_ldb_text.py
  - ldb28-2.8.2 conflicts with samba416-4.16.11_5 on /usr/local/lib/python3.11/site-packages/_ldb_text.py
  - samba419-4.19.9_4 conflicts with samba416-4.16.11_5 on /usr/local/share/man/man8/vfs_fruit.8.gz
  - samba419-4.19.9_4 conflicts with samba416-4.16.11_5 on /usr/local/share/man/man8/vfs_fruit.8.gz
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 7 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
    gvfs: 1.50.2_3
    samba416: 4.16.11_5
    thunar: 4.20.1
    xfce: 4.20
    xfce4-desktop: 4.20.0

New packages to be INSTALLED:
    ldb28: 2.8.2
    samba419: 4.19.9_4

Number of packages to be removed: 5
Number of packages to be installed: 2

The operation will free 12 MiB.

Proceed with this action? [y/N]:

Is it safe to run v416? Is v416 compatible with my up to date Windows 10 system? I get these might be dense questions but I'm quite new to this.

Thanks in advance!

Edit: I've just noticed Samba v416 comes preinstalled. Does that mean I should definitely use v416?
 
The current default version of samba in ports is 4.16 so every other package is build against this version. If you want to use the newer version of samba 4.19 then you need to stop using pkgs and build all software from ports.

Samba 4.16 is compatible with Windows 10.
 
I've just run into this sort of problem
sh:
[stephen@Hunt ~/src/mudlet]$ freebsd-version -kru
14.4-RELEASE-p1
14.4-RELEASE-p1
14.4-RELEASE-p1
[stephen@Hunt ~/src/mudlet]$ pkg query "%n %v" | grep samba
samba-nsupdate 9.16.5_3
samba416 4.16.11_10
[stephen@Hunt ~/src/mudlet]$ sudo pkg install samba423
Password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (8 conflicting)
  - talloc243-2.4.3 [FreeBSD] conflicts with talloc-2.4.1_1 [installed] on /usr/local/include/pytalloc.h
  - talloc243-2.4.3 [FreeBSD] conflicts with talloc-2.4.1_1 [FreeBSD] on /usr/local/include/pytalloc.h
  - tdb1-1.4.14,1 [FreeBSD] conflicts with tdb-1.4.9_1,1 [installed] on /usr/local/bin/tdbbackup
  - tdb1-1.4.14,1 [FreeBSD] conflicts with tdb-1.4.9_1,1 [FreeBSD] on /usr/local/bin/tdbbackup
  - samba423-4.23.6_1 [FreeBSD] conflicts with samba416-4.16.11_10 [installed] on /usr/local/bin/cifsdd
  - samba423-4.23.6_1 [FreeBSD] conflicts with samba416-4.16.11_10 [FreeBSD] on /usr/local/bin/cifsdd
  - tevent017-0.17.1 [FreeBSD] conflicts with tevent-0.15.0_1 [installed] on /usr/local/include/tevent.h
  - tevent017-0.17.1 [FreeBSD] conflicts with tevent-0.15.0_1 [FreeBSD] on /usr/local/include/tevent.h
Checking integrity... done (0 conflicting)
The following 25 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        samba423: 4.23.6_1 [FreeBSD]
        talloc243: 2.4.3 [FreeBSD]
        tdb1: 1.4.14,1 [FreeBSD]
        tevent017: 0.17.1 [FreeBSD]

Installed packages to be REINSTALLED:
        dolphin: 25.12.3
        gvfs: 1.58.4
        kde: 6.6.3.25.12.3
        kde-baseapps: 25.12.3
        kf6-networkmanager-qt: 6.24.0
        kio-extras: 25.12.3
        lightdm-kde-greeter: 6.0.4_1
        plasma6-kinfocenter: 6.6.3
        plasma6-plasma-browser-integration: 6.6.3
        plasma6-plasma-desktop: 6.6.3
        plasma6-plasma-workspace: 6.6.3
        plasma6-powerdevil: 6.6.3
        plasma6-systemsettings: 6.6.3
        samba416: 4.16.11_10
        talloc: 2.4.1_1
        tdb: 1.4.9_1,1
        tevent: 0.15.0_1
        thunar: 4.20.8
        thunar-archive-plugin: 0.6.0
        thunar-media-tags-plugin: 0.6.0

Number of packages to be removed: 20
Number of packages to be installed: 4
Number of packages to be reinstalled: 1

The operation will free 135 MiB.

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

However referring to "Samba Release Planning" it is clear that 4.16 was EOLed a couple of years ago and the current stable release is 4.24.

Is there any way to upgrade without going back to a TUI on a vty and hoping I can put the other packages back? As a side issue I can't do this easily as Ctrl+Alt+Fn-ing out of X11 doesn't leave me with a usable vty thanks to the NVidia drivers?
 
Back
Top