I followed the instructions in this url, https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu and when I typed the command
sudo apt-get update && sudo apt-get install google-cloud-sdk
I got this errors:
E:Malformed line 5 in source list/etc/apt/sources.list.d/google-cloud-sdk.list(dist parse).
E: The list of sources could not be read.
I wrote the above command in virtualenv. I cannot understand why this error happens. All other step is completed, so I cannot understand why this happens. How should I fix this?
This error can happen when fetching the latest repositories during " apt-get update " was interrupted, and a subsequent " apt-get update " is not able to resume the interrupted fetch. In this case, remove the content in /var/lib/apt/lists before retrying " apt-get update ".
Check the /usr/bin/ directory after installing the APT package to make sure it was installed correctly. Run the find apt-get command again if the file is empty. If no result is displayed, the only option is to reinstall the operating system. This may solve the issue.
this helped me:
curl https://sdk.cloud.google.com | bash
after:
exec -l $SHELL
and finally:
gcloud init
it's an interactive installer from google, more info here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With