我使用 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.
Run Code Online (Sandbox Code Playgroud)
我尝试遵循这个稍微相似的解决方案,但没有成功。
这是我的计算机中出现的错误的屏幕截图:
输出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 …Run Code Online (Sandbox Code Playgroud)