Install Google Cloud SDK on Debian or Ubuntu

watch 1m, 30s
views 2

08:58, 30.07.2026

Article Content
arrow

  • Setup Parameters
  • Step 1: Add the Package Source
  • Step 2: Install Required Dependencies
  • Step 3: Import Google Cloud Public Key
  • Step 4: Refresh apt Repositories
  • Step 5: Begin Google Cloud SDK Installation

Google Cloud SDK is not just a tool, it is actually a collection of tools that are extremely helpful for the management of the Google Cloud. This collection consists of tools for data importing, managing tools, command-line interface, and components that can be crucial for the simplification of the tasks in the cloud.

Here in this guide, we will share step-by-step instructions about the installation process on Ubuntu or Debian.

Setup Parameters

Step 1: Add the Package Source

The initial step in this process is adding Cloud SDK as a package source.

Enter as user {Linux User} on node {Node}

echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

Step 2: Install Required Dependencies

To install the needed dependencies, use the following line:

sudo apt-get -y install apt-transport-https ca-certificates gnupg

Step 3: Import Google Cloud Public Key

The third step is connected with the import of the public key, and the required command for this purpose is:

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

Step 4: Refresh apt Repositories

One more important step that should not be skipped is the update. Specifically, the update of apt repositories is required.

 sudo apt update

Step 5: Begin Google Cloud SDK Installation

The mentioned steps are needed to begin a proper installation process of this tool. Once these processes have been completed, you can use the following line for the finishing of the authentication:

gcloud init

Once that is done you can start using the last needed command:

sudo apt-get install -y google-cloud-sdk

The process of installing Google Cloud SDK on Debian or Ubuntu is fairly straightforward and has only 5 steps to complete. Just follow the instructions and you won’t have any issues with this collection of tools.

Share

Was this article helpful to you?

VPS popular offers

-10%

CPU
CPU
10 Epyc Cores
RAM
RAM
64 GB
Space
Space
400 GB NVMe
Bandwidth
Bandwidth
Unlimited
KVM-NVMe 65536 Linux

€ 135.49 /mo

€
/mo

Billed annually

-21.5%

CPU
CPU
2 Xeon Cores
RAM
RAM
4 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
300 GB
wKVM-SSD 4096 HK Windows

€ 40 /mo

€
/mo

Billed annually

-15.6%

CPU
CPU
2 Xeon Cores
RAM
RAM
512 MB
Space
Space
10 GB SSD
Bandwidth
Bandwidth
1 TB
KVM-SSD 512 Metered Linux

€ 5.33 /mo

€
/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
150 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 16384 Linux

€ 49.99 /mo

€
/mo

Billed annually

-10%

CPU
CPU
6 Epyc Cores
RAM
RAM
8 GB
Space
Space
100 GB NVMe
Bandwidth
Bandwidth
Unlimited
KVM-NVMe 8192 Linux

€ 26.35 /mo

€
/mo

Billed annually

-12%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
20 GB SSD
Bandwidth
Bandwidth
1 TB
KVM-SSD 1024 Metered Linux

€ 8.33 /mo

€
/mo

Billed annually

-10%

CPU
CPU
4 Epyc Cores
RAM
RAM
4 GB
Space
Space
50 GB NVMe
Bandwidth
Bandwidth
Unlimited
aiKVM-NVMe 4096 Linux

€ 17.48 /mo

€
/mo

Billed annually

-9.3%

CPU
CPU
6 Epyc Cores
RAM
RAM
16 GB
Space
Space
150 GB NVMe
Bandwidth
Bandwidth
Unlimited
wKVM-NVMe 16384 Windows

€ 54.49 /mo

€
/mo

Billed annually

-10%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
75 GB SSD
Bandwidth
Bandwidth
Unlimited
wKVM-SSD 2048 Windows

€ 10.23 /mo

€
/mo

Billed annually

-10%

CPU
CPU
4 Epyc Cores
RAM
RAM
4 GB
Space
Space
50 GB NVMe
Bandwidth
Bandwidth
Unlimited
KVM-NVMe 4096 Linux

€ 16.45 /mo

€
/mo

Billed annually

Other articles on this topic

Two-factor authentication
Two-factor authentication
cookie

Accept cookies & privacy policy?

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the HostZealot website.