Apt-get install -f 和 apt-get autoremove 错误

Apt-get install -f 和 apt-get autoremove 错误

我尝试在 Ubuntu 上安装新软件,它告诉我使用该命令apt-get install -f,但我收到一条错误消息,我不知道如何修复它。

之后,我尝试使用apt-get autoremove但再次出现错误消息。

apt-get install -f
Errors were encountered while processing: 
/var/cache/apt/archives/libfreetype6-dev_2.5.2-4ubuntu2_amd64.deb E:
Sub-process /usr/bin/dpkg returned an error code (1)
apt-get autoremove
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libcairo2-dev : Depends: libfreetype6-dev (>= 2.1.10) but it is not installed
 libfontconfig1-dev : Depends: libfreetype6-dev (>= 2.1.7) but it is not installed
 libpango1.0-dev : Depends: libfreetype6-dev but it is not installed
 libxft-dev : Depends: libfreetype6-dev but it is not installed
E: Unmet dependencies. Try using -f.

指挥部apt-get install -f要求我先做autoremove……并且apt-get autoremove要求我先正确地做install -f

那我该怎么办?

相关内容