cygwin下安装应用 cyg-apt Package nano not found or ambiguous name, exiting 更新不成功

来源:互联网 发布:图书数据哪个网站多 编辑:程序博客网 时间:2024/05/19 02:01

cygwin是windows上使用linux的一个软件,非常轻量好使。

在linux中可以apt-get来安装软件,在cygwin中安装软件方式有两种:
1. 重新运行setup安装程序,然后选择安装即可。
2. 使用apt-cyg来安装软件

首先安装cygwin程序,官网上下载即可。过程中安装
wget
tar
gawk
bzip2

安装cyg-apt
网上的教程都是

  1. wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg -P /bin
  2. chmod.exe +x /bin/apt-cyg
  3. apt-cyg update
    // 更新源
    apt-cyg install ping -u
    //使用参数u不必每次都更新源
    Working directory is /setup
    Mirror is http://mirrors.163.com/cygwin/

然而会有各种错误。
superuser上的回答
正确姿势ref:

-# install apt-cyg
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
-#install
install apt-cyg /bin
-#link source
apt-cyg -m http://mirrors.163.com/cygwin/
-#update
apt-cyg update
-#Example use of apt-cyg:
apt-cyg install nano

官方参考

0 0
原创粉丝点击