Logs for `Cannot open credentials directory "/etc/apt/auth.conf.d"` when not using Pro archives

Aperta
#207 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@cristiangirlea ci sta già lavorando.

Dal 23/9/2026.

  • #326 di @cristiangirlea — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Riproduci l'output con il comando documentato chisel cut --release ubuntu-24.04 --root /root-fs base-files_base e analizza il percorso di individuazione delle credenziali degli archivi Pro. Il lavoro è completato quando i log spiegano chiaramente che i controlli delle credenziali riguardano archivi Pro opzionali e che il comportamento previsto quando tali credenziali sono assenti è documentato o gestito esplicitamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Simple

Minor UX issue.

I wasn't sure what the logs were about at first until noticing the relation to the Pro archives feature. The logs could better communicate that context.


Installing chisel into an alpine image:

docker run --rm -it alpine

export \
  TARGETARCH=amd64 \
  CHISEL_VERSION=1.1.0 \
 
CHISEL_RELEASE="https://github.com/canonical/chisel/releases/download/v${CHISEL_VERSION}/chisel_v${CHISEL_VERSION}_linux_${TARGETARCH}.tar.gz"

# Install chisel:
wget -qO - "${CHISEL_RELEASE}" | tar -xz --no-same-owner -C /usr/local/bin chisel

Install a slice:

$ mkdir /root-fs
$ chisel cut --release ubuntu-24.04 --root /root-fs base-files_base

2025/03/13 02:33:06 Consulting release repository...
2025/03/13 02:33:06 Fetching current ubuntu-24.04 release...
2025/03/13 02:33:06 Processing ubuntu-24.04 release...
2025/03/13 02:33:22 Selecting slices...
2025/03/13 02:33:22 Cannot open credentials directory "/etc/apt/auth.conf.d": open /etc/apt/auth.conf.d: no such file or directory
2025/03/13 02:33:22 Archive "ubuntu-esm-apps" ignored: credentials not found
2025/03/13 02:33:22 Cannot open credentials directory "/etc/apt/auth.conf.d": open /etc/apt/auth.conf.d: no such file or directory
2025/03/13 02:33:22 Archive "ubuntu-esm-infra" ignored: credentials not found
2025/03/13 02:33:22 Fetching ubuntu 24.04 noble suite details...
2025/03/13 02:33:23 Release date: Thu, 25 Apr 2024 15:10:33 UTC
2025/03/13 02:33:23 Fetching index for ubuntu 24.04 noble main component...
2025/03/13 02:33:24 Fetching index for ubuntu 24.04 noble universe component...
2025/03/13 02:33:26 Fetching ubuntu 24.04 noble-security suite details...
2025/03/13 02:33:27 Release date: Wed, 12 Mar 2025 23:28:15 UTC
2025/03/13 02:33:27 Fetching index for ubuntu 24.04 noble-security main component...
2025/03/13 02:33:27 Fetching index for ubuntu 24.04 noble-security universe component...
2025/03/13 02:33:27 Fetching ubuntu 24.04 noble-updates suite details...
2025/03/13 02:33:27 Release date: Thu, 13 Mar 2025  1:23:23 UTC
2025/03/13 02:33:27 Fetching index for ubuntu 24.04 noble-updates main component...
2025/03/13 02:33:28 Fetching index for ubuntu 24.04 noble-updates universe component...
2025/03/13 02:33:28 Fetching pool/main/b/base-files/base-files_13ubuntu10.2_amd64.deb...
2025/03/13 02:33:28 Extracting files from package "base-files"...

Should this be a concern that chisel assumes it runs within an environment that has apt installed? (EDIT: I'm guessing from below chisel only cares about discovering the configs to use itself, hence the ENV configurable)

Cannot open credentials directory "/etc/apt/auth.conf.d": open /etc/apt/auth.conf.d: no such file or directory

This was not part of the earlier 0.10.0 chisel release. Given the other logs associated to it I assume this is the 1.1.0 release introduction of Pro archives?:

Image

I see the path is configurable but as I'm not trying to use the Pro archives is there no way to communicate an opt-out?

Lingua principale
Go
Stelle
434
Fork
74
Merge medio
1g 30m
PR unite (30g)
1

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 canonical/chisel

Tutte le issue di canonical/chisel

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.