我使用 Ubuntu 20.04.1 并尝试安装 cURL。当我sudo apt install curl
在终端中运行时,出现以下错误:
The following packages have unmet dependencies: curl : Depends: libcurl4 (= 7.68.0-1ubuntu2) but 7.68.0-1ubuntu2.2 is to be installed
E: Unable to correct problems, you have held broken packages.
我试图遵循这个稍微相似的解决方案,但没有成功。
这是出现在我的计算机中的错误屏幕截图:
输出apt-cache policy curl libcurl4
:
curl:
Installed: (none)
Candidate: 7.68.0-1ubuntu2
Version table:
7.68.0-1ubuntu2 500
500 us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
libcurl4:
Installed: 7.68.0-1ubuntu2.2
Candidate: 7.68.0-1ubuntu2.2
Version table:
*** 7.68.0-1ubuntu2.2 100
100 /var/lib/dpkg/status
7.68.0-1ubuntu2 500
500 us.archive.ubuntu.com/ubuntu focal/main amd64 Packages