E: Malformed entry 7 in list file /etc/apt/sources.list.d/google-cloud-sdk.list (Suite) E: The list of sources could not be read

Getting this error when trying to sudo apt-get update. E: Malformed entry 7 in list file /etc/apt/sources.list.d/google-cloud-sdk.list (Suite) E: The list of sources could not be read.

I tried to run sed to remove and no luck.

Please help.

Okay, after following the first 5 steps in the link: cloud.google.com/sdk/docs/quickstart-debian-ubuntu I received the following output:

Your Google Cloud SDK is configured and ready to use!

Run gcloud help config to learn how to change individual settings

This gcloud configuration is called [postaprayerdns]. You can create additional configurations if you work with multiple accounts and/or projects. Run gcloud topic configurations to learn more.

Some things to try next:

Okay. I was able to get into the google-cloud-sdk.list file and edit it using sudo nano /etc/apt/sources.list.d/google-cloud-sdk.list

From there I edited the .list file and deleted line 7 (which stated clear)

I edited these instructions to solve this error: https://askubuntu.com/questions/332669/unable-to-edit-etc-apt-sources-list-file

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

`

Upvotes: 0

Views: 768

Answers (1)

Solved. Used Nano command to edit *.list file, deleted corrupt entry 7, and then saved.

Summary:

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

From there I edited the .list file and deleted line 7 (which stated clear)

I edited these instructions to solve this error: https://askubuntu.com/questions/332669/unable-to-edit-etc-apt-sources-list-file

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

Upvotes: 0

Related Questions