Cannot update. Strange sources.list

Hello,

I recentrly installed KDE Neon, but apt update fail and my source.list is strange (old-releases and no https. Any idea why I got this sources, and how to fix it ?

cat /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu/ noble main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ noble-updates main restricted universe multiverse

I have no idea how that would happen. I don’t see this on my fresh install from the beginning of this week, but I see that the ISO image has been updated since then.

To fix this is straightforward. You just need to edit that file to match this:

deb http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ noble-updates main restricted universe multiverse

Basically, replace old-releases with archive for the top and bottom lines, and security for the middle one.

Debian, Ubuntu, and similar sources are not https, or at least no always, and many of the worldwide mirrors do not. You can try HTTPS in the url, and see if it is working.

Thanks. This is strange, but at least it’s fixed.

Yes, it is very odd.
The URL old-releases.ubuntu.com is legitimate. It is where the package archives for End of Life Ubuntu releases go. This isn’t something that would ever be used on any ISO, and needs to be done on the user’s end. I can’t think of anything that would edit that for any distro, let alone for an Ubuntu release that very much is still.

Booting the current ISO, I see that it does have the correct sources.