Hetzner ARM Server Failed to Fetch on Upgrade Issue

Hetzner ARM Server Failed to Fetch on Upgrade Issue
Photo by Florian Krumm / Unsplash

If you see the issue with upgrading or installing packages on your Hetzner Cloud ARM virtual machine (CAX11, CAX21 etc.) getting error message like

Failed to fetch https://mirror.hetzner.com/ubuntu/packages/dists/jammy/main/binary-arm64/Packages 

you may resolve the issue by replacing urls in /etc/apt/sources.list as described in the original hetzner issue:

Replace urls

http://mirror.hetzner.com/ubuntu/packages/
http://mirror.hetzner.com/ubuntu/security/

by

http://mirror.hetzner.com/ubuntu-ports/packages/
http://mirror.hetzner.com/ubuntu-ports/security/