User Tools

Site Tools


samba:installing-from-backports

Install Samba Binaries from Backports

Updated for Trixie

Debian does not upgrade to major Samba versions within a stable release. For example, Debian 13 includes and will remain on version 4.22.x. However, the Backports repository provides newer versions — as of Nov 2025, version 4.23 is available.

Check Your Current Version

Run the following to see what's available:

apt-cache policy samba

Example output:

samba:
  Installed: 2:4.22.4+dfsg-1~deb13u1
  Candidate: 2:4.22.4+dfsg-1~deb13u1
  Version table:
 *** 2:4.22.4+dfsg-1~deb13u1 500
        500 http://deb.debian.org/debian trixie/main amd64 Packages
        100 /var/lib/dpkg/status

You can also check the backport builds here:

https://buildd.debian.org/status/package.php?p=samba&suite=trixie-backports

Add the Backports Repository

To access newer versions, add the backports repo:

echo "deb http://deb.debian.org/debian trixie-backports main contrib non-free" >> /etc/apt/sources.list

Then update and re-check available versions:

apt-get update && apt-cache policy samba

Expected output:

samba:
  Installed: 2:4.22.4+dfsg-1~deb13u1
  Candidate: 2:4.22.4+dfsg-1~deb13u1
  Version table:
     2:4.23.3+dfsg-1~bpo13+1 100
        100 http://deb.debian.org/debian trixie-backports/main amd64 Packages
 *** 2:4.22.4+dfsg-1~deb13u1 500
        500 http://deb.debian.org/debian trixie/main amd64 Packages
        100 /var/lib/dpkg/status

Install the Backports Version

Since `apt` prefers stable packages, explicitly specify the backports target:

apt-get install -t trixie-backports samba

This ensures you install the newer version, e.g. 4.23.3.

Continue with Samba Setup

Once installed, you can proceed with:


Caponato's Samba notebook. Start here or go to the Main menu.

samba/installing-from-backports.txt · Last modified: by caponato