this post was submitted on 25 Jul 2024
5 points (85.7% liked)

Linux Questions

982 readers
1 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
 

I've been using Linux for at least 2 years. I have Linux Mint on my main computer and Debian on my old computer. Trying to apt update says that the connection failed to security.ubuntu.com, deb.debian.org, ftp.uk.debian.org, etc.

Updating directly from sources such as for the Brave Browser still works. Sites not necessary for updating still work. Accessing them through browser doesn't work (It would give a "Connection was reset" error (for Debian) or an error that mentioned DNS (for main computer)). Pinging them seemed to work. Accessing these sites on my phone still works (though it didn't until I accessed them through mobile data and switched back to wifi). Connecting my Linux Mint computer through mobile data to apt update and switching it back to wifi resolved the issue for my Linux Mint computer, but I wasn't able to get my Debian system to connect through my phone.

Any ideas for causes/resolutions?

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 month ago

When it says that the connection failed to the repo mirrors, what is the exact error apt gives?

[–] onlinepersona 0 points 1 month ago (1 children)

Accessing these sites on my phone still works (though it didn't until I accessed them through mobile data and switched back to wifi)

Try running dig deb.debian.org then dig @9.9.9.9 deb.debian.org. If the first one fails, it might be your DNS. The second one uses an alternative DNS server.

Here are two articles on how to set a DNS server on mint:

Try setting your DNS server to that of quad9: 9.9.9.9 (literally four nines). They are a privacy-respecting DNS server.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

Ok. Thank you very much! Finally making progress.
I can access deb.debian.org in my browser now, but updating still isn’t working. I get a different error message. A 404 this time. The repository 'http://deb.debian.org/debian bullseye-security Release' does not have a release file.

Earlier I attempted to change my mirrors file to try to fix the issue, so perhaps I didn’t change it back properly.

Edit: Yup. Just successfully ran apt update, and currently running upgrade, so everything should be fine now.

[–] onlinepersona 0 points 1 month ago (1 children)

Ayyyy, congrats! 🎉🎉🎉

You should be able to change your DNS server in your router too so that any new devices don't run into similar issues. Plus it helps with your privacy.

Anyway, glad it all worked out.

Anti Commercial-AI license

[–] [email protected] 2 points 1 month ago

It’s not my router, so I won’t do that, but I might start manually using quad9 for my Mint systems too. I already knew about quad9, but not how to change dns on Debian. Thanks again.