upgraded to debian 13.0, do I still have to create a debian.sources file in /etc/apt/sources.list.d.?
from arsus5478@lemmy.ml to linux@lemmy.ml on 18 Aug 04:58
https://lemmy.ml/post/34843642

fresh as in new usb install. that directory sits now empty

#linux

threaded - newest

Sina@beehaw.org on 18 Aug 05:10 next collapse

Run apt update and see if it works. Meaning to look what sources it connects to, if it doesn’t fail.

If this fails, then ofc you have to create the file with the Trixie sources. There has to be a dummy file somewhere for you to copy.

I don’t really understand your post, you claim to have updated, but it’s a new usb install?

rhavenn@lemmy.world on 18 Aug 05:12 next collapse

You will need some sort of source if you ever want to update. Trixie has support for the new format. see: ostechnix.com/migrate-to-deb822-format-debian-13-…

You don’t need a /etc/apt/sources.list anymore, but you need something in /etc/apt/sources.list.d/ as per the above.

TheFrogThatFlies@lemmy.world on 18 Aug 12:36 collapse

This helped

sudo apt modernize-sources
brickfrog@lemmy.dbzer0.com on 18 Aug 05:30 next collapse

Not sure if this answers your question, on my fresh install of Debian 13 it seems to default to using

/etc/apt/sources.list

For example, I had to go in there to enable non-free and it worked fine.

There is a newer/recommended format of sources files ending in .sources in the same folder. The newer format is supported as of Debian 13 but for whatever reason Debian 13 doesn’t actually default to installing the newer version on fresh installs. I’m a bit confused by that but Debian’s own docs do discuss it.

wiki.debian.org/SourcesList

On my fresh install the /etc/apt/sources.list.d still exists, it looks like other software still create their own sources .list files in there when adding their own repos. Debian 13 itself does not seem to generate any files there.

ulu_mulu@lemmy.zip on 18 Aug 06:07 collapse

Debian 13 itself does not seem to generate any files there

I noticed that too.

I did it manually, deleted the old list file, it works fine.

gonzo-rand19@moist.catsweat.com on 18 Aug 11:16 collapse

Here is the section of the release notes that deals with the source list.

Also see this man page for further details and examples.