.sh没有这样的文件或目录,文件确实存在
文件存在,我在相对路径脚本/start_app.sh中看到了它。我在顶部的shebang正确。我正在使用Ubuntu 22.04,并且我已经通过运行:
sudo dpkg -add-Archituction i386
sudo apt-apt-get install libc6:i386 libncurses5:i386 libstdc ++ 6:i386 i386
./start_app.sh在终端中仍然产生:“没有这样的文件或目录”,
我尝试dos2unix。无法使用:
$ dos2unix start_app.sh
dos2unix:start_app.sh:no这样的文件或目录
dos2unix:skipping start_app.sh,而不是常规文件。
有人可以帮我吗?
(我的.sh文件)
#!/bin/bash
python manage.py runserver 0.0.0.0:8000
The file exists, I see it in the relative path scripts/start_app.sh. I have the shebang correct at the top. I'm using Ubuntu 22.04 and I've updated the packages by running:
sudo dpkg --add-architecture i386
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
./start_app.sh in terminal still yields: "No such file or directory"
I try to dos2unix the file. Doesn't work:
$dos2unix start_app.sh
dos2unix: start_app.sh: No such file or directory
dos2unix: Skipping start_app.sh, not a regular file.
Can someone help me with this?
(my .sh file)
#!/bin/bash
python manage.py runserver 0.0.0.0:8000
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑该文件可能会损坏。
尝试运行一些命令进行故障排除:
请发布结果。
I suspect the file could be corrupted.
Try to run a few commands for troubleshooting:
Please post the results.