我正在尝试使用Debian8为python3安装matplotlib。pip3
命令要求提供缺少的依赖项:libfreetype。但是,当我尝试安装这个软件包时会发生这种情况!

debnub@debhub:~$ sudo apt-get install libfreetype6-dev
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:
libfreetype6-dev : Depends: libfreetype6 (= 2.5.2-3+deb8u2) but 2.
6.3-3.2 is to be installed
E: Unable to correct problems, you have held broken packages.
debnub@debhub:~$

我尝试了很多不同的解决方法,包括运用能力。在这个案子里,我可能遗漏了什么吗?

最佳答案

这是通过运行:

sudo aptitude -f install libfreetype6-dev

然后选择no降级已安装的libfreetype6版本。

10-08 12:14