從終端機安裝應用程式時發生錯誤

從終端機安裝應用程式時發生錯誤

這裡有很多高手。我只是在透過終端安裝軟體時遇到一些問題。例如,我想使用程式碼安裝 wine sudo apt-get install wine。但終端是這樣說的:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 shotwell : Depends: shotwell-common (= 0.18.0-0ubuntu4) but 0.18.0-0ubuntu4.2 is to be installed
 wine : Depends: wine1.6 but it is not going to be installed or
                 wine1.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

有人想幫助我嗎?非常感謝各位大師。

答案1

你有一個破損的包裹。

首先執行$ sudo aptitude -f install修復該問題,然後繼續安裝葡萄酒

不過,我個人比較喜歡使用玩Linux,自動為您處理 wine 版本等,並將應用程式保留在不同的 wineprefixes 中,這樣就不會那麼混亂。

相關內容