我正在尝试流星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
如何安装CURL?
解决了它:
我做了这个命令
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
成功安装curl。
更新:
很抱歉出现明显的错误。我昨天也尝试过,在那里我键入了正确的命令,这给了我这个错误信息:
kevin@ubuntu:~$ sudo apt-get install curl
[sudo] password for kevin:
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:
试过apt-cache search curl | grep -i curl
命令
kevin@ubuntu:~$ apt-cache search curl | grep -i curl
curlftpfs - filesystem to access FTP hosts based on FUSE and cURL
flickcurl-doc - utilities to call the Flickr API from command line - documentation
flickcurl-utils - utilities to call the Flickr API from command line
gambas2-gb-net-curl - The Gambas advanced networking component
gnupg-curl - GNU privacy guard - a free PGP replacement (cURL)
libcupt2-0-downloadmethod-curl - alternative front-end for dpkg -- libcurl download method
libcurl-ocaml - OCaml curl bindings (Runtime Library)
libcurl-ocaml-dev - OCaml libcurl bindings (Development package)
libflickcurl-dev - C library for accessing the Flickr API - development files
libflickcurl0 - C library for accessing the Flickr API
libflickcurl0-dbg - C library for accessing the Flickr API - debugging symbols
libghc-curl-dev - GHC libraries for the libcurl Haskell bindings
libghc-curl-doc - Documentation for the libcurl Haskell bindings
libghc-curl-prof - Profiling libraries for the libcurl Haskell bindings
libghc-download-curl-dev - High-level file download based on URLs
libghc-download-curl-doc - High-level file download based on URLs; documentation
libghc-download-curl-prof - High-level file download based on URLs; profiling libraries
libghc-hxt-curl-dev - LibCurl interface for HXT
libghc-hxt-curl-doc - LibCurl interface for HXT; documentation
libghc-hxt-curl-prof - LibCurl interface for HXT; profiling library
libghc6-curl-dev - transitional dummy package
libghc6-curl-doc - transitional dummy package
libghc6-curl-prof - transitional dummy package
liblua5.1-curl-dev - libcURL development files for the Lua language version 5.1
liblua5.1-curl0 - libcURL bindings for the Lua language version 5.1
libwww-curl-perl - Perl bindings to libcurl
slang-curl - transfer files using HTTP and FTP from S-Lang
spl-curl - SPL Programming Language -- curl adapter
tclcurl - Tcl bindings to libcurl
xmms2-plugin-curl - XMMS2 - curl transport for HTTP
php5-curl - CURL module for php5
libcurl3-gnutls - Multi-protocol file transfer library (GnuTLS)
libcurl3-nss - Multi-protocol file transfer library (NSS)
python-pycurl - Python bindings to libcurl
libcurl3 - Multi-protocol file transfer library (OpenSSL)
更新3:sudo apt-get update
在我运行
更新之前,它做了吗。
但这无济于事。
kevin@ubuntu:~$ sudo apt-get install curl libcurl3 libcurl3-dev php5-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
Package libcurl3-dev 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
E: Package 'libcurl3-dev' has no installation candidate
试了一下,我的更新2
—
凯文痴笑
您可以随时从curl.haxx.se/download.html自己下载它 并进行构建。您是否更改了存储库?我可以做到,没有问题,没有任何错误。我感兴趣的是为什么apt会给您结果,然后又不允许安装。您在其他任何软件上也有同样的经历吗?
—
catalesia
请包括的输出
—
豪尔赫·苏亚雷斯·德利斯
sudo apt-get update
。我认为您的系统缺少某些软件存储库。
我并没有真正改变任何东西,也没有安装任何程序。几乎是全新安装。因此我也不是很了解。我不知道如何悲伤地使自己卷曲。
—
凯文·辛珀
apt-cache search curl | grep -i curl
说什么?