我无法在ubuntu 11.10上安装curl包

时间:2014-10-16 05:46:36

标签: javascript ubuntu curl

我正在尝试使用以下代码安装meteor:curl https://install.meteor.com | /bin/sh 终端上的命令,但它给了我以下错误:

 The program 'curl' is currently not installed.  You can install it by typing:
 sudo apt-get install curl

当我尝试按命令安装curl时:sudo apt-get install curl 出现以下错误:

 Reading package lists... Done
 Building dependency tree       
 Reading state information... Done
 Package curl is not available, but is referred to by another package.
 This may mean that the package is missing, has been obsoleted, or
 is only available from another source

 E: Package 'curl' has no installation candidate

任何人都可以告诉我如何解决这个问题。

2 个答案:

答案 0 :(得分:1)

请参阅askubuntu上的this post

sudo sed -i -e 's/us.archive.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install curl

答案 1 :(得分:-2)

从“软件和更新”部分连接到最佳服务器 然后

sudo apt-get update
sudo apt-get install curl