Upstream missing (uncompressed) Packages index, aptly mirror update fails

113 views
Skip to first unread message

oCCtet

unread,
Jan 18, 2015, 6:56:32 AM1/18/15
to aptly-...@googlegroups.com
Steps to reproduce:

$ aptly mirror create trusty-main-ru http://ru.archive.ubuntu.com/ubuntu trusty main
...
Mirror [trusty-main-ru]: http://ru.archive.ubuntu.com/ubuntu/ trusty successfully added.
You can run 'aptly mirror update trusty-main-ru' to download repository contents.

$ aptly mirror update trusty-main-ru
...
Downloading & parsing package files...
Downloading http://ru.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages.bz2...
Downloading http://ru.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-arm64/Packages.bz2...
Downloading http://ru.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-arm64/Packages.gz...
Downloading http://ru.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-arm64/Packages...
ERROR: unable to update: HTTP code 404 while fetching http://ru.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-arm64/Packages

The Release index lists the uncompressed Packages index, while that file really is missing from the upstream mirror. So the root cause may be a broken upstream mirror -- it was working with aptly just fine only a few days earlier. (This is *not* specific to Russian mirror, the root at archive.ubuntu.com is the same.)

Perhaps aptly could be satisfied if any one of the Packages indices (uncompressed, gzip- or bzip2 -compressed) is fetched successfully? They are after all redundant.

Andrey Smirnov

unread,
Jan 18, 2015, 7:50:29 AM1/18/15
to oCCtet, aptly-...@googlegroups.com
Hi!

This has been already reported, the problem is that Ubuntu Release file lists many architectures as being available: http://ru.archive.ubuntu.com/ubuntu/dists/trusty/Release (see Architectures: field), while actually only some architectures are present.

Workaround: specify architectures explicitly, e.g. in your case:

  aptly mirror edit -architectures=i386,amd64 trusty-main-ru
  aptly mirror update trusty-main-ru

The error message comes after aptly trying to download all possible versions of Packages file (compressed, then uncompressed), and it fails to download any of them.

--
You received this message because you are subscribed to the Google Groups "aptly-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aptly-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

oCCtet

unread,
Jan 18, 2015, 8:18:29 AM1/18/15
to aptly-...@googlegroups.com, okt...@gmail.com
Indeed the workaround works, thanks! I have always explicitly specified architectures, but now I forgot. (And I failed to read the error message carefully...)


On Sunday, January 18, 2015 at 2:50:29 PM UTC+2, Andrey Smirnov wrote:
This has been already reported, the problem is that Ubuntu Release file lists many architectures as being available: http://ru.archive.ubuntu.com/ubuntu/dists/trusty/Release (see Architectures: field), while actually only some architectures are present.

Workaround: specify architectures explicitly...
Reply all
Reply to author
Forward
0 new messages