Hide navigation sidebar
Hide table of contents sidebar
Skip to content
SAMBA 4.22
Back to top
View this page
Toggle table of contents sidebar

# Upgrading a Samba domain controller from Debian9 Stretch to Debian10 Buster

- Install Debian10 (physical or virtual machine) in a minimal way without GUI and only with SSH service, following this documentation.

Attention

If you encounter a problem when updating the repository and if you get the errors `gpg: no valid OpenPGP data found` or `wget: unable to resolve host address "mydomain.lan"`, you will need to check your `/etc/resolv.conf` file and then add the following lines at the end of `/root/.bashrc`:

    export http_proxy="http://proxy:3128";
    export https_proxy="http://proxy:3128";

- Update the TIS Samba repositories:

      wget -O - http://samba.tranquil.it/tissamba-pubkey.gpg  | apt-key add
      echo "deb http://samba.tranquil.it/debian/samba-4.11 buster main" > /etc/apt/sources.list.d/tissamba.list

- Check the Debian source file `/etc/apt/sources.list`:

      deb http://ftp.fr.debian.org/debian/ buster main contrib non-free
      deb-src http://ftp.fr.debian.org/debian/ buster main contrib non-free

      deb http://security.debian.org/debian-security buster/updates main contrib non-free
      deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

      deb http://ftp.fr.debian.org/debian/ buster-updates main contrib non-free
      deb-src http://ftp.fr.debian.org/debian/ buster-updates main contrib non-free

- Check `/etc/apt/sources.list.d/` then select tissamba.list and change the version of Samba if necessary:

      deb http://mydomain.lan/debian/samba-4.11 buster main

- Update the host:

      apt-get update
      apt-get upgrade
      apt-get dist-upgrade

- Restart the host:

      reboot

- Check the version of the Samba server:

      samba-tool --version