curl:依赖:libcurl3(= 7.35.0-1ubuntu2.14)但需要安装 7.55.1-1ubuntu2.3

curl:依赖:libcurl3(= 7.35.0-1ubuntu2.14)但需要安装 7.55.1-1ubuntu2.3

我无法安装 curl。我收到以下消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 curl : Depends: libcurl3 (= 7.35.0-1ubuntu2.14) but 7.55.1-1ubuntu2.3 is to be installed
E: Unable to correct problems, you have held broken packages.

我安装了 libcurl3,但无法安装 curl。我该怎么办?

答案1

感谢用户535733

我终于搞明白了!这是 libcurl3 的问题,因为它是旧版本的 libcurl,即 16.04LTS。我通过 sudo apt-get remove libcurl3 卸载了 libcurl 3,然后尝试 sudo apt-get install curl,Bam 成功了!

相关内容