On Tue, May 28, 2024 at 07:09:16AM -0400, Michael Grant wrote: > On Tue, May 28, 2024 at 06:59:50AM -0400, Greg Wooledge wrote: > > On Tue, May 28, 2024 at 06:10:11AM -0400, Michael Grant wrote: > > > The following packages will be REMOVED: > > > [...] libdb5.3t64 [...] > > > > You've *clearly* still got testing packages installed. > > YES. As I originally said, I created this mess by installing sendmail > from testing. And then, a month or so later, I did an > apt-get upgrade (to do updates, not a full upgrade) which pulled in > some more things from testing. I'm trying to get back to all being > from stable.
So, which part are you confused about? Did you think there was some easy way to FIX a frankendebian? Are you confused because you keep thinking "there must be some single apt command that will do all the work for me"? There's not. You get to do all the work by hand. You will most likely need to remove the testing versions of these packages (apache2, git and so on) and then install the bookworm versions afterward. The things to watch out for are config files (hence your backup), and any crazy dependency situations. In the ideal case, you'll simply be able to remove all the packages that aren't libs, then downgrade the libs, then reinstall the packages. And make sure you have sensible config files. If you get stuck, there's always the big hammer (dpkg --force-depends and so on). If/when it breaks, you get to reinstall from scratch. This is why we tell people DO NOT MIX BINARY PACKAGES FROM MULTIPLE RELEASES.