Debian 11 Upgrade Mirror issue
I recently started upgrading to Debian 11. I started with my least important server just to see what and if any errors might crop up. So one did with the mirrors.
The repository 'http://security.debian.org/debian-security bullseye/updates Release' does not have a Release file.
failed to download some files
But the following source from the Debian IRC channel fixes the issue.
I had to change two security repo paths to deb https://deb.debian.org/debian-security bullseye-security main contrib
3 Replies
✓ Best Answer
I just spun up a fresh new Debian 11 Linode to test this. I was able to successfully run apt update && apt upgrade
on it and encountered no issues connecting to the mirrors. That said, it looks like the Linode provided image pulls from the Linode mirrors and not the official distribution mirrors, which could explain why we are seeing different behavior.
root@localhost:~# apt update && apt upgrade
Get:1 http://mirrors.linode.com/debian bullseye InRelease [113 kB]
Get:2 http://mirrors.linode.com/debian-security bullseye-security/updates InRelease [44.1 kB]
Get:3 http://mirrors.linode.com/debian bullseye-updates InRelease [36.8 kB]
Get:4 http://mirrors.linode.com/debian bullseye/main Sources [8,612 kB]
Get:5 http://mirrors.linode.com/debian bullseye/main amd64 Packages [8,178 kB]
Get:6 http://mirrors.linode.com/debian bullseye/main Translation-en [6,241 kB]
Get:7 http://mirrors.linode.com/debian-security bullseye-security/updates/main Sources [11.8 kB]
Get:8 http://mirrors.linode.com/debian-security bullseye-security/updates/main amd64 Packages [25.8 kB]
Get:9 http://mirrors.linode.com/debian-security bullseye-security/updates/main Translation-en [12.8 kB]
Fetched 23.3 MB in 5s (4,853 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Thanks @watrick! At that time I did switch mirrors to see if that would resolve the issue. It might have just been an issue of not all the mirrors being updated yet since Debian 11 had been recently released.
I believe you need to change the following lines in /etc/apt/sources.list from:
deb http://mirrors.linode.com/debian-security bullseye/updates main
deb-src http://mirrors.linode.com/debian-security bullseye/updates main
to:
deb http://mirrors.linode.com/debian-security bullseye-security main
deb-src http://mirrors.linode.com/debian-security bullseye-security main
It seems like there was a change between Debian 10 (Buster) and Debian 11 (Bullseye).