apt Package nano not found or ambiguous name, exiting 更新不成功
cygwin是windows上使用linux的一个软件,非常轻量好使。
在linux中可以apt-get来安装软件,在cygwin中安装软件方式有两种:
1. 重新运行setup安装程序,,然后选择安装即可。
2. 使用apt-cyg来安装软件
首先安装cygwin程序,官网上下载即可。过程中安装
wget
tar
gawk
bzip2
安装cyg-apt
网上的教程都是
wget -P /bin
chmod.exe +x /bin/apt-cyg
apt-cyg update
// 更新源
apt-cyg install ping -u
//使用参数u不必每次都更新源
Working directory is /setup
Mirror is
然而会有各种错误。
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
-#update
apt-cyg update
-#Example use of apt-cyg:
apt-cyg install nano
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/68926.html
- 上一篇:Window10 安装问题汇总
- 下一篇:C#高级编程六十四天