Linux Mint 21.2 Wine install error

Questions about Wine on Linux
Locked
DieGod63
Newbie
Newbie
Posts: 1
Joined: Wed Oct 04, 2023 9:31 pm

Linux Mint 21.2 Wine install error

Post by DieGod63 »

hi i am trying to install wine but in every try i get the same error, all the time i purge wine and remove keys and repository and install all again following that steeps:

Code: Select all

sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
sudo apt update
sudo apt install --install-recommends winehq-stable
@@@@@@@@
and i get this : @
@@@@@@@

Code: Select all

diegod@diegod-GF65-Thin-10UE:~$ sudo dpkg --add-architecture i386 
[sudo] contraseña para diegod:       
diegod@diegod-GF65-Thin-10UE:~$ sudo mkdir -pm755 /etc/apt/keyrings
diegod@diegod-GF65-Thin-10UE:~$ sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
--2023-10-05 00:00:26--  https://dl.winehq.org/wine-builds/winehq.key
Resolviendo dl.winehq.org (dl.winehq.org)... 151.101.218.217
Conectando con dl.winehq.org (dl.winehq.org)[151.101.218.217]:443... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 3220 (3,1K) [application/pgp-keys]
Guardando como: ‘/etc/apt/keyrings/winehq-archive.key’

/etc/apt/keyrings/winehq-archive.key       100%[======================================================================================>]   3,14K  --.-KB/s    en 0s      

2023-10-05 00:00:26 (121 MB/s) - ‘/etc/apt/keyrings/winehq-archive.key’ guardado [3220/3220]

diegod@diegod-GF65-Thin-10UE:~$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
--2023-10-05 00:00:54--  https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
Resolviendo dl.winehq.org (dl.winehq.org)... 151.101.218.217
Conectando con dl.winehq.org (dl.winehq.org)[151.101.218.217]:443... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 163
Guardando como: ‘/etc/apt/sources.list.d/winehq-jammy.sources’

winehq-jammy.sources                       100%[======================================================================================>]     163  --.-KB/s    en 0s      

2023-10-05 00:00:55 (26,5 MB/s) - ‘/etc/apt/sources.list.d/winehq-jammy.sources’ guardado [163/163]

diegod@diegod-GF65-Thin-10UE:~$ sudo apt update
Obj:1 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Obj:2 https://dl.google.com/linux/chrome/deb stable InRelease
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Se puede actualizar 1 paquete. Ejecute «apt list --upgradable» para verlo.
diegod@diegod-GF65-Thin-10UE:~$ sudo apt install --install-recommends winehq-stable
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».
La siguiente información puede ayudar a resolver la situación:

Los siguientes paquetes tienen dependencias incumplidas:
 winehq-stable : Depende: wine-stable (= 8.0.2~jammy-1)
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.
diegod@diegod-GF65-Thin-10UE:~$ 
@@@@@@@@
afther that i try :@
@@@@@@@

Code: Select all

apt policy
sudo apt install --install-recommends wine-staging-amd64
sudo apt install --install-recommends wine-staging-i386
@@@@@
and get:@
@@@@

Code: Select all

diegod@diegod-GF65-Thin-10UE:~$ apt policy
Archivos de paquetes:
 100 /var/lib/dpkg/status
     release a=now
 500 https://dl.winehq.org/wine-builds/ubuntu jammy/main all Packages
     release o=dl.winehq.org,a=jammy,n=jammy,l=winehq,c=main,b=all
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/ubuntu jammy/main i386 Packages
     release o=dl.winehq.org,a=jammy,n=jammy,l=winehq,c=main,b=i386
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages
     release o=dl.winehq.org,a=jammy,n=jammy,l=winehq,c=main,b=amd64
     origin dl.winehq.org
 500 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
Paquetes con pin:
diegod@diegod-GF65-Thin-10UE:~$ sudo apt install --install-recommends wine-staging-amd64
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes NUEVOS:
  wine-staging-amd64
0 actualizados, 1 nuevos se instalarán, 0 para eliminar y 1 no actualizados.
Se necesita descargar 107 MB de archivos.
Se utilizarán 735 MB de espacio de disco adicional después de esta operación.
Des:1 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 wine-staging-amd64 amd64 8.17~jammy-1 [107 MB]
Descargados 107 MB en 3s (35,6 MB/s)         
Preconfigurando paquetes ...
Seleccionando el paquete wine-staging-amd64 previamente no seleccionado.
(Leyendo la base de datos ... 604877 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../wine-staging-amd64_8.17~jammy-1_amd64.deb ...
Desempaquetando wine-staging-amd64 (8.17~jammy-1) ...
Configurando wine-staging-amd64 (8.17~jammy-1) ...
diegod@diegod-GF65-Thin-10UE:~$ sudo apt install --install-recommends wine-staging-i386
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».
La siguiente información puede ayudar a resolver la situación:

Los siguientes paquetes tienen dependencias incumplidas:
 wine-staging-i386:i386 : Depende: libasound2:i386 (>= 1.0.16) pero no es instalable
                          Depende: libglib2.0-0:i386 (>= 2.37.3) pero no es instalable
                          Depende: libgphoto2-6:i386 (>= 2.5.10) pero no es instalable
                          Depende: libgphoto2-port12:i386 (>= 2.5.10) pero no es instalable
                          Depende: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) pero no es instalable
                          Depende: libgstreamer1.0-0:i386 (>= 1.4.0) pero no es instalable
                          Depende: libpcap0.8:i386 (>= 1.10.0) pero no es instalable
                          Depende: libpcsclite1:i386 (>= 1.3.3) pero no es instalable
                          Depende: libpulse0:i386 (>= 0.99.1) pero no es instalable
                          Depende: libsane1:i386 (>= 1.0.27) pero no es instalable
                          Depende: libudev1:i386 (>= 183) pero no es instalable
                          Depende: libusb-1.0-0:i386 (>= 2:1.0.21) pero no es instalable
                          Depende: libwayland-client0:i386 (>= 1.20.0) pero no es instalable
                          Depende: ocl-icd-libopencl1:i386 pero no es instalable o
                                   libopencl1:i386 pero no es instalable
                          Depende: ocl-icd-libopencl1:i386 (>= 1.0) pero no es instalable o
                                   libopencl-1.2-1:i386 pero no es instalable
                          Depende: libasound2-plugins:i386 pero no es instalable
                          Depende: libncurses6:i386 pero no es instalable o
                                   libncurses5:i386 pero no es instalable o
                                   libncurses:i386 pero no es instalable
                          Recomienda: libcairo2:i386 pero no es instalable
                          Recomienda: libcups2:i386 pero no es instalable
                          Recomienda: libdbus-1-3:i386 pero no es instalable
                          Recomienda: libfontconfig1:i386 pero no es instalable
                          Recomienda: libfreetype6:i386 pero no es instalable
                          Recomienda: libglu1-mesa:i386 pero no es instalable o
                                      libglu1:i386 pero no es instalable
                          Recomienda: libgnutls30:i386 pero no es instalable o
                                      libgnutls-deb0-28:i386 pero no es instalable o
                                      libgnutls26:i386 pero no es instalable
                          Recomienda: libgtk-3-0:i386 pero no es instalable
                          Recomienda: libodbc1:i386 pero no es instalable
                          Recomienda: libosmesa6:i386 pero no es instalable
                          Recomienda: libsdl2-2.0-0:i386 pero no es instalable
                          Recomienda: libv4l-0:i386 pero no es instalable
                          Recomienda: libva-drm2:i386 pero no es instalable o
                                      libva-drm1:i386 pero no es instalable
                          Recomienda: libva-x11-2:i386 pero no es instalable o
                                      libva-x11-1:i386 pero no es instalable
                          Recomienda: libva2:i386 pero no es instalable o
                                      libva1:i386 pero no es instalable
                          Recomienda: libxcomposite1:i386 pero no es instalable
                          Recomienda: libxcursor1:i386 pero no es instalable
                          Recomienda: libxi6:i386 pero no es instalable
                          Recomienda: libxinerama1:i386 pero no es instalable
                          Recomienda: libxrandr2:i386 pero no es instalable
                          Recomienda: libxrender1:i386 pero no es instalable
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.
diegod@diegod-GF65-Thin-10UE:~$
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Linux Mint 21.2 Wine install error

Post by jkfloris »

The output of "apt policy" shows that you have disabled the default Linux Mint repositories.
As a result, Wine's dependencies cannot be found.
This page describes how to enable the repositories again.
If you can't figure it out, post the output of:

Code: Select all

cat /etc/apt/sources.list.d/official-package-repositories.list
Xan666
Newbie
Newbie
Posts: 4
Joined: Tue Oct 17, 2023 9:17 am

Re: Linux Mint 21.2 Wine install error

Post by Xan666 »

Hi, same problem here, tried almost everything: fun fact on a laptop with same repo entries, same DE, same LM version, same configs - it ran like a charm.
Repos entries:

Code: Select all

deb https://mirror.host4biz.eu/linuxmint/pkg victoria main upstream import backport

deb http://ftp.agh.edu.pl/ubuntu jammy main restricted universe multiverse
deb http://ftp.agh.edu.pl/ubuntu jammy-updates main restricted universe multiverse
deb http://ftp.agh.edu.pl/ubuntu jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
As you can see, nice and clean.

I have followed manual from page: https://wiki.winehq.org/Ubuntu adding sources Ubuntu 22.04 (Jammy Jellyfish) since I got Linux Mint 21.2 and after running last command I had:

Code: Select all

sudo apt install --install-recommends winehq-stable
Got error like this:

Code: Select all

Następujące pakiety mają niespełnione zależności:
winehq-stable : Wymaga: wine-stable (= 8.0.2~jammy-1)
E: Nie udało się naprawić problemów, zatrzymano uszkodzone pakiety.

(sorry for Polish language but U got the point)

I also tried (because I got oryginal Reaper license - it closes up with yabridge errors saying wine32 is missing) so I tried:

Code: Select all

sudo apt install wine32                      
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Odczyt informacji o stanie... Gotowe  
Nie udało się zainstalować niektórych pakietów. Może to oznaczać,
że zażądano niemożliwej sytuacji lub użyto dystrybucji niestabilnej,
w której niektóre pakiety nie zostały jeszcze utworzone lub przeniesione
z katalogu Incoming ("Przychodzące").
Następujące informacje mogą pomóc rozwiązać sytuację:

Następujące pakiety mają niespełnione zależności:
libsndfile1:i386 : Wymaga: libopus0:i386 (>= 1.1) ale nie zostanie zainstalowany
E: Nie udało się naprawić problemów, zatrzymano uszkodzone pakiety.
After trying some fixes like:

Code: Select all

sudo apt --fix-missing update
and

Code: Select all

sudo aptitide install winehq-stable
and also

Code: Select all

sudo apt install -f
I got:

Code: Select all

Następujące pakiety mają niespełnione zależności:
libgphoto2-6 : Wymaga: libgd3 (>= 2.1.0~alpha~) ale nie da się go zainstalować
libsndfile1:i386 : Wymaga: libopus0:i386 (>= 1.1) ale nie da się go zainstalować
EDIT: Do not advise to manually install

Code: Select all

 sudo apt install libopus0:i386 
because system will try to remove half of installed programs like blender, pipewire etc, around 1,5GB to be deleted so I didn't want to risk.

I spent around 20h searching solution on forums and google-in it without success. Dear wineHQ - please help me. I will provide any info necessary.
Thank you in advance.
Last edited by Xan666 on Wed Oct 18, 2023 1:54 am, edited 2 times in total.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Linux Mint 21.2 Wine install error

Post by jkfloris »

Which versions of libopus0 are available?

Code: Select all

apt policy libopus0:{amd64,i386}
Xan666
Newbie
Newbie
Posts: 4
Joined: Tue Oct 17, 2023 9:17 am

Re: Linux Mint 21.2 Wine install error

Post by Xan666 »

Code: Select all

libopus0:
  Zainstalowana: 1.3.1-0.1build2
  Kandydująca:   1.4-1~ubuntu22.04
  Tabela wersji:
     1.4-1~ubuntu22.04 500
        500 https://ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy/main amd64 Packages
 *** 1.3.1-0.1build2 500
        500 http://ftp.agh.edu.pl/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
libopus0:i386:
  Zainstalowana: 1.3.1-0.1build2
  Kandydująca:   1.3.1-0.1build2
  Tabela wersji:
 *** 1.3.1-0.1build2 500
        500 http://ftp.agh.edu.pl/ubuntu jammy/main i386 Packages
        100 /var/lib/dpkg/status
I managed to install it. Problem was with pipewire but now when I want to do update system wants to remove a lot of files:

Code: Select all

sudo apt full-upgrade 
Output is strange so I ignore it but it might happen in a future:

Code: Select all

Następujące pakiety zostały zainstalowane automatycznie i nie są już więcej wymagane:
  libopenfec libroc
Aby je usunąć należy użyć "sudo apt autoremove".
Następujące pakiety zostaną USUNIĘTE:
  gstreamer1.0-pipewire libpipewire-0.3-modules pipewire pipewire-alsa pipewire-audio-client-libraries pipewire-bin
  pipewire-jack pipewire-locales pipewire-media-session pipewire-pulse pipewire-tests wireplumber
Następujące pakiety zostały zatrzymane:
  irqbalance libopus0
Następujące pakiety zostaną zaktualizowane:
  libpipewire-0.3-0 libpipewire-0.3-dev libspa-0.2-bluetooth libspa-0.2-dev libspa-0.2-jack libspa-0.2-modules
6 aktualizowanych, 0 nowo instalowanych, 12 usuwanych i 2 nieaktualizowanych.
Konieczne pobranie 1 576 kB archiwów.
Po tej operacji zostanie zwolnione 10,5 MB miejsca na dysku.
Kontynuować? [T/n] ^C
Xan666
Newbie
Newbie
Posts: 4
Joined: Tue Oct 17, 2023 9:17 am

Re: Linux Mint 21.2 Wine install error

Post by Xan666 »

Also:

Code: Select all

sudo apt update && sudo apt upgrade -y

Code: Select all

Stary:1 http://ftp.agh.edu.pl/ubuntu jammy InRelease
Stary:2 http://ftp.agh.edu.pl/ubuntu jammy-updates InRelease                                                                
Stary:3 https://linux.teamviewer.com/deb stable InRelease                                                                   
Ign.:4 https://mirror.host4biz.eu/linuxmint/pkg victoria InRelease                                                          
Stary:5 http://ftp.agh.edu.pl/ubuntu jammy-backports InRelease                                                              
Stary:6 https://mirror.host4biz.eu/linuxmint/pkg victoria Release                                                           
Stary:7 https://updates.signal.org/desktop/apt xenial InRelease                                                             
Stary:8 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease                                                            
Stary:9 https://ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy InRelease                           
Pobieranie:11 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]      
Pobieranie:12 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [43,0 kB]
Pobieranie:13 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [55,1 kB]
Pobrano 208 kB w 2s (127 kB/s)                
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Odczyt informacji o stanie... Gotowe   
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Odczyt informacji o stanie... Gotowe   
Obliczanie aktualizacji... Gotowe
Następujące pakiety zostały zatrzymane: [b](<=those packets was stopped)[/b]
  gstreamer1.0-pipewire irqbalance libopus0 libpipewire-0.3-0 libpipewire-0.3-dev libpipewire-0.3-modules
  libspa-0.2-bluetooth libspa-0.2-dev libspa-0.2-jack libspa-0.2-modules pipewire pipewire-alsa pipewire-bin pipewire-jack
  pipewire-pulse pipewire-tests
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 16 nieaktualizowanych.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Linux Mint 21.2 Wine install error

Post by jkfloris »

I managed to install it.
How did you install libopus0?

Code: Select all

Stary:9 https://ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy InRelease                           
Unlike your first post, you also have other repositories enabled. This shouldn't be a problem, but make sure that the 32-bit and 64-bit packages come from the same repository with the same version number. It looks like apt fails to update pipewire to the version from the PPA.
What is the full output of:

Code: Select all

apt policy
# and
apt-mark showhold
Xan666
Newbie
Newbie
Posts: 4
Joined: Tue Oct 17, 2023 9:17 am

Re: Linux Mint 21.2 Wine install error

Post by Xan666 »

Correct solution:
cat /etc/apt/sources.list.d/pipewire-debian-pipewire-upstream-jammy.list
Should be:
deb [signed-by=/etc/apt/keyrings/pipewire-debian-pipewire-upstream-jammy.gpg] https://ppa.launchpadcontent.net/pipewi ... eam/ubuntu jammy main
You need to remove: ARCH=amd64 before "signed-by" and everything will work.

2nd option is to completely remove this pipewire PPA, unistall pipewire and build app manually from
https://gitlab.freedesktop.org/pipewire/pipewire/ or https://pipewire.org/ or https://github.com/PipeWire/pipewire <-- in this case: WHICH ONE IS CORRECT ONE TO USE?
Locked