2014-04-02 3 views
1

를 찾을 수 없습니다Cygwin에서 apt-get을 : 명령은 내가 Cygwin에서 톰 창문 7을 설치

나는 또한 내가이 오류를 얻을 - 명령

apt-get install gstreamer-dbus-media-service gstreamer-tools gstreamer0.10-alsa gstreamer0.10-buzztard gstreamer0.10-buzztard-doc gstreamer0.10-crystalhd gstreamer0.10-doc gstreamer0.10-ffmpeg gstreamer0.10-ffmpeg-dbg gstreamer0.10-fluendo-mp3 gstreamer0.10-gconf gstreamer0.10-gnomevfs gstreamer0.10-gnonlin gstreamer0.10-gnonlin-dbg gstreamer0.10-gnonlin-doc gstreamer0.10-hplugins gstreamer0.10-nice gstreamer0.10-packagekit gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-doc gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-base gstreamer0.10-plugins-base-apps gstreamer0.10-plugins-base-dbg gstreamer0.10-plugins-base-doc gstreamer0.10-plugins-cutter gstreamer0.10-plugins-good gstreamer0.10-plugins-good-doc gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-doc gstreamer0.10-pocketsphinx gstreamer0.10-pulseaudio gstreamer0.10-qapt gstreamer0.10-sdl gstreamer0.10-tools gstreamer0.10-vaapi gstreamer0.10-vaapi-doc gstreamer0.10-x 

를 사용하려고하면, 일부 패키지를 설치해야

:

bash: apt-get: command not found 

나는이 링크

012,359,847,126,147,793,889를 예 -에 대한 유사한 문제 및 솔루션을 보았다3210

하지만이 작동하지

편집 : 내가 명령을 따라이 오류가 내가 얻을 수 있습니다 :

$ apt-cyg install nano 
/usr/bin/apt-cyg: line 19: $'\r': command not found 
/usr/bin/apt-cyg: line 27: syntax error near unexpected token `||' 
'usr/bin/apt-cyg: line 27: ` || test "-$GAWK-" = "--" || test "-$XZ-" = "--" 

내가 어떤 도움을 드릴 것입니다.

감사합니다.

+1

이 답변 (http://stackoverflow.com/questions/9751845/apt-get-for-cygwin)은 연결 한 동일한 링크에서 가리키고 작동하지 않는다고 주장하기 때문에 왜 작동하지 않았는 지 설명했다면 – merlin2011

+0

내 질문을 편집했습니다. 고맙습니다. 제가 제공하는 링크는 35 개의 "좋아하는 것"이 ​​포함 된 답변입니다. – user3378689

+0

@ user3378689 "좋아하는 것"은 * upvotes *, 그 반대 인 * downvotes *라고합니다. . –

답변

2

표시되는 오류는 cygwin을 어지럽히는 Windows 스타일의 줄 바꿈과 관련이있는 것으로 보입니다.

dos2unix을 사용할 수있는 경우 apt-cyg 인 곳에 dos2unix apt-cyg을 실행 해보십시오.

dos2unix이없는 경우 설치 위치는 this question입니다.

또한 this related question을 살펴보십시오. 사용에

명확한 설명 : 파일 apt-cyg

  1. 실행 dos2unix. 즉, dos2unix apt-cyg 명령을 실행하십시오. 목적은 파일 apt-cyg을 "고치는"것이므로, 제대로 작동 할 것입니다, 지금 실패하고 있습니다.
  2. 질문에서와 같은 방식으로 apt-cyg을 실행하십시오. 앞에 dos2unix과 함께 명령을 추가하지 마십시오.
+0

확인 나는 DOS2UNIX을 시도하고 내가하려고 할 때이있어 I "DOS2UNIX는 apt-cyg 나노 설치"DOS2UNIX을 : 유닉스 형식으로 파일 APT-cyg 변환 ... DOS2UNIX : 1 호선 DOS2UNIX에서 찾아 진 기호 × 00을 : 바이너리 파일 설치 건너 뛰기 dos2unix : 1 행에서 이진 기호 0x00이 발견되었습니다. dos2unix : 바이너리 파일을 건너 뛰는 중입니다. 나는 이것이 괜찮다고 생각합니다. – user3378689

+0

@ user3378689, 명확한 설명을 위해 수정 된 답변을 참조하고 초기 모호성에 대해 사과드립니다. – merlin2011