When I am trying to use any command like sudo apt-get update then I am getting
E: Conflicting values set for option Signed-By regarding source https://packages.cloud.google.com/apt/ cloud-sdk: /usr/share/keyrings/cloud.google.gpg !=
E: The list of sources could not be read.
E: Conflicting values set for option Signed-By regarding source https://packages.cloud.google.com/apt/ cloud-sdk: /usr/share/keyrings/cloud.google.gpg !=
E: The list of sources could not be read
Here is my cd
to /usr/share/keyrings/
rupeshiya@devil:/usr/share/keyrings$ ls
ubuntu-archive-keyring.gpg ubuntu-esm-keyring.gpg
ubuntu-archive-removed-keys.gpg ubuntu-fips-keyring.gpg
ubuntu-cloudimage-keyring.gpg ubuntu-fips-updates-keyring.gpg
ubuntu-cloudimage-removed-keys.gpg ubuntu-master-keyring.gpg
Here is my contents of file /etc/apt/sources.list.d/google-cloud-sdk.list
rupeshiya@devil:/etc/apt/sources.list.d$ cat google-cloud-sdk.list
deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main
deb https://packages.cloud.google.com/apt cloud-sdk main
deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main
deb http://packages.cloud.google.com/apt cloud-sdk main
How can I fix this? I am not a very experienced Ubuntu user but trying to implement things in Ubuntu.
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
(do not remove hyphen) – Kulfy Jul 06 '19 at 15:43/etc/apt/sources.list.d/google-cloud-sdk.list
please? – steeldriver Jul 06 '19 at 21:04/etc/apt/sources.list.d/google-cloud-sdk.list
.Please help to fix this. – Rupesh Jul 09 '19 at 09:33[signed-by=xxxxx]
and a regular unsigned version of the same repositories (hence the messagesxxxxx !=
)? I suggest commenting out the unsigned entries (the 2nd and 4th lines). – steeldriver Jul 09 '19 at 12:34