Software-Installation

無法安裝wine和playonlinux

  • July 9, 2015

我在基本作業系統 Freya中。

sudo apt-get install wine
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:
wine : Depends: wine1.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

和:

sudo apt-get install playonlinux
   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:
    playonlinux : Depends: wine or
                           wine-unstable but it is not installable
   E: Unable to correct problems, you have held broken packages.

在禁用所有 PPA 並啟用 Ubuntu 儲存庫時:

在此處輸入圖像描述

在此處輸入圖像描述

否則包沒有任何問題:

sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

遵循askubuntu的指示後,

 sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

所以,這裡沒有失敗。

但是最初的錯誤仍然存在於終端中。

在 Synaptic 中發生的事情是不同的!可以說,在嘗試安裝playonlinux要刪除的軟體包時,包括我的所有系統。那將徹底破壞系統。列表太長,無法在此處發布。

嘗試安裝wine時,似乎可以 在此處輸入圖像描述

但這與上面發布的終端輸出相矛盾sudo apt-get install wine,所有這一切對我來說都是可疑的。


更新

嘗試wine在 Synaptic 中安裝,它實際上不起作用:一旦選擇安裝,wine包被標記為損壞,一些未提及的包被標記為損壞。

在此處輸入圖像描述


如何辨識破損的包裹?是否有可能將它們作為損壞的信號發出錯誤信號?

主要思想是使用aptitude及其更大的選項。

答案如下ubuntuforums 上的這個。

  • 通過添加/etc/apt/sources.list支持多架構$$ arch=amd64,i386 $$到 deb 行:

deb [arch=amd64,i386] http://fr.archive.ubuntu.com/ubuntu/ trusty universe

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo dpkg --add-architecture i386
sudo apt-get update

數據庫更新現在顯示要載入單獨的 amd64 和 i386 儲存庫。

接下來我切換到aptitude,因為更複雜的依賴求解器:

sudo apt-get install aptitude

sudo aptitude --full-resolver -f install wine1.7

完整詳情: http: //pastebin.com/Z9Ww11SU

簡而言之,我做了什麼:

  • aptitude 建議了一個不會安裝 wine1.7 的解決方案,首先選擇了(20
  • 這個解決方案被拒絕了r 20——對我來說有點複雜,我只是從另一個答案中複製了命令:首先選擇20而不是 YES 或 NO;然後r 20(拒絕刪除 Wine 1.7);
  • 然後n(似乎除非您選擇YYES,否則aptitude --full-resolver在每次決定後都會為您提供新的選擇;我猜在這種情況下是 NO,因為它表示 Wine 的“依賴關係未解決”);
  • 下一步提供了很好的解決方案:安裝 Wine 並降級 14 個軟體包:

ibasn1-8-heimdal libgphoto2-6 libgphoto2-port10 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal liblcms2-2 libroken18-heimdal libsane libsane-common libwind0-heimdal

  • 所以,最後一個是YYES,並且安裝了Wine 1.7。
  • 之後,安裝playonlinux就沒有問題了:
The following NEW packages will be installed:
  libwxgtk-media2.8-0{a} mesa-utils{a} playonlinux python-wxgtk2.8{a} python-wxversion{a} 
0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.

引用自:https://unix.stackexchange.com/questions/208664