sudo apt-get install -y liblog4cxx10-dev 失敗

sudo apt-get install -y liblog4cxx10-dev 失敗

當我嘗試安裝liblog4cxx10-dev軟體包時,它報告錯誤如下:

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:
 liblog4cxx10-dev : Depends: libaprutil1-dev but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

我的系統是 Ubuntu 12.04 LTS 64 位元。我用谷歌搜尋並檢查了

apt-cache policy libblog4cxx10-dev

**結果是:

 liblog4cxx10-dev:
  Installed: (none)
  Candidate: 0.10.0-1.2ubuntu2
  Version table:
     0.10.0-1.2ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

如果我使用 apt-get install 安裝 libaprutil1-dev,則會出現以下錯誤: 以下軟體包具有未滿足的依賴關係:

libaprutil1-dev : Depends: libsqlite3-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有人可以幫助我知道如何解決這個問題嗎?例如,我應該使用哪些工具或應該檢查哪些文件?

提前致謝!

答案1

首先運行apt-get autoremove刪除損壞的包並apt-get update刷新。最後,試試原來的 apt-get。

相關內容