Problems fetching Debian packages from linaro-overlay repo

Our build process generates fresh db410c system images from the linaro-overlay repo, but recently we’ve encountered issues where apt fails to download files from the repo with errors like:

Get:1 ./ firmware-qcom-soc 20200817-1+linaro1 [7214 kB]
Get:2 ./ libqrtr1 0.3+47g9dc7a88-1 [10.0 kB]
Get:3 ./ linux-image-5.4.0-qcomlt-arm64 5.4.54-00257-g360170a47363-118 [19.6 MB]
Err:4 ./ qrtr 0.3+47g9dc7a88-1
  403  Forbidden [IP: 443]
Err:5 ./ rmtfs 0.2+36g293ab8b-1
  403  Forbidden [IP: 443]
Fetched 26.8 MB in 3min 13s (139 kB/s)
E: Failed to fetch  403  Forbidden [IP: 443]
E: Failed to fetch  403  Forbidden [IP: 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I initially thought that something was going wrong on our end (I was using http so that we could have a proxy server cache things), but I switched over to https and we’re still having issues. Trying to recreate the problem “by hand” is tricky. About the closest I’ve been able to come is by using:

wget --no-check-certificate --max-redirect 0
wget --no-check-certificate --max-redirect 0
wget --no-check-certificate --max-redirect 0

So, I think what must be going on is that the “Expires” is happening too soon (taking too long to download files) when apt is triggering the download.

I think this is expected.

The OBS instance has been turned off. What you see at is a backup archive. It should allow you to fetch any packages that did not cache locally but it is not intended that apt can fetch from it.

@danielt So, sounds like we should put up our own internal archive then. The way that this is setup breaks caching, so it hits the server every time, and 90 seconds (the apparent timeout) isn’t long enough to guarantee that apt will fetch the file in time.

If you need them then an internal archive is likely to be best.

Note that if you are generating the filesystem from scratch you might
find you don’t actually need any of the OBS packages… most are either
optional or newer version are available from the Debian repos.