尝试在 Ubuntu 16.04 上安装 curl 时未满足的依赖项

Wal*_*ace 3 package-management apt curl

尝试在 Ubuntu 16.04 上安装 curl 时,它给了我以下错误消息:

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-gnutls (= 7.47.0-1ubuntu2) but 7.47.0-1ubuntu2.6 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

怎么修?

Wal*_*ace 5

更新:我通过恢复到旧版本的 libcurl3-gnutls 解决了这个问题。

对于遇到同样问题的人,我通过列出缓存来做到这一点:

apt-cache showpkg libcurl3-gnutls    
Run Code Online (Sandbox Code Playgroud)

这给了我一个很长的输出,但重要的部分是最后三行:

Provides: 
7.47.0-1ubuntu2.6 - 
7.47.0-1ubuntu2 - 
Reverse Provides: 
Run Code Online (Sandbox Code Playgroud)

我使用以下命令下载旧版本:

sudo apt-get install libcurl3-gnutls=7.47.0-1ubuntu2
Run Code Online (Sandbox Code Playgroud)

然后我就sudo apt install curl正常跑了。

谢谢您的帮助!