El programa 'curl' no está instalado actualmente


66

Estoy probando Meteor http://meteor.com/examples/leaderboard

Tengo que usar CURL, con el que estoy familiarizado en Windows.

Ahora trato de instalarlo en Ubuntu 12.04.

Pero obtengo estos errores:

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

¿Cómo instalo CURL?

RESUELTO:

Hice este comando

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

y luego pude hacer sudo apt-get updatey luegosudo apt-get install curl

que instaló con éxito el rizo.

ACTUALIZAR:

Perdón por el error obvio. Intenté ayer también, y allí escribí el comando correcto que me dio este mensaje de error:

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

ACTUALIZACIÓN 2:

Intenté el apt-cache search curl | grep -i curlcomando

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)

ACTUALIZACIÓN 3: ¿La actualización se realizó sudo apt-get updateantes de ejecutarla?

Pero esto no ayudó tristemente.

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

Que apt-cache search curl | grep -i curl dice
catalesia

Probé, mi actualización 2.
Kevin Simper

siempre puede descargarlo usted mismo desde curl.haxx.se/download.html y compilarlo. ¿Has cambiado tus repositorios? No puedo obtener ningún problema, no hay ningún error. Lo que me interesa es por qué apt le daría resultados y luego no permitiría la instalación. ¿Experimenta lo mismo con cualquier otro software?
catalesia

1
Por favor incluya la salida de sudo apt-get update. Creo que a su sistema le faltan algunos repositorios de software.
Jorge Suárez de Lis

Realmente no he cambiado nada, tampoco he instalado ningún programa. Instalación bastante nueva. Por lo tanto, tampoco lo entiendo realmente. No tengo idea de cómo construir el rizo tristemente.
Kevin Simper

Respuestas:


102

Respuestas a las diferentes actualizaciones.

Primera pregunta

Necesitas el comando

sudo apt-get install curl

La instalación se encuentra en el comando que utilice: sudo apt-get curlno funcionará porque apt-get no tiene un comando curl.

Primera actualización

También quieres correr updateprimero:

sudo apt-get update

Y es posible que desee considerar usar este comando:

sudo apt-get install libcurl3 php5-curl

También puede estar relacionado con la versión de php que usa ( php5-common?) Vea aquí .

Segunda actualización

O, para hacerlo más fácil, simplemente use el comando wget https://install.meteor.com | sh. Curl se utilizó en versiones anteriores de ubuntu. Realmente no es una herramienta esencial, pero algunos tutoriales la usan.


He actualizado mi publicación con el error que pretendía mostrar. ¡Gracias por tu ayuda!
Kevin Simper

Probé y aún errores. Mi actualización 3.
Kevin Simper

¿Leíste el enlace que te di? Podría estar relacionado con la versión de php que usa. También se php5-curlinstaló? Si es así, su problema está resuelto ¿verdad?
don.joey

Sí, se instaló php5-curl. No entendí la solución en esa publicación: "Necesitas reemplazar PHP con la versión de los repositorios oficiales de Ubuntu". Qué significa eso? No necesito PHP. He instalado todas las actualizaciones de Ubuntu que hay. No he instalado ningún programa todavía.
Kevin Simper

1
Intenté wget, pero eso me consiguió una página .html, que no es lo que se esperaba. Sin embargo, encontré la solución del problema en algún foro oculto. Intenté el comando 'sudo sed -i -e' s / us.archive.ubuntu.com / archive.ubuntu.com / g '/etc/apt/sources.list' que aparentemente lo resolvió.
Kevin Simper

0

En caso de que reciba un mensaje de error de que no se encuentra el paquete curl, deberá agregar un repositorio como este antes de instalarlo:

sudo add-apt-repository ppa:ondrej/php
sudo apt update

44
`curl está disponible en los repositorios estándar para todas las versiones actualmente compatibles de Ubuntu y, a menos que me equivoque, está instalado de forma predeterminada. Si recibe el mensaje de error, se refiere a que algo más está mal. No se requiere un PPA.
Élder Geek

44
curlno está instalado por defecto en Ubuntu 16.04 de 64 bits como mínimo. A menos que sea algo especial en la versión de caja Vagrant.
Juha Untinen
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.