5 votes

Impossible d'installer Wine Ubuntu 18.04

Alors j'ai commencé à suivre les instructions sur: https://wiki.winehq.org/Ubuntu

Donc 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 mis à jour, j'ai essayé d'installer en utilisant:

sudo apt-get install --install-recommends winehq-stable

Mais j'ai obtenu

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 il me demande d'installer wine-stable-i386, que je ne peux pas installer non plus à cause de:

 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 cela, veuillez m'aider.

J'ai également essayé de faire sudo apt-get install -f, mais cela retourne

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

Modifier: J'ai aussi fait sudo dpkg --add-architecture i386 Modifier2: wine-staging fonctionne

3voto

Organic Marble Points 20312

Avez-vous besoin d'une version plus récente que celle disponible dans les dépôts de base ?

Si ce n'est pas le cas, supprimez le ppa que vous avez ajouté, et simplement

sudo apt install wine-stable

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

2voto

totymedli Points 356

Tl;dr

Assurez-vous d'avoir installé FAudio comme indiqué dans le guide d'installation officiel.

sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

Tutoriel

It's FOSS propose un excellent tutoriel sur comment installer Wine 5.0 sur Ubuntu 18.04 et 19.04. Voici comment procéder :

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
sudo apt update && sudo apt install --install-recommends winehq-stable

0voto

Zdravko Kostov Points 21

Vous pouvez l'installer facilement avec l'application "Logithèque", utilisée par tout système basé sur Ubuntu. Lancez le logiciel, tapez "Vin" dans la barre de recherche. Installez la version "Q4Wine". Vous êtes prêt ! Lorsque vous le lancez, vous aurez le "WineHQ" et d'autres applications basées sur Wine - minesweeper, regedit, panneau de configuration et autres éléments Windows.

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X