linux - Windows Linux Bash 运行时错误的变量名称/bin/sh -c "$(curl -fsS https://install.airshipcms.io)"

标签 linux shell ubuntu curl windows-subsystem-for-linux

在我更换主板/CPU 之前一切正常,但我不确定错误消息的含义。

运行安装命令后

/bin/sh -c "$(curl -fsS https://install.airshipcms.io)"

我的 windows ubuntu bash shell 返回了

Starting Airship Launcher installation for ubuntu Linux64                                                                                                                                                                                       
Will install version 2.1.1                                                                                                                                                                                                                      
Downloading https://install.airshipcms.io/Linux64/airship-2.1.1.tar.bz2                                                 
To /tmp/AirshipLauncher.65/airship-2.1.1.tar.bz2                                                                        
Added ~/.airship-bin to $PATH in ~/.profile                                                                             
/bin/sh: 504: export: (x86)/Intel/iCLS: bad variable name    

我的猜测是因为我已经安装了 mobo/cpu 的预升级变量名称已经在 ~/.profile 中了?我不确定如何编辑它,当我运行 cat ~/.profile 时,它​​呈现了一堆不可读的字符。 谢谢。

编辑:我已经尝试重新安装我的 linux shell,但无济于事。

最佳答案

好的,所以修复是用 bash 替换 sh,这样工作命令是

/bin/bash -c "$(curl -fsS https://install.airshipcms.io)"

归功于这个人 https://github.com/probonopd/PowerShell/commit/2441d99a7405b488dc9289789edb636dc2cdcdfc

关于linux - Windows Linux Bash 运行时错误的变量名称/bin/sh -c "$(curl -fsS https://install.airshipcms.io)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44481861/

相关文章:

shell - 在 AWK 中运行 shell 命令

ubuntu - ubuntu中对话框周围的颗粒状显示

php - 设置用户通过php访问文件的权限

linux - 无法启动 mongodb 服务

r - 包的安装具有非零退出状态 - Linux 服务器

python - 如何在不使用 MacPorts 或 Fink 的情况下在 OS X Leopard 上安装 lxml?

c++ - 自由人 : Unable to compile the Java API on Ubuntu

c++ - 为什么 'dd' 从管道读取的速度比我自己使用 ifstream 的程序更快?

linux - 如何根据标签将单个 XML 文件拆分为多个

linux - UNIX 排序忽略空格