Temurin-build: Conflict Packages vs real filename in Debian/Ubuntu repositories

Created on 27 Aug 2019  路  2Comments  路  Source: adoptium/temurin-build

When trying to mirror Debian/Ubuntu repositories with Aptly, I get following error:

ERROR: unable to update: download errors:
  HTTP code 404 while fetching https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a/adoptopenjdk-8-openj9/adoptopenjdk-8-openj9_8u222-b10-openj9-0.15.1-2_amd64.deb

Reason is, that in
https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/dists/bionic/main/binary-amd64/Packages
there is reference to package:

Package: adoptopenjdk-8-openj9
...
Filename: pool/main/a/adoptopenjdk-8-openj9/adoptopenjdk-8-openj9_8u222-b10-openj9-0.15.1-2_amd64.deb

but real filename is adoptopenjdk-8-openj9_8u222-b10.openj9-0.15.1-2_amd64.deb (note the dot after b10 instead of dash in Packages file).
See this directory: https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a/adoptopenjdk-8-openj9/

Example is from Debian Buster amd64 repository, but it seems to affect all other DEB repositories and architectures.

bug

All 2 comments

I told Artifactory to recreate the indices. Should be fixed. Before:

$ curl "https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/dists/bionic/main/binary-amd64/Packages" | grep "adoptopenjdk-8-openj9_8u222-b10-openj9-0.15.1-2_amd64.deb"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 34578  100 34578    0     0  52630      0 --:--:-- --:--:-- --:--:-- 52550
Filename: pool/main/a/adoptopenjdk-8-openj9/adoptopenjdk-8-openj9_8u222-b10-openj9-0.15.1-2_amd64.deb

After:

$ curl "https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/dists/bionic/main/binary-amd64/Packages" | grep "adoptopenjdk-8-openj9_8u222-b10-openj9-0.15.1-2_amd64.deb"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 33461  100 33461    0     0  44143      0 --:--:-- --:--:-- --:--:-- 44143

Great work, problem is fixed, mirroring works :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

karianna picture karianna  路  26Comments

sxa picture sxa  路  22Comments

hendrikebbers picture hendrikebbers  路  41Comments

chrisvest picture chrisvest  路  36Comments

keirlawson picture keirlawson  路  50Comments