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

オープン
#207 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

@cristiangirlea がすでに取り組んでいます。

2026年9月23日 から。

  • #326 @cristiangirlea による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
cli

調査の方向性

文書化されている chisel cut --release ubuntu-24.04 --root /root-fs base-files_base コマンドで出力を再現し、Pro アーカイブの認証情報検出パスを調査します。ログが、認証情報のチェックはオプションの Pro アーカイブに関するものであり、それらの認証情報がない場合の意図された動作が文書化されているか、明示的に処理されていることを明確に説明していれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Go
スター
434
フォーク
74
平均マージ
1日 30分
マージ済み PR(30日)
1

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

canonical/chisel のほかの issue

canonical/chisel の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。