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
2 Xeon Cores
RAM
RAM
512 MB
Space
Space
10 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 512 Linux

5.2 /mo

/mo

Billed annually

-24.7%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
50 GB SSD
Bandwidth
Bandwidth
4 TB
KVM-SSD 4096 Metered Linux

31 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
200 GB HDD
Bandwidth
Bandwidth
Unlimited
KVM-HDD 8192 Linux

25.25 /mo

/mo

Billed annually

-10%

CPU
CPU
4 Epyc Cores
RAM
RAM
4 GB
Space
Space
50 GB NVMe
Bandwidth
Bandwidth
Unlimited
Keitaro KVM 4096
OS
CentOS
Software
Software
Keitaro

18.1 /mo

/mo

Billed annually

-15.6%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
20 GB SSD
Bandwidth
Bandwidth
30 Mbps
DDoS Protected SSD-KVM 1024 Linux

38 /mo

/mo

Billed annually

-15.4%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
60 Mbps
DDoS Protected SSD-wKVM 4096 Windows

73 /mo

/mo

Billed annually

-9.5%

CPU
CPU
8 Xeon Cores
RAM
RAM
32 GB
Space
Space
200 GB SSD
Bandwidth
Bandwidth
Unlimited
wKVM-SSD 32768 Windows

73.99 /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

-15.5%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
80 Mbps
DDoS Protected SSD-KVM 8192 Linux

95 /mo

/mo

Billed annually

-20.6%

CPU
CPU
6 Xeon Cores
RAM
RAM
8GB
Space
Space
100GB SSD
Bandwidth
Bandwidth
500GB
KVM-SSD 8192 HK Linux

59 /mo

/mo

Billed annually

Other articles on this topic

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.