web-dev-qa-db-fra.com

Impossible d'installer Wine Ubuntu 18.04

J'ai donc commencé à suivre les instructions sur: https://wiki.winehq.org/Ubunt

Alors j'ai fait:

wget -nc https://dl.winehq.org/wine-builds/Release.key
Sudo apt-key add Release.key
Sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

Ensuite, après avoir effectué une mise à jour, j'ai essayé d'installer à l'aide de:

Sudo apt-get install --install-recommends winehq-stable

Mais j'ai eu

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:
 winehq-stable : Depends: wine-stable (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.

Et je ne peux pas installer Wine-stable, car cela me dit d'installer wine-stable-i386, ce que je ne peux pas installer non plus parce que:

 wine-stable-i386:i386 : Depends: libc6:i386 (>= 2.28) but 2.27-3ubuntu1 is to be installed
                     Recommends: libcapi20-3:i386 but it is not going to be installed
                     Recommends: libcups2:i386 but it is not going to be installed
                     Recommends: libglu1-mesa:i386 but it is not going to be installed or
                                 libglu1:i386
                     Recommends: libgsm1:i386 but it is not going to be installed
                     Recommends: libgssapi-krb5-2:i386 but it is not going to be installed
                     Recommends: libkrb5-3:i386 but it is not going to be installed
                     Recommends: libodbc1:i386 but it is not going to be installed
                     Recommends: libosmesa6:i386 but it is not going to be installed
                     Recommends: libsane:i386 or
                                 libsane1:i386 but it is not going to be installed
                     Recommends: libsdl2-2.0-0:i386 but it is not going to be installed
                     Recommends: libv4l-0:i386 but it is not going to be installed
                     Recommends: libxcomposite1:i386 but it is not going to be installed
                     Recommends: libxcursor1:i386 but it is not going to be installed
                     Recommends: libxfixes3:i386 but it is not going to be installed
                     Recommends: libxi6:i386 but it is not going to be installed
                     Recommends: libxinerama1:i386 but it is not going to be installed
                     Recommends: libxrandr2:i386 but it is not going to be installed
                     Recommends: libxrender1:i386 but it is not going to be installed
                     Recommends: libxslt1.1:i386 but it is not going to be installed
                     Recommends: libxxf86vm1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Je ne sais pas comment résoudre ce problème, aidez-moi s'il vous plaît.

J'ai aussi essayé de faire Sudo apt-get install -f, mais ça retourne

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Edit: a également fait Sudo dpkg --add-architecture i386 Edit2: la vinification fonctionne

2
Kamikoroshi

Avez-vous besoin d’une version plus récente que celle figurant dans le dépôt de référence?

Sinon, supprimez le ppa que vous avez ajouté et

Sudo apt install wine-staging

wine-stable:   Installed: 3.0-1ubuntu1   Candidate: 3.0-1ubuntu1   Version table:  *** 3.0-1ubuntu1 500
        500 [my-local-]mirror/us.archive.ubuntu.com/ubuntu bionic/universe AMD64 Packages
        500 [my-local-]mirror/us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
        100 /var/lib/dpkg/status
2
Organic Marble

Vous pouvez l'installer facilement avec l'application "Centre de logiciels" utilisée par tous les systèmes Ubuntu. Lancez le logiciel, dans la zone de recherche, tapez "Wine". Installez la version "Q4Wine". Tu est prêt! Lorsque vous le démarrez, vous aurez le "WineHQ" et d'autres applications basées sur le vin - mines de vin, vin regedit, panneau de commande de vin et autres trucs de Windows.

0
Zdravko Kostov