Skip to content

Commit fe81558

Browse files
committed
Updated google-cloud-sdk for Google Issue 383568269
1 parent 2314c40 commit fe81558

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
The `google-cloud-sdk` feature installs the Google Cloud SDK and optional additional components.
1010

11-
**NOTE:** Ubuntu 24.04 is currently **not** supported by this feature due to an issue with the `apt` package manager. The issue is being tracked [here]() and will be resolved once a fix is available.
11+
**NOTE:** If using Ubuntu 24.04 on `arm64` [Google Cloud SDK Issue 383568269](https://issuetracker.google.com/issues/383568269) is currently being worked on to resolve the issue. Until resolved, version 502.0.0-0 will be installed.
1212

1313
### ngrok
1414

src/google-cloud-sdk/install.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
#!/bin/sh
22
set -e
33

4-
# Check if the OS is Ubuntu 24.04 and exit with a message if true
5-
if [ -f /etc/os-release ]; then
6-
. /etc/os-release
7-
if [ "$ID" = "ubuntu" ] && [ "$VERSION_ID" = "24.04" ]; then
8-
echo "This feature does not support Ubuntu 24.04 due to a Python version conflict."
9-
exit 1
10-
fi
11-
fi
12-
134
# Install dependencies
145
apt-get update && apt-get install -y --no-install-recommends apt-transport-https ca-certificates gnupg curl
156

167
# Add the Cloud SDK distribution URI as a package source
178
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
189
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
1910

11+
# Check if the OS is Ubuntu 24.04 and the architecture is arm64, and exit with a message if true
12+
if [ -f /etc/os-release ]; then
13+
. /etc/os-release
14+
if [ "$ID" = "ubuntu" ] && [ "$VERSION_ID" = "24.04" ] && [ "$(uname -m)" = "aarch64" ]; then
15+
echo "Installing google-cloud-cli 502.0.0-0 on Ubuntu 24.04 on arm64 architecture due to https://issuetracker.google.com/issues/383568269."
16+
apt-get update && apt-get install -y google-cloud-cli=502.0.0-0 ${GCLOUD_EXTRA_PACKAGES}
17+
exit 0
18+
fi
19+
fi
20+
2021
# Update and install the Google Cloud SDK
2122
apt-get update && apt-get install -y google-cloud-cli ${GCLOUD_EXTRA_PACKAGES}

0 commit comments

Comments
 (0)