Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Having problems with updating after switching to a closer mirror

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
bc0pants
Posts: 2
Joined: 2024-04-04 17:29

[Solved] Having problems with updating after switching to a closer mirror

#1 Post by bc0pants »

Hello, after installation i decided to switch to a closer mirror of Debian. I did so through the software & updates application. Afterwards i tried to run sudo apt update and it resulted into this error:

Code: Select all

E: The repository 'http://security.debian.org/debian-security stable/updates 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.
What can I do to fix it? Thanks in advance!
Last edited by bc0pants on 2024-04-06 11:51, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6591
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 502 times

Re: [Software] Having problems with updating after switching to a closer mirror

#2 Post by sunrat »

If it worked before you changed the mirror, I suggest to revert to the original mirror.

I'm guessing your sources are incorrect. Post your sources.list:

Code: Select all

cat /etc/apt/sources.list
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

bc0pants
Posts: 2
Joined: 2024-04-04 17:29

Re: [Software] Having problems with updating after switching to a closer mirror

#3 Post by bc0pants »

This is the output:

Code: Select all

# Debian packages for stable
deb http://ftp.uni-sofia.bg/debian/ stable main contrib
# Uncomment the deb-src line if you want 'apt-get source'
# to work with most packages.
# deb-src http://ftp.uni-sofia.bg/debian/ stable main contrib

# Security updates for stable
deb http://security.debian.org/debian-security stable/updates main
deb http://mirrors.netix.net/debian/ bookworm main contrib non-free-firmware non-free
deb-src http://mirrors.netix.net/debian/ bookworm main contrib non-free-firmware non-free #Added by software-properties

jmgibson1981
Posts: 308
Joined: 2015-06-07 14:38
Has thanked: 11 times
Been thanked: 36 times

Re: [Software] Having problems with updating after switching to a closer mirror

#4 Post by jmgibson1981 »

While I can't and won't claim to know how the Debian mirrors work I can say that for Arch sometimes the mirrors don't work correctly. Seems quite rare but a few times when I've done various installs while distro hopping I've had to adjust my available mirrors because they just timeout repeatedly. Possible similar problem? Just because it's a closer repo doesn't make it immune to problems wherever it is geographically located.

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: [Software] Having problems with updating after switching to a closer mirror

#5 Post by milomak »

Code: Select all

deb http://security.debian.org/debian-security stable/updates main
should that be stable/updates or bookworm-security?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
fabien
Forum Helper
Forum Helper
Posts: 732
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 67 times
Been thanked: 173 times

Re: [Software] Having problems with updating after switching to a closer mirror

#6 Post by fabien »

milomak wrote: 2024-04-05 21:24

Code: Select all

deb http://security.debian.org/debian-security stable/updates main
should that be stable/updates or bookworm-security?
Indeed, the format changed with Bullseye
5.1.3. Changed security archive layout

For bullseye, the security suite is now named bullseye-security instead of codename/updates and users should adapt their APT source-list files accordingly when upgrading.

The security line in your APT configuration may look like:

deb https://deb.debian.org/debian-security bullseye-security main contrib
The Debian Wiki has examples of correct sources.list
ImageShare your Debian SCRIPTS
There will be neither barrier nor walls, neither official nor guard, there will be no more desert and the entire world will become a garden. — Anacharsis Cloots

Post Reply