upgrades: dist-upgrade should run "apt-get --fix-broken install"
This is currently run when installing packages or manual update. It should be added to dist-upgrade also.
This will sometimes be needed before performing a dist-upgrade (example is bookworm -> testing):
root@freedombox:/var/log# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
apache2-bin : Depends: libcurl4 (>= 7.28.0)
curl : Depends: libcurl3t64-gnutls (= 8.11.1-1+b1) but it is not installed
git : Depends: libcurl3t64-gnutls (>= 7.56.1) but it is not installed
libappstream4 : Depends: libcurl3-gnutls (>= 7.63.0)
libc-bin : Depends: libc6 (< 2.37) but 2.40-6 is installed
Recommends: manpages but it is not installed
libc-dev-bin : Depends: libc6 (< 2.37) but 2.40-6 is installed
Recommends: manpages but it is not installed
Recommends: manpages-dev but it is not installed
Recommends: libc-devtools (> 2.36) but it is not installed
libc6-dev : Depends: libc6 (= 2.36-9+deb12u9) but 2.40-6 is installed
libpam-systemd : Depends: systemd (= 252.33-1~deb12u1) but 257.2-3 is installed
librtmp1 : Depends: libgnutls30t64 (>= 3.8.1) but it is not installed
Depends: libhogweed6t64 but it is not installed
Depends: libnettle8t64 but it is not installed
locales : Depends: libc-bin (> 2.40) but 2.36-9+deb12u9 is installed
network-manager : Depends: libcurl3-gnutls (>= 7.24.0)
openssh-sftp-server : Depends: openssh-client (= 1:9.2p1-2+deb12u4) but 1:9.9p1-3 is installed
samba-common-bin : Depends: samba-common (= 2:4.17.12+dfsg-0+deb12u1) but 2:4.21.3+dfsg-6 is installed
systemd-timesyncd : Depends: libsystemd-shared (= 252.33-1~deb12u1) but 257.2-3 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).