您在這裡

Google Cloud SDK 140.0.0/147.0.0 升級

分類: 

最近Google Cloud的系統元件升級真的越來越差,一但打下 apt-get upgrade,接下來就是好幾天的文件搜尋.........

stackdriver-agent的問題過了三個月以上了還是沒解,Extension是做爽的嗎...

 

現在是升級google-cloud-sdk,立馬出現:

設定 google-cloud-sdk (140.0.0-0ubuntu1~16.04.1) ...
  File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/httplib2/python3/httplib2/__init__.py", line 347
    print('%s:' % h, end=' ', file=self._fp)
                        ^
SyntaxError: invalid syntax

  File "/usr/lib/google-cloud-sdk/.install/.backup/lib/third_party/prompt_toolkit/examples/asyncio-prompt.py", line 26
    async def print_counter():
            ^
SyntaxError: invalid syntax

  File "/usr/lib/google-cloud-sdk/.install/.backup/platform/gsutil/third_party/httplib2/python3/httplib2/__init__.py", line 347
    print('%s:' % h, end=' ', file=self._fp)
                        ^
SyntaxError: invalid syntax

試著apt-get remove再apt-get install,居然還直接把ntp刪除掉是那招!

 

最後直接把整個sdk清掉

apt-get purge google-cloud-sdk
apt-get autoremove

 

再照這裡的說明重裝一次.....

https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu

授權: