我试图让 Anki 像这样:
wget https://anki.googlecode.com/files/anki-2.0.12.deb
(这是最新版本)给我:
zsh: no such file or directory: wget https://anki.googlecode.com/files/anki-2.0.12.deb
我正在为我的系统编写安装脚本,该脚本同样适用于 Skype 和 GoogleChrome,不知道问题是什么?
答案1
脚本或命令没有问题。但为了您确认,我在此提供我的日志
frank-Jai% wget https://anki.googlecode.com/files/anki-2.0.12.deb
--2013-08-02 19:09:12-- https://anki.googlecode.com/files/anki-2.0.12.deb
Resolving anki.googlecode.com (anki.googlecode.com)... 74.125.135.82, 2404:6800:4001:c01::52
Connecting to anki.googlecode.com (anki.googlecode.com)|74.125.135.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2958570 (2.8M) [application/x-debian-package]
Saving to: ‘anki-2.0.12.deb’
100%[======================================>] 29,58,570 52.0KB/s in 53s
2013-08-02 19:10:07 (54.1 KB/s) - ‘anki-2.0.12.deb’ saved [2958570/2958570]
我已经通过编写一些脚本完成了与您尝试做的同样的事情。这是日志,
frank-Jai% cat install.sh
#!/bin/zsh
wget https://anki.googlecode.com/files/anki-2.0.12.deb
done
输出:
frank-Jai% chmod +x install.sh
frank-Jai% ./install.sh
--2013-08-02 19:15:08-- https://anki.googlecode.com/files/anki-2.0.12.deb
Resolving anki.googlecode.com (anki.googlecode.com)... 74.125.135.82, 2404:6800:4001:c01::52
Connecting to anki.googlecode.com (anki.googlecode.com)|74.125.135.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2958570 (2.8M) [application/x-debian-package]
Saving to: ‘anki-2.0.12.deb.1’
查看并验证您的脚本以找出错误所在。
希望有点帮助。