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

-8.8%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
400 GB HDD
Bandwidth
Bandwidth
300 Gb
wKVM-HDD HK 16384 Windows

45.95 /mo

/mo

Billed annually

-10%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
100 GB HDD
Bandwidth
Bandwidth
Unlimited
KVM-HDD 4096 Linux

15 /mo

/mo

Billed annually

-10%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
60 GB HDD
Bandwidth
Bandwidth
Unlimited
KVM-HDD 2048 Linux

7.7 /mo

/mo

Billed annually

-13.1%

CPU
CPU
2 Xeon Cores
RAM
RAM
512 MB
Space
Space
10 GB SSD
Bandwidth
Bandwidth
300 GB
KVM-SSD 512 HK Linux

7 /mo

/mo

Billed annually

-12.3%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
150 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-wKVM-SSD 16384 Windows

237 /mo

/mo

Billed annually

-21.5%

CPU
CPU
2 Xeon Cores
RAM
RAM
2 GB
Space
Space
75 GB SSD
Bandwidth
Bandwidth
300 GB
wKVM-SSD 2048 HK Windows

26 /mo

/mo

Billed annually

-18.4%

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

24 /mo

/mo

Billed annually

-10%

CPU
CPU
8 Epyc Cores
RAM
RAM
32 GB
Space
Space
200 GB NVMe
Bandwidth
Bandwidth
Unlimited
Keitaro KVM 32768
OS
CentOS
Software
Software
Keitaro

77.54 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
MT5 KVM 8192 Windows

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

Other articles on this topic

Thank You Page
Thank You Page
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.