Não consigo buscar conteúdo da Web usando curl . Tentei instalá-lo abaixo.
Alguns pacotes não puderam ser instalados. Isso pode significar que você solicitou uma situação impossível ou, se estiver usando a distribuição instável, alguns pacotes necessários ainda não foram criados ou removidos do Incoming. As seguintes informações podem ajudar a resolver a situação:
Os seguintes pacotes têm dependências não atendidas. curl: Depende: libcurl4 (= 7.58.0-2ubuntu3), mas não será instalado. E: Incapaz de corrigir problemas, você mantém pacotes quebrados.
Eu verifiquei os pacotes retidos com ambos sudo apt-mark showheld
e dpkg -l | grep ^h
na esperança de obter uma lista de pacotes retidos, mas não obtive resultados de qualquer maneira.
Além disso, quando tento instalá- libcurl4
lo, quase danifico meu sistema, pois ele tenta remover esses pacotes abaixo.
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 classe r-cran-codetools r-cran-estrangeira 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 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
adicionar a saída à sua pergunta
cat /etc/apt/sources.list
sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4
é executado sem falhas e indica isso libcurl4 is already the newest version(7.58.0-2ubuntu3)
. Isso porque fiz algumas alterações no sistema. Eu descobri que são realmente pacotes específicos que requerem uma versão anterior do libcurl e.g. 3
. O Ubuntu 18.04 LTS instala automaticamente o php7.2
que vem com o libcurl4. Mas com o libcurl3 instalado, não consigo instalar o curl. Então, acabei fazendo backup de alguns dados, deixei de lado o que não era realmente relevante e depois reinstalei os pacotes libcurl4 & curl
.
sudo apt-get update
e depois executar este comando:dpkg -l | grep ^..r
e adicionar a saída à sua pergunta