[O/S] [SOLVED] How to stay on stable and avoid getting on debian testing?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
TerjeN
Posts: 7
Joined: 2024-10-12 00:17
Has thanked: 4 times

[O/S] [SOLVED] How to stay on stable and avoid getting on debian testing?

#1 Post by TerjeN »

Hello, sorry for the noob question, but I recently installed debian on my work computer. I dont know how it happened, but now it seems i am on "Debian GNU/Linux trixie/sid". I suspect it is because i added "non-free-firmware" or something to my sources.list, which now looks like this:

─────────────────────────────────
1 │ # deb cdrom:[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20240210-11:28]/ bookworm contrib main non-free-firmware
2 │
3 │ #deb http://deb.debian.org/debian/ bookworm non-free-firmware main non-free
4 │ deb http://deb.debian.org/debian/ bookworm main contrib non-free-firmware main non-free
5 │ deb-src http://deb.debian.org/debian/ bookworm main contrib non-free-firmware main non-free
6 │
7 │ deb http://security.debian.org/debian-security bookworm-security contrib non-free-firmware main non-free
8 │ deb-src http://security.debian.org/debian-security bookworm-security contrib non-free-firmware main non-free
9 │
10 │ # bookworm-updates, to get updates before a point release is made;
11 │ # see https://www.debian.org/doc/manuals/debi ... _backports
12 │ deb http://deb.debian.org/debian/ bookworm-updates contrib non-free-firmware main non-free
13 │ deb-src http://deb.debian.org/debian/ bookworm-updates contrib non-free-firmware main non-free
14 │
15 │ deb http://ftp.au.debian.org/debian/ buster main
16 │ deb-src http://ftp.au.debian.org/debian/ buster main contrib non-free contrib
17 │
18 │ #deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
19 │ #deb http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware
20 │
21 │ #deb https://deb.debian.org/debian/ trixie main contrib non-free-firmware
22 │
23 │ #deb http://ftp.debian.org/debian stretch-backports main contrib non-free non-free-firmware

My uname -a now says: Linux terje-workstation-debian 6.11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.6-1 (2024-11-04) x86_64 GNU/Linux

Im wondering, if i reinstall, how can i make sure to stay on stable, (i guess that is "bookworm" ?) and not end up on testing.

Can i downgrade to stable or do i have to reinstall?

Suddently, nvidia drivers stopped working and i have problem installing nvidia-drivers again, and I suspect this is because of the debian version.

:linked:
Last edited by TerjeN on 2024-11-13 17:43, edited 1 time in total.

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1176
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 122 times
Been thanked: 205 times

Re: [O/S] How to stay on stable and avoid getting on debian testing?

#2 Post by wizard10000 »

It happened because of the Trixie and Sid entries in your sources.list - they're now commented out but it looks like the damage had already been done.

Might be wise to check out don't break debian to prevent this in the future.

I'm afraid downgrading is not supported.
we see things not as they are, but as we are.
-- anais nin

TerjeN
Posts: 7
Joined: 2024-10-12 00:17
Has thanked: 4 times

Re: [O/S] How to stay on stable and avoid getting on debian testing?

#3 Post by TerjeN »

Thank you @wizard10000 very much for the link, FrankenDebian is what I ended up with, yes. Then I will reinstall after reading trough that, good learning lesson ;)

jmgibson1981
Posts: 355
Joined: 2015-06-07 14:38
Has thanked: 18 times
Been thanked: 49 times

Re: [O/S] How to stay on stable and avoid getting on debian testing?

#4 Post by jmgibson1981 »

If you simply must have packages from testing and unstable then try backporting them correctly by building against bookworm. https://wiki.debian.org/SimpleBackportCreation . Not a complicated process although some things may not build due to requiring new dependencies. Going down that rabbit hole could have you backporting a ton of packages and losing the "stable" that you have.

That being said I would advise you to look into distrobox and run your non current release packages in that instead of on the bare metal os. This will give you the best of both worlds with little risk to the base system.

User avatar
stevepusser
Posts: 13096
Joined: 2009-10-06 05:53
Has thanked: 53 times
Been thanked: 99 times

Re: [O/S] How to stay on stable and avoid getting on debian testing?

#5 Post by stevepusser »

And Buster had also joined the chat!

Code: Select all

15 │ deb http://ftp.au.debian.org/debian/ buster main
16 │ deb-src http://ftp.au.debian.org/debian/ buster main contrib non-free contrib
MX Linux packager and developer

User avatar
stevepusser
Posts: 13096
Joined: 2009-10-06 05:53
Has thanked: 53 times
Been thanked: 99 times

Re: [O/S] How to stay on stable and avoid getting on debian testing?

#6 Post by stevepusser »

jmgibson1981 wrote: 2024-11-12 14:13 If you simply must have packages from testing and unstable then try backporting them correctly by building against bookworm. https://wiki.debian.org/SimpleBackportCreation . Not a complicated process although some things may not build due to requiring new dependencies. Going down that rabbit hole could have you backporting a ton of packages and losing the "stable" that you have.

That being said I would advise you to look into distrobox and run your non current release packages in that instead of on the bare metal os. This will give you the best of both worlds with little risk to the base system.
Also check out bookworm-backports first, since you might just be duplicating their work.

I've also backported a lot more packages for the MX Linux main, test, and AHS repositories, and build most of those on plain vanilla Debian virtual machines to assure compatibility, so those are also worth checking out.
MX Linux packager and developer

User avatar
sunrat
Site admin
Site admin
Posts: 7451
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 134 times
Been thanked: 665 times

Re: [O/S] How to stay on stable and avoid getting on debian testing?

#7 Post by sunrat »

stevepusser wrote: 2024-11-12 19:13I've also backported a lot more packages for the MX Linux main, test, and AHS repositories, and build most of those on plain vanilla Debian virtual machines to assure compatibility, so those are also worth checking out.
+1 for MX packages, I use a few and they work well on Bookworm. Stevo and the other MX packagers do a wonderful job. I often search MX repo for something if it's not in Debian repo or too old eg. current Audacity 3.6 and Mystiq video converter are 2 i use often.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

TerjeN
Posts: 7
Joined: 2024-10-12 00:17
Has thanked: 4 times

Re: [O/S] How to stay on stable and avoid getting on debian testing?

#8 Post by TerjeN »

jmgibson1981 wrote: 2024-11-12 14:13 That being said I would advise you to look into distrobox and run your non current release packages in that instead of on the bare metal os. This will give you the best of both worlds with little risk to the base system.
Thank you all for your comments, even for the one making fun of my buster usage which I found funny. I learn from these things! Especially thanks for the distrobox, this looks incredible useful. I have the same need of a setup at home and on work, and on work laptop, I guess getting into something like this would make my life easier and my host os more safer from accidental buster/trixie/sid frankendebians.

Will mark the post as solved, appriciate all the help.

Post Reply