簡體   English   中英

.sh 沒有這樣的文件或目錄,文件確實存在

[英].sh No such file or directory, file does exist

該文件存在,我在相對路徑scripts/start_app.sh中看到它。 我在頂部有正確的shebang。 我正在使用 Ubuntu 22.04,並且通過運行更新了軟件包:

sudo dpkg --add-architecture i386

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

終端中的 ./start_app.sh 仍然產生:“沒有這樣的文件或目錄”

我嘗試對文件進行dos2unix。 不起作用:

$dos2unix start_app.sh

dos2unix: start_app.sh: No such file or directory

dos2unix: Skipping start_app.sh, not a regular file.

有人可以幫我弄這個嗎?

(我的 .sh 文件)

#!/bin/bash
python manage.py runserver 0.0.0.0:8000

vscode 截圖

我懷疑文件可能已損壞。

嘗試運行一些命令進行故障排除:

$file start_app.sh
$ls -l start_app.sh
$stat start_app.sh

請張貼結果。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM