[SOLVED] Updating Debian 11 to 12 SAMBA AD
Published: Dec 3, 2025 - 11:30 AM
Hello friends
I am having difficulty updating Debian and Samba on a 4-node infrastructure that was installed a long time ago by your technicians.
We have been customers for many years.
I tried to follow the official documentation:
https://samba.tranquil.it/doc/fr/samba_ ... ian12.html
Therefore, I base my work on a fully up-to-date version of Debian 11, which I reboot before starting the operations.
I encounter these errors after:
(I know the output in French isn't great)
I am being asked to do a:
And that prevents us from going further.
It seems that the Python version is naturally the culprit and that this will cause a lot of problems with the libraries for the rest of the upgrade.
All the apt-clean operations, cache clearing, etc... have yielded no results.
I'm working on a virtual machine stage with Snapshots, so I can test quite a bit. If anyone has any advice, I would be very grateful to receive it.
Have a great day, friends.
Val.
I am having difficulty updating Debian and Samba on a 4-node infrastructure that was installed a long time ago by your technicians.
We have been customers for many years.
I tried to follow the official documentation:
https://samba.tranquil.it/doc/fr/samba_ ... ian12.html
Therefore, I base my work on a fully up-to-date version of Debian 11, which I reboot before starting the operations.
I encounter these errors after:
Code: Select all
apt dist-upgrade Code: Select all
Des erreurs ont été rencontrées pendant l'exécution :
/tmp/apt-dpkg-install-KRQ4bQ/02-winbind_2%3a4.22.6+dfsg-2-1bookworm1_amd64.deb
/tmp/apt-dpkg-install-KRQ4bQ/06-samba-libs_2%3a4.22.6+dfsg-2-1bookworm1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)I am being asked to do a:
Code: Select all
apt --fix-brokenCode: Select all
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 29, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Extraction des modèles depuis les paquets : 100%
(Lecture de la base de données... 67015 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../winbind_2%3a4.22.6+dfsg-2-1bookworm1_amd64.deb ...
Dépaquetage de winbind (2:4.22.6+dfsg-2-1bookworm1) sur (2:4.17.12+dfsg-1.1bullseye1) ...
dpkg: erreur de traitement de l'archive /var/cache/apt/archives/winbind_2%3a4.22.6+dfsg-2-1bookworm1_amd64.deb (--unpack) :
tentative de remplacement de « /usr/share/man/man8/idmap_rfc2307.8.gz », qui appartient aussi au paquet samba-libs:amd64 2:4.17.12+dfsg-1.1bullseye1
Reinstalling /etc/logrotate.d/winbind that was moved away
Pas de détournement « détournement de /usr/lib/x86_64-linux-gnu/samba/krb5/async_dns_krb5_locator.so par winbind », aucun supprimé.
winbind.service is a disabled or a static unit not running, not starting it.
Des erreurs ont été rencontrées pendant l'exécution :
/var/cache/apt/archives/winbind_2%3a4.22.6+dfsg-2-1bookworm1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
It seems that the Python version is naturally the culprit and that this will cause a lot of problems with the libraries for the rest of the upgrade.
Code: Select all
ls /usr/lib/python3/dist-packages/apt_pkg.cpython-*
apt_pkg.cpython-311-x86_64-linux-gnu.soAll the apt-clean operations, cache clearing, etc... have yielded no results.
I'm working on a virtual machine stage with Snapshots, so I can test quite a bit. If anyone has any advice, I would be very grateful to receive it.
Have a great day, friends.
Val.