Cannot Install Google Cloud’s command line interface (CLI)

Hi, I have problem installing Google Cloud’s CLI, as seen in screenshot attached. I’ve spent two days and searched everywhere and can’t find a solution.

I followed the fast.ai instructions to install Google CLI (https://course.fast.ai/start_gcp.html#step-2-install-google-cli) but encountered:

Command 'curl' not found, but can be installed with:

sudo apt install curl

gpg: no valid OpenPGP data found.

I then typed

sudo apt install curl

but got

E: Malformed line 3 in source list /etc/apt/sources.list.d/google-cloud-sdk.list (type)
E: The list of sources could not be read.

My system is Ubuntu 18.04.4 LTS on a ThinkPad T460.

Anyone can help with this would be greatly appreciated! I’m poor but happy to pay $10 for anyone that can solve the problem for me. Thanks very much in advance!

I solved it!! Looks like the file /etc/apt/sources.list.d/google-cloud-sdk.list is corrupted.

Just remove the file by typing

sudo rm /etc/apt/sources.list.d/google-cloud-sdk.list

And reinstall Google Cloud CLI.