Я пробую Метеор http://meteor.com/examples/leaderboard
Я должен использовать CURL, с которым я знаком в Windows.
Теперь я пытаюсь установить его на Ubuntu 12.04.
Но я получаю эти ошибки:
kevin@ubuntu:~$ curl https://install.meteor.com | shThe program 'curl' is currently not installed. You can install it by typing:sudo apt-get install curlkevin@ubuntu:~$ apt-get curlE: Invalid operation curlkevin@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... DoneBuilding dependency tree Reading state information... DonePackage curl is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'curl' has no installation candidate
ОБНОВЛЕНИЕ 2:
Попробовал apt-cache search curl | grep -i curl
команда
kevin@ubuntu:~$ apt-cache search curl | grep -i curlcurlftpfs - filesystem to access FTP hosts based on FUSE and cURLflickcurl-doc - utilities to call the Flickr API from command line - documentationflickcurl-utils - utilities to call the Flickr API from command linegambas2-gb-net-curl - The Gambas advanced networking componentgnupg-curl - GNU privacy guard - a free PGP replacement (cURL)libcupt2-0-downloadmethod-curl - alternative front-end for dpkg -- libcurl download methodlibcurl-ocaml - OCaml curl bindings (Runtime Library)libcurl-ocaml-dev - OCaml libcurl bindings (Development package)libflickcurl-dev - C library for accessing the Flickr API - development fileslibflickcurl0 - C library for accessing the Flickr APIlibflickcurl0-dbg - C library for accessing the Flickr API - debugging symbolslibghc-curl-dev - GHC libraries for the libcurl Haskell bindingslibghc-curl-doc - Documentation for the libcurl Haskell bindingslibghc-curl-prof - Profiling libraries for the libcurl Haskell bindingslibghc-download-curl-dev - High-level file download based on URLslibghc-download-curl-doc - High-level file download based on URLs; documentationlibghc-download-curl-prof - High-level file download based on URLs; profiling librarieslibghc-hxt-curl-dev - LibCurl interface for HXTlibghc-hxt-curl-doc - LibCurl interface for HXT; documentationlibghc-hxt-curl-prof - LibCurl interface for HXT; profiling librarylibghc6-curl-dev - transitional dummy packagelibghc6-curl-doc - transitional dummy packagelibghc6-curl-prof - transitional dummy packageliblua5.1-curl-dev - libcURL development files for the Lua language version 5.1liblua5.1-curl0 - libcURL bindings for the Lua language version 5.1libwww-curl-perl - Perl bindings to libcurlslang-curl - transfer files using HTTP and FTP from S-Langspl-curl - SPL Programming Language -- curl adaptertclcurl - Tcl bindings to libcurlxmms2-plugin-curl - XMMS2 - curl transport for HTTPphp5-curl - CURL module for php5libcurl3-gnutls - Multi-protocol file transfer library (GnuTLS)libcurl3-nss - Multi-protocol file transfer library (NSS)python-pycurl - Python bindings to libcurllibcurl3 - Multi-protocol file transfer library (OpenSSL)
ОБНОВЛЕНИЕ 3:Обновление сделало sudo apt-get update
прежде чем я его запущу.
Но, к сожалению, это не помогло.
kevin@ubuntu:~$ sudo apt-get install curl libcurl3 libcurl3-dev php5-curlReading package lists... DoneBuilding dependency tree Reading state information... DonePackage curl is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourcePackage libcurl3-dev is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'curl' has no installation candidateE: Package 'libcurl3-dev' has no installation candidate