Jump to content

Troubleshooting Alpine CDN issues

From postmarketOS Wiki

Alpine Linux packages can be installed from a wide range of mirrors [1]. The first one of them is a CDN, which means it actually consists of many local mirrors and a mirror that is close to you will be chosen when you attempt to download from there.

Symptoms

Sometimes the CDN has corrupt packages on some of the regional mirrors, which then results in apk errors such as:

( 531/1098) Downloading signon-ui-0.18_git20231016-r0
ERROR: signon-ui-0.18_git20231016-r0: v2 package integrity error

As this may only affect some of the CDN's mirrors, this might not be reproducible every time.

Fixing the error

To fix this for good, figure out the path to the package by browsing http://dl-cdn.alpinelinux.org/alpine/. Then send a PURGE to the URL:

$ curl -X PURGE https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/signon-ui-0.18_git20231016-r0.apk
{ "status": "ok", "id": "13942-1755044715-19272" }