pdftk的依賴問題

pdftk的依賴問題

在 Ubuntu 11.04 下,當我嘗試透過 apt-get 或 synaptic 安裝 pdftk 時,出現以下錯誤:

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:
 pdftk : Depends: libgcj-bc (< 4.6~) but 4.6.0-7ubuntu1 is to be installed
E: Broken packages

我知道 pdftk 在以前版本的 Ubuntu 上運行得很好。如何修復依賴項以便現在可以安裝 pdftk?

答案1

在我的 11.04 上,libgcj-bc版本是 4.5.2-1,它可以滿足依賴關係。這可能意味著您已經透過 PPA、向後移植或其他方式捕獲了較新的版本。開啟 synaptic,選擇libgcj-bc,點擊Ctrl+E並選擇低於 4.6 的版本。

這應該可以解決安裝問題,pdf-tk但可能會引入其他依賴性問題,可以透過刪除依賴套件並安裝發行版來解決。然而,等待 11.10 可能是更明智的選擇,因為那裡有更多最新的軟體包。

相關內容