在 Ubuntu 18.04 上安装 curl 卸载 libcurl3

在 Ubuntu 18.04 上安装 curl 卸载 libcurl3

尝试在我的 Ubuntu 18.04 上安装 curl 需要我删除系统中其他软件运行所需的一些内容。

为了能够安装 curl,apt install curl我必须执行以下操作:

aptitude install curl
The following NEW packages will be installed:
  curl libcurl4{ab}
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 373 kB of archives. After unpacking 1,036 kB will be used.
The following packages have unmet dependencies:
 libcurl3 : Conflicts: libcurl4 but 7.58.0-2ubuntu3.7 is to be installed
 libcurl4 : Conflicts: libcurl3 but 7.58.0-2ubuntu2 is installed
The following actions will resolve these dependencies:

     Remove the following packages:
1)     libcurl-openssl1.0-dev [7.58.0-2ubuntu2 (bionic, now)]
2)     libcurl3 [7.58.0-2ubuntu2 (bionic, now)]



Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
  curl libcurl4{a}
The following packages will be REMOVED:
  libcurl-openssl1.0-dev{a} libcurl3{a} libssl1.0-dev{u}
0 packages upgraded, 2 newly installed, 3 to remove and 0 not upgraded.
Need to get 373 kB of archives. After unpacking 8,252 kB will be freed.
Do you want to continue? [Y/n/?] Y

要恢复我的 php 应用程序我必须执行以下操作:

apt install libcurl3 libcurl-openssl1.0-dev

我怎样才能找到一种方法来在我的系统中同时拥有这两者?

答案1

curl 二进制文件仅与最新的 libcurl4 链接。您需要:

apt install libcurl4 libcurl4-openssl-dev curl 

拥有所有最新版本。如果您想要与“libcurl3 libcurl-openssl1.0-dev”链接,我建议您手动编译 curl

相关内容