I try to install gcloud CLI
in my Linux and I am following the documentation here.
From the installation part 1:
Add the gcloud CLI distribution URI as a package source. If your distribution supports the signed-by option, run the following command:
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
If your distribution doesn't support the signed-by option, run the following command:
echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
I don't understand what the signed-by
option means in the documentation and I cannot find any related information in Ubuntu Documentation
.
Could you give me some advice/hints? Thanks.
Note: I am using WSL2 with Ubuntu v20
apt-key
is deprecated (but still supported in Ubutnu 21.10, don't know what will happen in Ubuntu 22.04). See link above. โ Lorenz Keel Feb 09 '22 at 14:04