Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when i run apt-cyg command #138

Open
MahdiAbediniTCH opened this issue Nov 22, 2020 · 2 comments
Open

Errors when i run apt-cyg command #138

MahdiAbediniTCH opened this issue Nov 22, 2020 · 2 comments

Comments

@MahdiAbediniTCH
Copy link

When i run apt-cyg, no matter what arguments i give, it returns this:
/usr/bin/apt-cyg: line 25: $'\r': command not found
/usr/bin/apt-cyg: line 121: syntax error near unexpected token $'{\r'' 'usr/bin/apt-cyg: line 121: function wget {
line 25 doesn't even have any code in it.

@viciousvex
Copy link

This happens when you use a git installation on Windows to clone this repository. Then CRLF line endings are automatically added to files, although bash doesn't like these (\r stands for "Carriage return") and is not used in Unix sytems or cygwin. Just install dos2unix in cygwin and do "dos2unix apt-get" to change Windows line feeds to Unix ones.

@MahdiAbediniTCH
Copy link
Author

MahdiAbediniTCH commented Feb 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants