我无法使用curl从网络上获取内容。我试图将其安装在下面。
无法安装某些软件包。这可能意味着您请求了一种不可能的情况,或者如果您使用的不稳定发行版中尚未创建某些必需的软件包或将其从“传入”中移出。以下信息可能有助于解决该情况:
以下软件包具有未满足的依赖性。curl:取决于:libcurl4(= 7.58.0-2ubuntu3)但不会被安装E:无法纠正问题,您拿着损坏的包装。
我检查了既保持封装sudo apt-mark showheld
和dpkg -l | grep ^h
在得到手持包的列表的希望,但我没有得到任何结果,无论哪种方式。
另外,当我尝试安装libcurl4
它时,几乎会破坏我的系统,因为它尝试删除下面的这些软件包。
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类r-cran-codetools r-cran-外国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-spatial r-cran-survival r-recommended slack-desktop virtualbox-5.2
编辑
# 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
将输出添加到您的问题中
cat /etc/apt/sources.list
sudo apt-get -s -o Debug::pkgProblemResolver=yes install libcurl4
运行无故障,并指示libcurl4 is already the newest version(7.58.0-2ubuntu3)
。那是因为我对系统进行了一些更改。我发现,实际上是特定的软件包需要较早版本的libcurl e.g. 3
。php7.2
libcurl4随附的Ubuntu 18.04 LTS会自动安装。但是在安装了libcurl3的情况下,我无法安装curl。因此,我最终备份了一些数据,放开所有无关紧要的内容,然后使用重新安装软件包libcurl4 & curl
。
sudo apt-get update
然后执行以下命令:dpkg -l | grep ^..r
并将输出添加到您的问题