我正在尝试 Meteor http://meteor.com/examples/leaderboard
我必须使用我在 Windows 上熟悉的 CURL。
现在我尝试在 Ubuntu 12.04 上安装它。
但我收到这些错误:
kevin@ubuntu:~$ curl https://install.meteor.com | sh
The program 'curl' is currently not installed. You can install it by typing:
sudo apt-get install curl
kevin@ubuntu:~$ apt-get curl
E: Invalid operation curl
kevin@ubuntu:~$ sudo apt-get curl
[sudo] password for kevin:
E: Invalid operation curl
Run Code Online (Sandbox Code Playgroud)
如何安装 CURL?
解决了:
我做了这个命令
sudo sed -i -e 's/us.archive.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
然后我可以做sudo apt-get update然后sudo apt-get install curl
成功安装了curl。
更新:
很抱歉明显的错误。我昨天也试过了,在那里我确实输入了正确的命令,它给了我这个错误信息:
kevin@ubuntu:~$ sudo apt-get install curl …Run Code Online (Sandbox Code Playgroud) curl ×1