Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Only main component from ubuntu repo gets published to S3 bucket

Aperta
#1,469 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@neolynx ci sta già lavorando.

Dal 15/8/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Hello,

I try to make a mirror of ubuntu focal and publish it to S3 bucket. I run following commands:

gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 871920D1991BC93C
aptly mirror create -architectures=amd64 ubuntu-focal-main http://fi.archive.ubuntu.com/ubuntu focal main
aptly mirror update ubuntu-focal-main
aptly mirror create -architectures=amd64 ubuntu-focal-restricted http://fi.archive.ubuntu.com/ubuntu focal restricted
aptly mirror update ubuntu-focal-restricted
aptly snapshot create ubuntu-focal-main-$(date +%Y%m%d) from mirror ubuntu-focal-main
aptly snapshot create ubuntu-focal-restricted-$(date +%Y%m%d) from mirror ubuntu-focal-restricted
aptly snapshot merge ubuntu-focal-all-$(date +%Y%m%d) ubuntu-focal-main-$(date +%Y%m%d) ubuntu-focal-restricted-$(date +%Y%m%d)
aptly publish snapshot ubuntu-focal-all-$(date +%Y%m%d) s3:ubuntu-mirror-sandbox:

Only main component gets published to S3 bucket. Restricted component is not published.

If i try to use -component to upload also restricted, it fails with error:

aptly publish snapshot -component=main,restricted ubuntu-focal-all-$(date +%Y%m%d) s3:ubuntu-mirror-sandbox:
ERROR: unable to publish: snapshot with name s3:ubuntu-mirror-sandbox: not found

This results in following error when try to run apt update:

W: Skipping acquire of configured file 'restricted/binary-amd64/Packages' as repository 'https://URLHERE focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/i18n/Translation-en_US' as repository 'https://URLHERE focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/i18n/Translation-en' as repository 'https://URLHERE focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/cnf/Commands-amd64' as repository 'https://URLHERE  focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)

I have following in /etc/apt/sources.list:

deb [signed-by=/etc/apt/trusted.gpg.d/aptly.gpg] https://URLHERE focal main restricted

Aptly version is:

aptly@ubuntu:~$ aptly version
aptly version: 1.6.2

Ubuntu version:

root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
Lingua principale
Go
Stelle
2.9k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aptly-dev/aptly

Tutte le issue di aptly-dev/aptly

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.