Install Google Cloud SDK on Debian or Ubuntu
08:58, 30.07.2026
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.