<div dir="ltr">Package: aptitude<br>Version: 0.8.13<br><br>"aptitude full-upgrade" failed to resolve conflicts properly, proposing many removals of vital packages.<br>Meanwhile "aptitude safe-upgrade" proposed an ideal solution immediately.<br><br>This happened while using aptitude in Kubuntu, but I think Debian may have similar issues when upgrading related KDE packages.<br>I upgraded Kubuntu 22.04 to 22.10 (which went smoothly), cleaned up any leftover obsolete packages afterwards (nothing important and related to this problem).<br>Then I added (back) kubuntu-backports repository to get the latest version of KDE for Kubuntu 22.10 (upgrade from KDE 5.25.5 to 5.27.3) and tried to apply the updates with "aptitude full-upgrade".<br><br>I attach solutions proposed by both "full-upgrade" and "safe-upgrade", and also aptitude's log on what "safe-upgrade" eventually did.<br><br>It seems that the right solution (immediately proposed by "safe-upgrade") was to remove obsolete packages, mainly:<br>- libkf5screen7<br>- libkwineffects13<br>- libkwinglutils13<br>and replace them with their newer releases (as required by other vital KDE packages):<br>- libkf5screen8<br>- libkwineffects14<br>- libkwinglutils14<br><br>Instead "full-upgrade" tried to keep old versions of the above libraries while removing vital KDE packages that depended on them (kscreen, kwin-common, kwin-wayland, kwin-x11, libkscreenlocker5, libnotificationmanager1, powerdevil, ...).<br><br>To my understanding, "full-upgrade" ought to be a stronger version of upgrade, that resolves conflicts at least as good as "safe-upgrade" while allowing to also remove packages in the process.<br>But it should not *needlessly* propose removal of important packages, when there is a better solution (not requiring removal of vital packages), which "safe-upgrade" finds in no time.<br><br>Is there a bug in "full-upgrade" conflict resolution in that case?<br>Or is such thing supposed to occur for "full-upgrade" ?<br><br>Maybe "full-upgrade" should simply begin with suggesting a solution that "safe-upgrade" would propose, if it is a sane one?<br><div><br></div><div><br></div></div>