aptly: publishing multiple components

Sam Varshavchik mrsam at courier-mta.com
Thu Mar 10 13:18:13 UTC 2022


So, after running into an old bug in apt-mirror I'm trying to mirror focal  
repositories with aptly.

I created and updated the mirrors, and snapshoted them:

# aptly snapshot list
List of snapshots:
 * [focal-backports]: Snapshot from mirror [focal-backports]: http://mirror.math.princeton.edu/pub/ubuntu/ focal-backports
 * [focal-security]: Snapshot from mirror [focal-security]: http://mirror.math.princeton.edu/pub/ubuntu/ focal-security
 * [focal-updates]: Snapshot from mirror [focal-updates]: http://mirror.math.princeton.edu/pub/ubuntu/ focal-updates

"help" for "publish snapshot" tells me this:

-component="": component name to publish (for multi-component publishing,  
separate components with commas)

But if I try:

# aptly publish snapshot -component=main,restricted,universe focal-backports

I get back a "Usage" dump, in response to this, ending with "ERROR: unable  
to parse command".

Through experimentation: "-component=main" works.

So does "-component=restricted" and "-component=universe".

So, how do I publish multiple components with aptly?

On a lark I tried using spaces instead of commas. This /seemed/ to help,  
after churning a while it even helpfully suggested what to add to  
sources.list, showing all the components. After doing that, apt-get update  
balked with:

E: The repository 'file:/home/aptly/public focal-restricted Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'file:/home/aptly/public focal-updates InRelease' provides only weak security information.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'file:/home/aptly/public focal-backports InRelease' provides only weak security information.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I have no idea what this is, some hits in Google suggest a corrupted report,  
or something.

So, what am I missing?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220310/106c7d7e/attachment.sig>


More information about the ubuntu-users mailing list