Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

startup script yum install fails with "signature could not be verified for google-cloud-sdk"

I reran the startup script using following command: sudo google_metadata_script_runner --script-type startup

All the yum install commands are failing with following error:

startup-script: INFO startup-script-url: Retrieving key from https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
startup-script: INFO startup-script-url: https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for google-cloud-sdk
startup-script: INFO startup-script-url: Trying other mirror.
startup-script: INFO startup-script-url:  One of the configured repositories failed (Google Cloud SDK),

Any idea how I could fix this while instance provisioning or any workaround?

like image 543
rockoder Avatar asked Sep 02 '25 09:09

rockoder


1 Answers

To be honest I have found this on google, not sure if this helps but maybe you can try it out anyway.

1) Disable Caching in yum config /etc/yum.conf:

http_caching=none

2) Delete tmp yum files:
rm -r /var/tmp/yum*

3) restart machines

4) cleanup yum:

yum clean metadata  
yum clean all  
yum update  
like image 199
Christian Avatar answered Sep 05 '25 07:09

Christian