If the packaging system wants to remove a package that came from
oldstable for dependency reasons, having oldstable sources listed
won't change that.
Some old packages (usually versioned libraries) are kept around forever
and don't cause any problems. They just sit on your hard drive doing nothing, because nothing uses them or depends on them.
The only time it's advantageous to keep oldstable sources is if you
need to *add* something from oldstable, typically a library, in order to
run some compiled binary program that you got from outside of Debian.
In these cases, you're on your own -- there's no support for it. Also,
going back just one release may not be sufficient. You'll often end
up trawling through the archive of past packages to find a compatible library, after you estimate what year the program was compiled.
Personally, I'd recommend replacing the oldstable sources with the stable sources (but don't use the word "stable" or "oldstable"; use the release name; I'm just using generalized language here). If it turns out later
that you need to add a package from bookworm on your trixie system, *then* you can add bookworm sources (or download the singleton package directly
from the archive). Otherwise, there's no need to continue downloading
lists of packages from multiple releases. It's just a waste of your
disk space and bandwidth.
Use apt / apt-get options for safe upgrade - to upgrade the minimum
set of packages.
Do an apt-get dist-upgrade / apt full-upgrade
Thank you very much for your very usefull informations. It answers all my questions and worries I had.
So, "best" way is to remove the old entries and use only trixie-related ones.
This litle question/issue is fully solved and can safely be closed.
I am looking forward to trixie and are very excited to it!
Best regards and thaky you all for your help!
Hans
It might be worth mentioning that if the package owns sources.list,
then you should not edit it. You should allow the package maintainer
to edit or replace sources.list. Place your changes in /etc/apt/sources.list.d/.
SSH config files are located in /etc, too. But admins are expected to
make changes to /etc/ssh/sshd_config.d/, and not /etc/ssh/sshd_config.
On Fri, Jun 20, 2025 at 10:37 AM Greg Wooledge <greg@wooledge.org> wrote:
On Fri, Jun 20, 2025 at 10:15:47 -0400, Jeffrey Walton wrote:
SSH config files are located in /etc, too. But admins are expected to make changes to /etc/ssh/sshd_config.d/, and not /etc/ssh/sshd_config.
That's definitely false.
You will absolutely lose your sshd_config when the package is upgraded
and you choose the maintainers version of the file.
On Fri, Jun 20, 2025 at 11:30 AM <tomas@tuxteam.de> wrote:
On Fri, Jun 20, 2025 at 11:06:51AM -0400, Jeffrey Walton wrote:
On Fri, Jun 20, 2025 at 10:37 AM Greg Wooledge <greg@wooledge.org> wrote:
On Fri, Jun 20, 2025 at 10:15:47 -0400, Jeffrey Walton wrote:
SSH config files are located in /etc, too. But admins are expected to make changes to /etc/ssh/sshd_config.d/, and not /etc/ssh/sshd_config.
That's definitely false.
You will absolutely lose your sshd_config when the package is upgraded and you choose the maintainers version of the file.
No.
You will be asked, as for every conffile.
Please don't do that selective quoting found in dumpster fires like
social media: "... and you choose the maintainers version of the
file."
On Fri, Jun 20, 2025 at 11:06:51AM -0400, Jeffrey Walton wrote:
You will absolutely lose your sshd_config when the package is
upgraded and you choose the maintainers version of the file.
No.
You will be asked, as for every conffile.
On 2025-06-20 at 11:30, tomas@tuxteam.de wrote:
On Fri, Jun 20, 2025 at 11:06:51AM -0400, Jeffrey Walton wrote:
You will absolutely lose your sshd_config when the package is
upgraded and you choose the maintainers version of the file.
No.
You will be asked, as for every conffile.
That's why he said "and you choose the maintainer's version of the
file".
Personally, what I do in response to such a prompt is to have it show me
a diff of the two files, and then if the changes involve losing any
settings want to retain, I have it give me a shell prompt (or use
another shell I have independently) to make a copy of the existing file.
I then let it install the maintainer's version, diff the old version
against that separately, and immediately use that diff as the basis for editing the newly-installed maintainer's version to include the changes
I want to keep.
Unfortunately, I cannot find a Debian specific article on
configuration directories. However, Red Hat has "Linux configuration: Understanding *.d directories in /etc,"
<https://www.redhat.com/en/blog/etc-configuration-directories>. Now
that we have configuration directories, admins are expected to make
their changes in them so:
Personally, what I do in response to such a prompt is to have it show me
a diff of the two files, and then if the changes involve losing any
settings want to retain, I have it give me a shell prompt (or use
another shell I have independently) to make a copy of the existing file.
I then let it install the maintainer's version, diff the old version
against that separately, and immediately use that diff as the basis for editing the newly-installed maintainer's version to include the changes
I want to keep.
On Fri, 20 Jun 2025, The Wanderer wrote:
Personally, what I do in response to such a prompt is to have it show me
a diff of the two files, and then if the changes involve losing any settings want to retain, I have it give me a shell prompt (or use
another shell I have independently) to make a copy of the existing file.
I then let it install the maintainer's version, diff the old version against that separately, and immediately use that diff as the basis for editing the newly-installed maintainer's version to include the changes
I want to keep.
What I do is keep my current version, then when the upgrade is done, create
a new package that diverts the conffile for the debian package and has my modified file (where I've forgotten to do this when I originally needed to edit the file)
Unfortunately, I cannot find a Debian specific article on
configuration directories. However, Red Hat has "Linux configuration: Understanding *.d directories in /etc," <https://www.redhat.com/en/blog/etc-configuration-directories>. Now
that we have configuration directories, admins are expected to make
their changes in them so:
Instead of editing this single file each time an application
is added or updated on the system, we separate the
configuration for each application to a specific file.
The point is, you don't want to do gyrations on updates, like copying fragments of an old config into a new config.
In the specific case of /etc/ssh/sshd_config.d/, the man page is
pretty explicit:
Note that the Debian openssh-server package sets several options as stan‐
dard in /etc/ssh/sshd_config which are not the default in sshd(8):
• Include /etc/ssh/sshd_config.d/*.conf
• KbdInteractiveAuthentication no
• X11Forwarding yes
• PrintMotd no
• AcceptEnv LANG LC_*
• Subsystem sftp /usr/lib/openssh/sftp-server
• UsePAM yes
/etc/ssh/sshd_config.d/*.conf files are included at the start of the con‐
figuration file, so options set there will override those in
/etc/ssh/sshd_config.
To be completely transparent here, I'd never even *heard* of this until
you mentioned it earlier in this thread. This is completely new to me.
The fact that it's a Debian change is probably why I couldn't find it
in the OpenSSH web site's release notes, which is where I looked before trying "man sshd_config" on Debian.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 07:07:30 |
Calls: | 10,386 |
Calls today: | 1 |
Files: | 14,058 |
Messages: | 6,416,639 |