web-dev-qa-db-fra.com

Comment puis-je installer Wine dans 15.04 lorsqu'il existe des dépendances non résolues?

Lorsque j'essaie d'installer Wine dans Ubuntu 15.04, je reçois le message suivant:

>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 or
                 wine1.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

J'ai cherché des solutions et fait les Sudo apt-get -f install, Sudo apt-get update et Sudo apt-get upgrade habituels sans succès. Que devrais-je faire?


Le résultat de Sudo apt-get -f install est le suivant:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.

Le résultat de Sudo apt-get upgrade est le suivant:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  doxygen
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.

EDIT: Après ne suggestion de @Serphiroth, j’ai exécuté:

Sudo add-apt-repository ppa:ubuntu-wine/ppa
Sudo apt-get update
Sudo apt-get install wine1.7

Cela a abouti au message suivant:

>Sudo apt-get install wine1.7
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.
 wine1.7 : Depends: wine1.7-i386 (= 1:1.7.38-0ubuntu1)
E: Unable to correct problems, you have held broken packages.

Une tentative d'installation de wine1.7-i386 entraîne le message suivant:

>Sudo apt-get install wine1.7-i386
checking for actuality of program wine1.7-i386...
instating wine1.7-i386...
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.
 wine1.7-i386:i386 : Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                     Recommends: libasound2-plugins:i386 but it is not going to be installed
                     Recommends: libcups2:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

EDIT: Après autre suggestion de @Serphiroth, j’ai exécuté:

>Sudo apt-get install wine1.7 wine1.7-i386"=1.7.4-0ubuntu4"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version ‘1.7.4-0ubuntu4’ for ‘wine1.7-i386:i386’ was not found

Après ne suggestion de @ A.B., J’ai exécuté ce qui suit:

>Sudo aptitude install wine
The following NEW packages will be installed:
  fonts-horai-umefont{a} fonts-unfonts-core{a} libasn1-8-heimdal:i386{a} libasound2-plugins:i386{a} 
  libasyncns0:i386{a} libavahi-client3:i386{a} libavahi-common-data:i386{a} libavahi-common3:i386{a} 
  libcapi20-3:i386{a} libcups2:i386{a} libexif12:i386{a} libflac8:i386{a} libgcrypt20:i386{a} libgd3:i386{a} 
  libgif4:i386{a} libgmp10:i386{ab} libgnutls-deb0-28:i386{a} libgnutls26:i386{a} libgphoto2-6:i386{a} 
  libgphoto2-port10:i386{a} libgssapi-krb5-2:i386{a} libgssapi3-heimdal:i386{a} 
  libgstreamer-plugins-base0.10-0:i386{a} libgstreamer0.10-0:i386{a} libhcrypto4-heimdal:i386{a} 
  libheimbase1-heimdal:i386{a} libheimntlm0-heimdal:i386{a} libhogweed2:i386{a} libhx509-5-heimdal:i386{a} 
  libieee1284-3:i386{a} libjack-jackd2-0:i386{ab} libk5crypto3:i386{a} libkeyutils1:i386{a} 
  libkrb5-26-heimdal:i386{a} libkrb5-3:i386{a} libkrb5support0:i386{a} liblcms2-2:i386{a} libldap-2.4-2:i386{a} 
  libltdl7:i386{a} libmpg123-0:i386{a} libnettle4:i386{a} libopenal1:i386{a} libosmesa6{a} libosmesa6:i386{a} 
  libp11-kit-gnome-keyring:i386{a} libp11-kit0:i386{a} libpulse0:i386{a} libroken18-heimdal:i386{a} 
  libsamplerate0:i386{a} libsane:i386{a} libsasl2-2:i386{a} libsasl2-modules:i386{a} 
  libsasl2-modules-db:i386{a} libsndfile1:i386{a} libspeexdsp1:i386{a} libtasn1-6:i386{a} libusb-1.0-0:i386{a} 
  libv4l-0:i386{a} libv4lconvert0:i386{a} libvpx1:i386{a} libwind0-heimdal:i386{a} libwrap0:i386{a} 
  libxcomposite1:i386{a} libxcursor1:i386{a} libxinerama1:i386{a} libxpm4:i386{a} ocl-icd-libopencl1:i386{a} 
  p11-kit-modules:i386{a} wine wine-gecko2.21{a} wine-gecko2.21:i386{a} wine-mono0.0.8{a} wine1.6{a} 
  wine1.6-AMD64{a} wine1.6-i386:i386{a} winetricks{a} 
0 packages upgraded, 76 newly installed, 0 to remove and 1 not upgraded.
Need to get 155 MB of archives. After unpacking 505 MB will be used.
The following packages have unmet dependencies:
 libjack-jackd2-0:i386 : Conflicts: libjack-0.116 which is a virtual package.
                         Conflicts: libjack0 but 1:0.124.1+20140122git5013bed0-3 is installed.
 libjack0 : Conflicts: libjack-0.116:i386 which is a virtual package.
 libgmp10 : Breaks: libgmp10:i386 (!= 2:6.0.0+dfsg-6~ppa1) but 2:6.0.0+dfsg-4build1 is to be installed.
 libgmp10:i386 : Breaks: libgmp10 (!= 2:6.0.0+dfsg-4build1) but 2:6.0.0+dfsg-6~ppa1 is installed.
open: 59; closed: 907; defer: 31; conflict: 38                                                                     .The following actions will resolve these dependencies:

      Keep the following packages at their current version: 
1)      libasound2-plugins:i386 [Not Installed]             
2)      libcups2:i386 [Not Installed]                       
3)      libgmp10:i386 [Not Installed]                       
4)      libgnutls-deb0-28:i386 [Not Installed]              
5)      libhogweed2:i386 [Not Installed]                    
6)      libjack-jackd2-0:i386 [Not Installed]               
7)      libldap-2.4-2:i386 [Not Installed]                  
8)      wine [Not Installed]                                
9)      wine1.6 [Not Installed]                             
10)     wine1.6-AMD64 [Not Installed]                       
11)     wine1.6-i386:i386 [Not Installed]                   

      Leave the following dependencies unresolved:          
12)     winetricks recommends wine                          
13)     wine1.6-i386:i386 recommends libasound2-plugins:i386


Accept this solution? [Y/n/q/?]

J'ai parcouru les différentes solutions présentées (en sélectionnant n), mais je n'en sais vraiment pas assez pour continuer sans guide.

2
d3pd

Cela ne peut probablement pas être résolu en une réponse simple, mais pour commencer, votre problème, ou l'un des, provient d'un PPA qui semble avoir été supprimé.

https://launchpad.net/~n-muench/+archive/ubuntu/programs-ppa

Il avait des paquets de confiance - ex. https://launchpad.net/~n-muench/+archive/ubuntu/programs-ppa/+build/6277936

Cela cause ce problème

libgmp10 : Breaks: libgmp10:i386 (!= 2:6.0.0+dfsg-6~ppa1) but 2:6.0.0+dfsg-4build1 is to be installed. libgmp10:i386 : Breaks: libgmp10 (!= 2:6.0.0+dfsg-4build1) but 2:6.0.0+dfsg-6~ppa1 is installed.

À ck. run - apt-cache policy libgmp10 libgmp10:i386, les deux versions disponibles/installées doivent correspondre à la même version, et non à partir de ce ppa pourri

Donc, si 2:6.0.0+dfsg-6~ppa1 apparaît dans apt-cache comme disponible, ouvrez Logiciels & mises à jour> Autres et supprimez le ppa associé, mettez à jour vos sources, puis réessayez. Si le paquet ppa i386 indique qu’il est installé, supprimez-le.

Sinon, vous devrez identifier tous les paquets de ce ppa et les supprimer ou les remplacer par ceux d’Ubuntu.

2
doug

J'ai résolu ce problème en accédant à Logiciels et mises à jour et en activant les référentiels de communautés, puis en installant ppa, en mettant à jour et en installant wine.

J'espère que cela t'aides!

1
user225201