question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

/usr/bin/env: ‘bash\r’: No such file or directory. Now fixed with simple update `git pull --rebase`

See original GitHub issue

When running ./setup.sh, I receive this message:

/usr/bin/env: ‘bash\r’: No such file or directory

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.8.2-0ubuntu2).
qemu-system is already the newest version (1:4.2-3ubuntu6.21).
qemu-utils is already the newest version (1:4.2-3ubuntu6.21).
python3-pip is already the newest version (20.0.2-5ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

/usr/bin/env: ‘python3\r’: No such file or directory

qemu-img: Could not open 'BaseSystem.dmg': Could not open 'BaseSystem.dmg': No such file or directory
/usr/bin/env: ‘bash\r’: No such file or directory

I’ve tried using dos2unix setup.sh, and sed $‘s/\r$//’ setup.sh before ./setup.sh, and still having issues. Any idea?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
notAperson535commented, Mar 30, 2022

I’ve tried using dos2unix setup.sh, and sed $‘s/\r$//’ setup.sh before ./setup.sh, and still having issues. Any idea?

setup.sh is not the problem. It’s the fetch-macOS-v2.py file on line 1

0reactions
notAperson535commented, Mar 30, 2022

Once setup.sh finsishes , press ctrl+c and run sudo HEADLESS=1 ./basic.sh. Once this is done, download VNC Viewer, here, then type localhost:5900 into the top to connect to the vm using vnc. Whenever you want to load up the machine again, run sudo HEADLESS=1 ./basic.sh, NOT ./setup.sh.

@ctthomas

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error "/usr/bin/env: 'bash': No such file or directory ...
Describe the bug Yesterday I uninstalled node.js and installed nvm to update node to version 16.13.2, and today when I tried to push ......
Read more >
How to fix "corrupted" interactive rebase? - Stack Overflow
git /rebase-apply/onto': No such file or directory. So I looked at the git documentation for rebasing and found another command: git rebase --quit....
Read more >
git-rebase Documentation - Git
How to handle commits that are not empty to start and are not clean cherry-picks of any upstream commit, but which become empty...
Read more >
Introduction to Git rebase and force-push - GitLab Docs
This guide helps you to get started with rebasing, force-pushing, and fixing merge conflicts locally. Before diving into this document, make sure you...
Read more >
WSL /usr/bin/env: 'bash\r': No such file or directory ... - YouTube
WSL / usr/bin/env : 'bash\r': No such file or directory [PROBLEM SOLVED ]Restart your WSL using this command:wsl --shutdown❤ Thanks For ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found