Skip to content

Fix: google-cloud CLI installation script to use gpg for key import#36

Open
geminixiang wants to merge 1 commit into
dhoeric:mainfrom
geminixiang:main
Open

Fix: google-cloud CLI installation script to use gpg for key import#36
geminixiang wants to merge 1 commit into
dhoeric:mainfrom
geminixiang:main

Conversation

@geminixiang

Copy link
Copy Markdown

Fixes #35

Description

This PR fixes the Google Cloud CLI installation script to work with modern Ubuntu/Debian systems by replacing the deprecated apt-key command with the recommended gpg approach.

Problem

The current installation script fails on Ubuntu 22.04+ with the error:

apt-key: command not found

Solution

Replaced apt-key usage with gpg --dearmor to properly handle GPG key import

ref. https://github.com/google-research/google-research/blob/46fe0fb7a0e36611b2ade273819ce35b0bd1ccc4/learning_to_clarify/Dockerfile#L20

joshuanianji added a commit to ifalatiksetlog/joshuanianji-devcontainer-features that referenced this pull request Jul 3, 2026
The zsh_shell and root_user scenarios used the floating base tag
mcr.microsoft.com/devcontainers/base:debian, which has rolled to Debian
13 (trixie). The third-party ghcr.io/dhoeric/features/google-cloud-cli
feature installs Google's apt key with `apt-key`, which was removed in
trixie, so it fails with `apt-key: command not found` (exit 127).

Pin these scenarios to base:debian-12 until the upstream feature switches
from apt-key to `gpg --dearmor` (dhoeric/features#36). The with_node
scenario already runs on bookworm and passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apt-key command not found

1 participant