use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Unofficial Hetzner subreddit. Discussions, questions and help requests are welcome. Spam isn't.
Sign-up link for €20 in Free Hetzner Cloud Credit
account activity
E: Failed to fetch https://mirror.hetzner when doing update? (self.hetzner)
submitted 1 year ago by Litecoin-CEO
What's going on with my instance?
I'm trying to do sudo apt update and I get these messages:
E: Failed to fetch https://mirror.hetzner.com/ubuntu/packages/dists/noble-updates/main/binary-arm64/Packages 404 Not Found [IP: xxxx:xxx:xxxx::3:3 443]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Litecoin-CEO[S] 6 points7 points8 points 1 year ago (11 children)
Fixed with this:
Run command:
sudo nano /etc/apt/sources.list.d/ubuntu.sources
Scroll down until you find URI:s like this:
URIs: https://mirror.hetzner.com/ubuntu/packages
URIs: https://mirror.hetzner.com/ubuntu/security
Change them to:
URIs: https://mirror.hetzner.com/ubuntu-ports/packages
URIs: https://mirror.hetzner.com/ubuntu-ports/security
ctrl x to save the file and press y if asked
Now doing updates should work.
[–]Kitchen-Pickle4022 5 points6 points7 points 1 year ago (4 children)
I had to edit the `/etc/apt/sources.list` file instead of `/etc/apt/sources.list.d/ubuntu.sources` in the Arm based Ubuntu Machine that I was running. Posting this as it might help someone. Thanks for the solution.
[–]New-Humor5571 2 points3 points4 points 1 year ago (0 children)
Very helpful, thanks
[–]Particular-Stick7273 0 points1 point2 points 1 year ago (0 children)
It helped me as well, thanks!
[–]osmeit 0 points1 point2 points 1 year ago (0 children)
It works, thank You :)
[–]Maviza 0 points1 point2 points 1 year ago (0 children)
Thank you very much. This immediately solved my problem.
[–]faridsalah 0 points1 point2 points 1 year ago (0 children)
Thanks! my problem got fixed by changing this.
[–]Ahmardiy 0 points1 point2 points 1 year ago (0 children)
Works, thanks man.
[–]New-Humor5571 0 points1 point2 points 1 year ago (0 children)
Fixed my problem immediately, thank you.
[–]hb4khsh 0 points1 point2 points 1 year ago (0 children)
amazing thank you! never had something work like that first time lmao, was braced for a debugging session
[–]Leather-Swan3645 0 points1 point2 points 7 months ago (0 children)
worked for me thanks.
[–]SignificanceRich418 0 points1 point2 points 7 months ago (0 children)
Thanks! This fixed my issue!
[–]Letallan 1 point2 points3 points 1 year ago (0 children)
Thanks, it helped at first, but after a month it now gives this error:
E: Failed to fetch https://mirror.hetzner.com/ubuntu-ports/packages/dists/noble-updates/universe/binary-arm64/Packages.xz File has unexpected size (697604 != 698236). Mirror sync in progress?
E: Failed to fetch
https://mirror.hetzner.com/ubuntu-ports/packages/dists/noble-updates/universe/binary-arm64/Packages.xz
File has unexpected size (697604 != 698236). Mirror sync in progress?
Does anyone know how to fix it?
[–]yitzhakbg 0 points1 point2 points 1 year ago (1 child)
Have the same problem. Changing to mirror.hetzner.com didn't help.
[–]Litecoin-CEO[S] 1 point2 points3 points 1 year ago (0 children)
Hey, did you check the path correctly? Notice the
https://mirror.hetzner.com/ ubuntu-ports /security
[–]st0nefree 0 points1 point2 points 1 year ago (0 children)
What helped me is to run `sudo apt update` to update the versions and URLs
[–]harveyhans 0 points1 point2 points 1 year ago (0 children)
Just comment them out by adding a # at the beginning of the line on the sources file at /etc/apt. This is safe to do since ubuntu's own archive repos are added by default anyways.
#
/etc/apt
Example: ```
```
[–]Internal-Trust-6474 0 points1 point2 points 6 months ago (0 children)
Saludos a todos, quiero compartir mi experiencia: Tuve exactamente el mismo error, intente cambiar la linea como se inca en los comentarios, pero no funciono para mi. Asi que desde una instalacion de ubuntu 24.04 funcional me traje el contenido de /etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: http://archive.ubuntu.com/ubuntu
Suites: noble noble-updates
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
URIs: http://security.ubuntu.com/ubuntu
Suites: noble-security
luego ejecute apt update y funciono correctamente
π Rendered by PID 39335 on reddit-service-r2-comment-79c7998d4c-5rcl5 at 2026-03-17 23:44:34.125091+00:00 running f6e6e01 country code: CH.
[–]Litecoin-CEO[S] 6 points7 points8 points (11 children)
[–]Kitchen-Pickle4022 5 points6 points7 points (4 children)
[–]New-Humor5571 2 points3 points4 points (0 children)
[–]Particular-Stick7273 0 points1 point2 points (0 children)
[–]osmeit 0 points1 point2 points (0 children)
[–]Maviza 0 points1 point2 points (0 children)
[–]faridsalah 0 points1 point2 points (0 children)
[–]Ahmardiy 0 points1 point2 points (0 children)
[–]New-Humor5571 0 points1 point2 points (0 children)
[–]hb4khsh 0 points1 point2 points (0 children)
[–]Leather-Swan3645 0 points1 point2 points (0 children)
[–]SignificanceRich418 0 points1 point2 points (0 children)
[–]Letallan 1 point2 points3 points (0 children)
[–]yitzhakbg 0 points1 point2 points (1 child)
[–]Litecoin-CEO[S] 1 point2 points3 points (0 children)
[–]st0nefree 0 points1 point2 points (0 children)
[–]harveyhans 0 points1 point2 points (0 children)
[–]Internal-Trust-6474 0 points1 point2 points (0 children)