Hetzner apt update: failed to fetch
Fehler bei apt update auf einem Hetzner arm Server:
E: Failed to fetch https://mirror.hetzner.com/ubuntu/packages/dists/jammy-updates/main/binary-arm64/Packages 404 Not Found [IP: 2a01:4ff:ff00::3:3 443]
E: Failed to fetch https://mirror.hetzner.com/ubuntu/packages/dists/jammy-backports/main/binary-arm64/Packages 404 Not Found [IP: 2a01:4ff:ff00::3:3 443]
E: Failed to fetch https://mirror.hetzner.com/ubuntu/security/dists/jammy-security/main/binary-arm64/Packages 404 Not Found [IP: 2a01:4ff:ff00::3:3 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Lösung:
https://www.reddit.com/r/hetzner/comments/1f3iz9f/e_failed_to_fetch_httpsmirrorhetzner_when_doing/
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.
>>
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.
also nano /etc/apt/sources.list > alle links mit hetzner.com/ubuntu/... in .../ubuntu-ports/... ändern
No Comments