You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't find any useful information information how to mirror and publish a repository with debian-installer and its images
Detailed Description
I have a local repository (published by aptly on the Host B) built from local packages. It has the same structure as official Debian repository, including debian-installer and installer-amd64 folders structure. Everything works fine with apt, live-build tools and so on, the folder structure and components are correct.
I want to mirror this repository to the Host A, using aptly.
If i create mirror like this: aptly mirror create myos/stable http://host-b/myos/stable bookworm main then everything is correct but this mirror does not contain installer-images
If i create mirror like this: aptly mirror create -with-installer -with-udebs myos/stable http://host-b/myos/stable bookworm main
then aptly tries to fetch "installer-all" folder structure (because i have "architectures": ["amd64", "all"] in my config) and fails to create a mirror
I found a solution here: Installer file path is wrong when mirroring the official Debian repository #1144 and create a mirror like this: aptly mirror -keyring create -with-installer -with-udebs -architectures amd64 -filter='Name (~ installer)' myos/debian-installer/stable http://host-b/myos/stable bookworm main
This works.
However, when i try to publish all mirrors on the Host-A in one folder like this (from snapshots, i have main, contrib and non-free-firmware components):
i get a reasonable error "ERROR: prefix/distribution already used by another published repo"
So how can i mirror and publish the whole repository including debian-installer and installer-amd64 images? Or how to avoid searching for "installer-all" folder? There is no such installer, but there is such architecture in all distributions.
The text was updated successfully, but these errors were encountered:
aptly mirror -architectures="amd64" -with-installer -with-udebs create myos/stable http://host-b/myos/stable bookworm main
and it was successful: main components were fetched for both architectures amd64 and all, but installer was fetched only for amd64 architecture.
This is a working solution but not documented. Could you please explain why this happens.
The ERROR: prefix/distribution already used by another published repo is likely because of multiple tries, and some publish point with the same name already existed.
aptly does some magic when detecting and combining components, which usually works fine. Do I assume right the working solution is not to specify the -component=,, ?
Can't find any useful information information how to mirror and publish a repository with debian-installer and its images
Detailed Description
aptly mirror create myos/stable http://host-b/myos/stable bookworm main
then everything is correct but this mirror does not contain installer-imagesaptly mirror create -with-installer -with-udebs myos/stable http://host-b/myos/stable bookworm main
then aptly tries to fetch "installer-all" folder structure (because i have "architectures": ["amd64", "all"] in my config) and fails to create a mirror
aptly mirror -keyring create -with-installer -with-udebs -architectures amd64 -filter='Name (~ installer)' myos/debian-installer/stable http://host-b/myos/stable bookworm main
This works.
i get a reasonable error "ERROR: prefix/distribution already used by another published repo"
So how can i mirror and publish the whole repository including debian-installer and installer-amd64 images? Or how to avoid searching for "installer-all" folder? There is no such installer, but there is such architecture in all distributions.
The text was updated successfully, but these errors were encountered: