aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Aptly cannot mirror packages.vmware.com/packages/ubuntu repo.

Open 0megam opened this issue 9 years ago • 4 comments

Trying to create mirror:

aptly mirror create -architectures="amd64" -force-components=true "https://packages.vmware.com/packages/ubuntu trusty main" https://packages.vmware.com/packages/ubuntu trusty main
Downloading https://packages.vmware.com/packages/ubuntu/dists/trusty/InRelease...
Downloading https://packages.vmware.com/packages/ubuntu/dists/trusty/Release...
Downloading https://packages.vmware.com/packages/ubuntu/dists/trusty/Release.gpg...
gpgv: Signature made Wed Jun 11 14:18:01 2014 UTC using RSA key ID 66FD4949
gpgv: Good signature from "VMware, Inc. -- Linux Packaging Key -- <[email protected]>"
ERROR: unable to fetch mirror: architecture amd64 not available in repo [https://packages.vmware.com/packages/ubuntu trusty main]: https://packages.vmware.com/packages/ubuntu/ trusty

My ubuntu trusty vm using this repo without a problem.

0megam avatar Aug 23 '16 09:08 0megam

seems you did not read the documentation: https://www.aptly.info/doc/aptly/mirror/create/

I was able to go further with:

Usage: aptly mirror create <name> <archive url> <distribution> [<component1> ...]
# it should be
aptly mirror create -architectures="amd64" -force-components=true vmware "https://packages.vmware.com/packages/ubuntu" trusty main
gpgv: Good signature from "VMware, Inc. -- Linux Packaging Key -- <[email protected]>"
ERROR: unable to fetch mirror: architecture amd64 not available in repo [vmware]: https://packages.vmware.com/packages/ubuntu/ trusty

Finally I checked the vmware repository and it does not fit usual repository directory structure, there is no pool to store the packages for example.

erickeller avatar Aug 30 '16 15:08 erickeller

Your command line are basically same as mine :) In the end you got same error as mine. Nothing in docs forbids to call my mirror repository "https://packages.vmware.com/packages/ubuntu trusty main" I know that vmware repo is not usual but Ubuntu and apt-mirror working with this repository just fine. I'am expecting from aptly to work with this kind of repositories.

0megam avatar Aug 30 '16 15:08 0megam

Yep indead, your syntax is perfectly right!

It seems that aptly has not being implemented to support older repositories directory schemes...

https://wiki.debian.org/RepositoryFormat http://blog.packagecloud.io/eng/2015/08/04/apt-repository-internals/ https://www.debian.org/doc/manuals/repository-howto/repository-howto

Even in the older "obsolete" documentation they talk about pools to manage packages. See "Creating Pools".

So to my mind you should ask vmware to refresh their site in order to comply to a proper apt repository format :)

Regards

erickeller avatar Aug 30 '16 20:08 erickeller

You can do it like this:

aptly mirror create -architectures="amd64" -force-components=true -force-architectures=true https://packages.vmware.com/packages/ubuntu trusty main

I just ran into this exact same error with a different apt repository.

pgporada avatar May 07 '25 19:05 pgporada