请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
显示全部楼层
3
帖子
0
勋章
13
Y币

[开发工具] api cloud linux版本安装出错

[复制链接]
发表于 2021-12-2 11:25:48
本帖最后由 BIP997530 于 2021-12-2 11:27 编辑

sudo dpkg -istudio3-linux-v3.2.0.deb
(Reading database ... 555180 files and directories currently installed.)
Preparing to unpackstudio3-linux-v3.2.0.deb ...
/usr/bin/env: ‘bash\r’: No such file or directory
dpkg: warning: old apicloudstudio3 package pre-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead ...
/usr/bin/env: ‘bash\r’: No such file or directory
dpkg: error processing archivestudio3-linux-v3.2.0.deb (--install):
new apicloudstudio3 package pre-removal script subprocess returned error exit status 127
/usr/bin/env: ‘bash\r’: No such file or directory
dpkg: error while cleaning up:
installed apicloudstudio3 package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
studio3-linux-v3.2.0.deb                                    
              
   
本帖最后由 特特法爷 于 2021-12-2 11:46 编辑

安装的路径没有权限把
3
帖子
0
勋章
13
Y币
我用的sudo
本帖最后由 特特法爷 于 2021-12-2 16:40 编辑

看错误提示,应该是让你把旧的移除了,重新下载最新的安装包
3
帖子
0
勋章
13
Y币
安装包就是官网的,最新的
3
帖子
0
勋章
13
Y币
网上对这个错误的解释是脚本文件出错
/usr/bin/env: ‘bash\r’: No such file or directory

错误原因:这主要是因为bash后面多了\r这个字符的原因。在linux终端下,输出\r会什么都不显示,只是把光标移到行首。于是终端虽然输出了/usr/bin/env bash,但是碰到\r后,光标会被移到行首,接着输出了:No such file or directory把前面的覆盖掉了。于是出现了那个莫名其妙的出错信息了

解决办法:

    用vim打开sh脚本文件, 重新设置文件的格式

    :set ff 然后回车  再重新设置下文件格式:

    :set ff=unix 然后保存退出
    :wq! 回车
3
帖子
0
勋章
13
Y币
这个是linux版本的安装包的bug,需要开发者去改
您需要登录后才可以回帖 登录

本版积分规则