【问题标题】:I am not able to install curl package on ubuntu 11.10我无法在 ubuntu 11.10 上安装 curl 包
【发布时间】:2014-12-11 09:18:26
【问题描述】:

我正在尝试使用: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

谁能告诉我如何解决这个问题。

【问题讨论】:

标签: javascript ubuntu curl


【解决方案1】:

从软件和更新部分连接到最佳服务器 那么

sudo apt-get update
sudo apt-get install curl

【讨论】:

  • 欢迎来到 Stack Overflow。请阅读asking questions。在使用现有答案添加旧问题的答案时,说明您的答案具有哪些现有答案没有的新信息很有用。
【解决方案2】:

在 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-12-19
    • 2012-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多