correct /etc/apt/sources.list for bullseye

Nov 29, 2024 Last reply: 1 year ago 5 Replies

I am getting errors about missing repository file on my 32-bit bullseye installation on an old[ish] Raspberry Pi system.



So, when I run 'apt update' I see:-



root@odinpi# apt update Hit:1

formatting link
bullseye InRelease Hit:2
formatting link
bullseye InRelease Ign:3
formatting link
main InRelease Err:4
formatting link
main Release 404 Not Found [IP: 93.93.128.193 80] Get:5
formatting link
syncthing InRelease Reading package lists... Done E: The repository '
formatting link
main Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.



So, how do I get my /etc/apt/sources.list configured right? I've not manually edited it as far as I remember.



The file /etc/apt/sources.list is currently:-



deb

formatting link
bullseye main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src
formatting link
bullseye main contrib non-free rpi deb
formatting link
main contrib non-free rpi


I think that first word after the repo URL is supposed to be the name of the release. If you look in the repo

formatting link
, you will see there is no subdirectory named “main”.

formatting link

Fool troll. Raspian hasn't been a thing for years.

You might need to add the ‘firmware’ component to this one. I can’t remember exactly what is needed for bullseye but there’s a firmware component there on the website.

This one is broken; it’s missing the distribution name. However it’s also redundant since it doesn’t add any components relative to the first.

OK.

Yes, I realised this when I stared at it a bit harder. I don't know how it got in there.

If its any help this is an up to date bullseye file

deb

formatting link
bookworm main contrib non-free non-free-firmware deb
formatting link
bookworm-security main contrib non-free non-free-firmware deb
formatting link
bookworm-updates main contrib non-free non-free-firmware # Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source' #deb-src
formatting link
bookworm main contrib non-free non-free-firmware #deb-src
formatting link
bookworm-security main contrib non-free non-free-firmware #deb-src
formatting link
bookworm-updates main contrib non-free non-free-firmware

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required