.. Reminder for header structure:        
  Parts (H1)          : #################### with overline
  Chapters (H2)       : ******************** with overline
  Sections (H3)       : ====================
  Subsections (H4)    : --------------------
  Subsubsections (H5) : ^^^^^^^^^^^^^^^^^^^^
  Paragraphs (H6)     : """""""""""""""""""""

.. |date| date::

.. meta::
  :description: Upgrading a Samba domain controller from Debian12 Bookworm to Debian13 Trixie
  :keywords: upgrade, Debian, Bookworm, Trixie, documentation

.. _server_upgrade_debian12_to_debian13:

###############################################################################
Upgrading a Samba domain controller from Debian12 Bookworm to Debian13 Trixie
###############################################################################

* Update repositories configuration to replace bookworm with trixie :

  .. code-block:: bash

   sed -i 's/bookworm/trixie/g' /etc/apt/sources.list /etc/apt/sources.list.d/*

* Update the host:

  .. code-block:: bash

    apt-get update
    apt-get dist-upgrade

.. hint::
   
   If you have an error during the dist-upgrade, you can use the command "apt --fix-broken install" to fix it.

* Restart the host:

  .. code-block:: bash

    reboot

* Check the version of the Samba server:

  .. code-block:: bash

    samba-tool --version
