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正確的事情。

那我該怎麼辦呢?

相關內容