No puedo obtener contenido de la web usando curl . Traté de instalarlo en la parte inferior.
Algunos paquetes no se pudieron instalar. Esto puede significar que ha solicitado una situación imposible o, si está utilizando la distribución inestable, algunos paquetes requeridos aún no se han creado o se han eliminado de Incoming. La siguiente información puede ayudar a resolver la situación:
Los siguientes paquetes tienen dependencias insatisfechas. curl: Depende: libcurl4 (= 7.58.0-2ubuntu3) pero no se instalará E: Incapaz de corregir problemas, ha retenido paquetes rotos.
He verificado los paquetes retenidos con ambos sudo apt-mark showheld
y dpkg -l | grep ^h
con la esperanza de obtener una lista de paquetes retenidos, pero no obtengo resultados de ninguna manera.
Además, cuando intento instalarlo libcurl4
, casi voy a romper mi sistema, ya que intenta eliminar estos paquetes a continuación.
libcurl3 mongodb-enterprise mongodb-enterprise-server mongodb-enterprise-tools msodbcsql msodbcsql17 mssql-tools php7.1-curl r-base r-base-core r-base-dev r-base-html r-cran-boot r-cran -clase r-cran-codetools r-cran-foreign r-cran-getopt r-cran-kernsmooth r-cran-lattice r-cran-littler r-cran-mass r-cran-matrix r-cran-mgcv r-cran -nlme r-cran-nnet r-cran-rpart r-cran-space espacial r-cran-survival r-recomendado slack-desktop virtualbox-5.2
Editar
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution. deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe deb-src
http://gb.archive.ubuntu.com/ubuntu/ bionic universe
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team. deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic
multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu bionic partner deb-src
http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main
restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe deb-src
http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-proposed main
multiverse universe restricted #Not for humans during development
stage of release bionic
# ded-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted ui=niverse
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main
restricted multiverse universe
dpkg -l | grep ^..r
sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4
agregar el resultado a tu pregunta
cat /etc/apt/sources.list
sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4
funciona sin fallas e indica eso libcurl4 is already the newest version(7.58.0-2ubuntu3)
. Eso es porque hice algunos cambios en el sistema. Descubrí que son paquetes realmente específicos que requieren una versión anterior de libcurl e.g. 3
. Ubuntu 18.04 LTS se instala automáticamente, php7.2
que viene con libcurl4. Pero con libcurl3 instalado, no puedo tener curl instalado. Entonces, terminé haciendo una copia de seguridad de algunos datos, solté lo que no era realmente relevante y luego reinstalé los paquetes con libcurl4 & curl
.
sudo apt-get update
y luego ejecute este comando:dpkg -l | grep ^..r
y agregue el resultado a su pregunta