【问题标题】:Fully un-installing google cloud sdk完全卸载 google cloud sdk
【发布时间】:2017-09-09 20:39:32
【问题描述】:

很久以前我试图从我的计算机上卸载 google cloud sdk,但是当我登录到终端时,我会收到以下消息:

Last login: Sat Sep  9 12:40:05 on console
You have new mail.
-bash: /Users/me/google-cloud-sdk/path.bash.inc: No such file or directory
-bash: /Users/me/google-cloud-sdk/completion.bash.inc: No such file or directory
ME:~ myshell$ 

我有tried this answer,但问题是我没有谷歌云帐户了。

我也遇到了死胡同on this one 以及 b/c 我的计算机上似乎不存在任何文件或文件夹。

我该如何解决这个问题?

【问题讨论】:

    标签: ssh terminal google-cloud-platform


    【解决方案1】:

    您必须编辑您的 .bashrc 并删除对 gloud-cloud-sdk 的引用,以查找类似的行

    source "$CLOUD_SDK/completion.bash.inc"
    source "$CLOUD_SDK/paths.bash.inc"
    

    另外,您可能需要删除 ~/.config/gcloud

    【讨论】:

    • 我试图找到 ~/.config/gcloud 并且它不存在。另外,我无法访问我的 .bashrc。我试过“open -t ~/.bashrc”,终端只返回一个“>”
    • 试试vim ~/.bashrc
    • 这就是我运行该命令时发生的情况。 ME:~ myshell$ vim ~/.bashrc export PATH="$PATH:$HOME/.rvm/bin" # 将 RVM 添加到 PATH 以进行脚本编写 ~ "~/.bashrc" 2L, 68C
    • 尝试切换shell,例如输入csh,然后编辑/修复您的.basrc.profile
    • csh 和 open -t ~/.bashrc 允许我编辑 .bashrc 但没有与 gcloud 相关的内容,只有相同的“ export PATH="$PATH:$HOME/.rvm/bin " # 将 RVM 添加到 PATH 以进行脚本编写"
    猜你喜欢
    • 2016-07-20
    • 1970-01-01
    • 1970-01-01
    • 2015-12-26
    • 2017-10-03
    • 2014-01-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多