采取的形式here - 解释如何安装apt-cyg
如何为Cygwin安装apt-cyg?
Install apt-cyg
You may have heard of programs like apt-get (Ubuntu), yum/dnf (Fedora), pacman (Arch), or brew (Mac OS X)... .. .The analogous program for Cygwin is called apt-cyg.
Installing apt-cyg is simple. First, save this file: https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg . Then, use File Explorer to find the file in your Downloads folder and move it into C:\cygwin\bin. Then, open Cygwin and enter "chmod +x /bin/apt-cyg". This tells Cygwin that you want to be able to execute the apt-cyg command. Lastly, enter "apt-cyg mirror ftp://sourceware.org/pub/cygwin ". This sets up apt-cyg to use the official repository when downloading programs.
听起来很简单。但我有一个错误。
本教程没有指定使用什么名称和扩展名来保存该文件。
我把它保存为apt-cyg.txt
,并将其移到C:\cygwin64\bin
这是行不通的。当运行apt-cyg
,我得到的错误:bad interpreter: No such file or directory
我的猜测是,扩展名或文件名是坏的。我应该使用什么名字和扩展名?
这个过程还有其他步骤吗?
注意:我刚在Windows 10上安装了cygwin。请不要假设我已安装其他工具。
看来你已经下载了带有CRLF行结束符的文本文件。尝试使用'd2u/bin/apt-cyg'或者下载没有扩展名的文件,并保存为文件类型'All file *。*' – matzeri