Cannot install wine32 on focal

Asked by Jan on 2020-04-14

Hi I cannot install wine32 on focal

The following packages have unmet dependencies:
 libgd3 : Breaks: libgd3:i386 (!= 2.2.5-5.2ubuntu0.19.10.1) but 2.2.5-5.2 is to be installed
 libgd3:i386 : Breaks: libgd3 (!= 2.2.5-5.2) but 2.2.5-5.2ubuntu0.19.10.1 is installed
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1) libgd3:i386 [Not Installed]
2) libgphoto2-6:i386 [Not Installed]
3) libsane:i386 [Not Installed]
4) libwine:i386 [Not Installed]
5) wine [Not Installed]
6) wine32:i386 [Not Installed]

     Leave the following dependencies unresolved:
7) libwine:i386 recommends libsane:i386 (>= 1.0.24)

What can I do to investigate this more?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine Edit question
Assignee:
No assignee Edit question
Solved by:
Jan
Solved:
Last query:
Last reply:
Manfred Hampl (m-hampl) said : #1

What is the output of the commands

uname -a
lsb_release -crid
dpkg --print-architecture
dpkg --print-foreign-architectures
apt-cache policy libgd3 libgd3:i386 wine wine32
apt --simulate install libgd3=2.2.5-5.2 libgd3:i386=2.2.5-5.2

I smell a PPA...

Jan (jan-vdv) said : #3

uname -a
Linux JRadio 5.4.0-21-generic #25-Ubuntu SMP Sat Mar 28 13:10:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@JRadio:~# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu Focal Fossa (development branch)
Release: 20.04
Codename: focal
root@JRadio:~# dpkg --print-architecture
amd64
root@JRadio:~# dpkg --print-foreign-architectures
i386
root@JRadio:~# apt-cache policy libgd3 libgd3:i386 wine wine32
libgd3:
  Installed: 2.2.5-5.2ubuntu0.19.10.1
  Candidate: 2.2.5-5.2ubuntu0.19.10.1
  Version table:
 *** 2.2.5-5.2ubuntu0.19.10.1 100
        100 /var/lib/dpkg/status
     2.2.5-5.2 500
        500 http://za.archive.ubuntu.com/ubuntu focal/main amd64 Packages
libgd3:i386:
  Installed: (none)
  Candidate: 2.2.5-5.2
  Version table:
     2.2.5-5.2 500
        500 http://za.archive.ubuntu.com/ubuntu focal/main i386 Packages
wine:
  Installed: 5.0-3
  Candidate: 5.0-3
  Version table:
 *** 5.0-3 500
        500 http://za.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://za.archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status
wine32:i386:
  Installed: (none)
  Candidate: 5.0-3
  Version table:
     5.0-3 500
        500 http://za.archive.ubuntu.com/ubuntu focal/universe i386 Packages
root@JRadio:~# apt --simulate install libgd3=2.2.5-5.2 libgd3:i386=2.2.5-5.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gcc-10-base:i386 libbsd0:i386 libc6:i386 libcrypt1:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libgcc-s1:i386 libidn2-0:i386 libjbig0:i386 libjpeg-turbo8:i386
  libjpeg8:i386 liblzma5:i386 libpng16-16:i386 libtiff5:i386 libunistring2:i386 libuuid1:i386 libwebp6:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386 libxpm4:i386
  libzstd1:i386 zlib1g:i386
Suggested packages:
  glibc-doc:i386 locales:i386 libgd-tools libgd-tools:i386
The following NEW packages will be installed:
  gcc-10-base:i386 libbsd0:i386 libc6:i386 libcrypt1:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libgcc-s1:i386 libgd3:i386 libidn2-0:i386 libjbig0:i386 libjpeg-turbo8:i386
  libjpeg8:i386 liblzma5:i386 libpng16-16:i386 libtiff5:i386 libunistring2:i386 libuuid1:i386 libwebp6:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386 libxpm4:i386
  libzstd1:i386 zlib1g:i386
The following packages will be DOWNGRADED:
  libgd3
0 upgraded, 26 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Inst gcc-10-base:i386 (10-20200411-0ubuntu1 Ubuntu:20.04/focal [i386])
Inst libgcc-s1:i386 (10-20200411-0ubuntu1 Ubuntu:20.04/focal [i386]) []
Inst libcrypt1:i386 (1:4.4.10-10ubuntu4 Ubuntu:20.04/focal [i386]) []
Inst libc6:i386 (2.31-0ubuntu7 Ubuntu:20.04/focal [i386])
Inst liblzma5:i386 (5.2.4-1 Ubuntu:20.04/focal [i386])
Inst libuuid1:i386 (2.34-0.1ubuntu9 Ubuntu:20.04/focal [i386])
Inst libzstd1:i386 (1.4.4+dfsg-3 Ubuntu:20.04/focal [i386])
Inst zlib1g:i386 (1:1.2.11.dfsg-2ubuntu1 Ubuntu:20.04/focal [i386])
Inst libbsd0:i386 (0.10.0-1 Ubuntu:20.04/focal [i386])
Inst libexpat1:i386 (2.2.9-1build1 Ubuntu:20.04/focal [i386])
Inst libunistring2:i386 (0.9.10-2 Ubuntu:20.04/focal [i386])
Inst libidn2-0:i386 (2.2.0-2 Ubuntu:20.04/focal [i386])
Inst libpng16-16:i386 (1.6.37-2 Ubuntu:20.04/focal [i386])
Inst libxau6:i386 (1:1.0.9-0ubuntu1 Ubuntu:20.04/focal [i386])
Inst libxdmcp6:i386 (1:1.1.3-0ubuntu1 Ubuntu:20.04/focal [i386])
Inst libxcb1:i386 (1.14-2 Ubuntu:20.04/focal [i386])
Inst libx11-6:i386 (2:1.6.9-2ubuntu1 Ubuntu:20.04/focal [i386])
Inst libfreetype6:i386 (2.10.1-2 Ubuntu:20.04/focal [i386])
Inst libfontconfig1:i386 (2.13.1-2ubuntu3 Ubuntu:20.04/focal [i386])
Inst libgd3 [2.2.5-5.2ubuntu0.19.10.1] (2.2.5-5.2 Ubuntu:20.04/focal [amd64])
Inst libjpeg-turbo8:i386 (2.0.3-0ubuntu1 Ubuntu:20.04/focal [i386])
Inst libjpeg8:i386 (8c-2ubuntu8 Ubuntu:20.04/focal [i386])
Inst libjbig0:i386 (2.1-3.1build1 Ubuntu:20.04/focal [i386])
Inst libwebp6:i386 (0.6.1-2 Ubuntu:20.04/focal [i386])
Inst libtiff5:i386 (4.1.0+git191117-2build1 Ubuntu:20.04/focal [i386])
Inst libxpm4:i386 (1:3.5.12-1 Ubuntu:20.04/focal [i386])
Inst libgd3:i386 (2.2.5-5.2 Ubuntu:20.04/focal [i386])
Conf gcc-10-base:i386 (10-20200411-0ubuntu1 Ubuntu:20.04/focal [i386])
Conf libgcc-s1:i386 (10-20200411-0ubuntu1 Ubuntu:20.04/focal [i386])
Conf libcrypt1:i386 (1:4.4.10-10ubuntu4 Ubuntu:20.04/focal [i386])
Conf libc6:i386 (2.31-0ubuntu7 Ubuntu:20.04/focal [i386])
Conf liblzma5:i386 (5.2.4-1 Ubuntu:20.04/focal [i386])
Conf libuuid1:i386 (2.34-0.1ubuntu9 Ubuntu:20.04/focal [i386])
Conf libzstd1:i386 (1.4.4+dfsg-3 Ubuntu:20.04/focal [i386])
Conf zlib1g:i386 (1:1.2.11.dfsg-2ubuntu1 Ubuntu:20.04/focal [i386])
Conf libbsd0:i386 (0.10.0-1 Ubuntu:20.04/focal [i386])
Conf libexpat1:i386 (2.2.9-1build1 Ubuntu:20.04/focal [i386])
Conf libunistring2:i386 (0.9.10-2 Ubuntu:20.04/focal [i386])
Conf libidn2-0:i386 (2.2.0-2 Ubuntu:20.04/focal [i386])
Conf libpng16-16:i386 (1.6.37-2 Ubuntu:20.04/focal [i386])
Conf libxau6:i386 (1:1.0.9-0ubuntu1 Ubuntu:20.04/focal [i386])
Conf libxdmcp6:i386 (1:1.1.3-0ubuntu1 Ubuntu:20.04/focal [i386])
Conf libxcb1:i386 (1.14-2 Ubuntu:20.04/focal [i386])
Conf libx11-6:i386 (2:1.6.9-2ubuntu1 Ubuntu:20.04/focal [i386])
Conf libfreetype6:i386 (2.10.1-2 Ubuntu:20.04/focal [i386])
Conf libfontconfig1:i386 (2.13.1-2ubuntu3 Ubuntu:20.04/focal [i386])
Conf libgd3 (2.2.5-5.2 Ubuntu:20.04/focal [amd64])
Conf libjpeg-turbo8:i386 (2.0.3-0ubuntu1 Ubuntu:20.04/focal [i386])
Conf libjpeg8:i386 (8c-2ubuntu8 Ubuntu:20.04/focal [i386])
Conf libjbig0:i386 (2.1-3.1build1 Ubuntu:20.04/focal [i386])
Conf libwebp6:i386 (0.6.1-2 Ubuntu:20.04/focal [i386])
Conf libtiff5:i386 (4.1.0+git191117-2build1 Ubuntu:20.04/focal [i386])
Conf libxpm4:i386 (1:3.5.12-1 Ubuntu:20.04/focal [i386])
Conf libgd3:i386 (2.2.5-5.2 Ubuntu:20.04/focal [i386])

Manfred Hampl (m-hampl) said : #4

I assume that the cause for your problem is a currently incomplete update action with new versions of libg3 on Ubuntu
see https://launchpad.net/ubuntu/+source/libgd2

Currently the number for the version in Ubuntu 19.10 is "higher" than the official version for Ubuntu 20.04, because for Ubuntu 20.04 the new version is only in focal-proposed.

I suggest that you try runing

sudo dpkg --purge libgd3
sudo apt install wine32

If the first command gives a dependency error, then run these commands instead:

sudo dpkg --purge --force-depends libgd3
sudo apt install wine32 -f

Jan (jan-vdv) said : #5

Thank you for the feedback.

Still got an dependency error, even with the second command. See below.

sudo apt install wine32 -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgphoto2-6 : Depends: libgd3 (>= 2.1.0~alpha~) but it is not going to be installed
 wine32:i386 : Depends: libc6:i386 (>= 2.28) but it is not going to be installed
               Depends: libwine:i386 (= 5.0-3) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Manfred Hampl (m-hampl) said : #6

What's now the output of

sudo dpkg --audit
apt-cache policy libgd3 libgd3:i386 wine wine32 libgphoto2-6

Jan (jan-vdv) said : #7

sudo dpkg --audit
root@JRadio:/etc# apt-cache policy libgd3 libgd3:i386 wine wine32 libgphoto2-6
libgd3:
  Installed: (none)
  Candidate: 2.2.5-5.2
  Version table:
     2.2.5-5.2 500
        500 http://za.archive.ubuntu.com/ubuntu focal/main amd64 Packages
libgd3:i386:
  Installed: (none)
  Candidate: 2.2.5-5.2
  Version table:
     2.2.5-5.2 500
        500 http://za.archive.ubuntu.com/ubuntu focal/main i386 Packages
wine:
  Installed: 5.0-3
  Candidate: 5.0-3
  Version table:
 *** 5.0-3 500
        500 http://za.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://za.archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status
wine32:i386:
  Installed: (none)
  Candidate: 5.0-3
  Version table:
     5.0-3 500
        500 http://za.archive.ubuntu.com/ubuntu focal/universe i386 Packages
libgphoto2-6:
  Installed: 2.5.24-1
  Candidate: 2.5.24-1
  Version table:
 *** 2.5.24-1 500
        500 http://za.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

Manfred Hampl (m-hampl) said : #8

What output do you receive for

sudo apt install wine32 libgphoto2-6 libgd3 wine32:i386 libc6:i386 libwine:i386

Jan (jan-vdv) said : #9

 sudo apt install wine32 libgphoto2-6 libgd3 wine32:i386 libc6:i386 libwine:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgphoto2-6 is already the newest version (2.5.24-1).
libgphoto2-6 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6:i386 : Depends: libgcc-s1:i386 but it is not going to be installed
              Depends: libcrypt1:i386 (>= 1:4.4.10-10ubuntu4) but it is not going to be installed
              Recommends: libidn2-0:i386 (>= 2.0.5~) but it is not going to be installed
 libwine:i386 : Depends: libfontconfig1:i386 (>= 2.12.6) but it is not going to be installed
                Depends: libfreetype6:i386 (>= 2.6.2) but it is not going to be installed
                Depends: libncurses6:i386 (>= 6) but it is not going to be installed
                Depends: libtinfo6:i386 (>= 6) but it is not going to be installed
                Depends: libasound2:i386 (>= 1.0.16) but it is not going to be installed
                Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
                Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
                Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
                Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
                Depends: liblcms2-2:i386 (>= 2.2+git20110628) but it is not going to be installed
                Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                Depends: libmpg123-0:i386 (>= 1.13.7) but it is not going to be installed
                Depends: libopenal1:i386 (>= 1.14) but it is not going to be installed
                Depends: libpcap0.8:i386 (>= 0.9.8) but it is not going to be installed
                Depends: libpulse0:i386 (>= 0.99.1) but it is not going to be installed
                Depends: libudev1:i386 (>= 183) but it is not going to be installed
                Depends: libvkd3d1:i386 (>= 1.0) but it is not going to be installed
                Depends: libx11-6:i386 but it is not going to be installed
                Depends: libxext6:i386 but it is not going to be installed
                Depends: libxml2:i386 (>= 2.9.0) but it is not going to be installed
                Depends: ocl-icd-libopencl1:i386 but it is not going to be installed or
                         libopencl1:i386
                Depends: ocl-icd-libopencl1:i386 (>= 1.0) but it is not going to be installed or
                         libopencl-1.1-1:i386
                Depends: zlib1g:i386 (>= 1:1.1.4) but it is not going to be installed
                Recommends: libcapi20-3:i386 but it is not going to be installed
                Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                Recommends: libdbus-1-3:i386 (>= 1.9.14) but it is not going to be installed
                Recommends: libgl1: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: libgnutls30:i386 (>= 3.6.5) but it is not going to be installed
                Recommends: libgsm1:i386 (>= 1.0.18) but it is not going to be installed
                Recommends: libgssapi-krb5-2:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libjpeg8:i386 (>= 2.0) but it is not going to be installed
                Recommends: libkrb5-3:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libodbc1:i386 (>= 2.3.1) but it is not going to be installed
                Recommends: libosmesa6:i386 (>= 10.2~) but it is not going to be installed
                Recommends: libpng16-16:i386 (>= 1.6.2-1) but it is not going to be installed
                Recommends: libsane:i386 (>= 1.0.24) but it is not going to be installed
                Recommends: libsdl2-2.0-0:i386 (>= 2.0.10) but it is not going to be installed
                Recommends: libtiff5:i386 (>= 4.0.3) but it is not going to be installed
                Recommends: libv4l-0:i386 (>= 0.5.0) but it is not going to be installed
                Recommends: libvulkan1:i386 (>= 1.2.131.2) but it is not going to be installed
                Recommends: libxcomposite1:i386 (>= 1:0.3-1) but it is not going to be installed
                Recommends: libxcursor1:i386 (> 1.1.2) 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 (>= 1.1.25) but it is not going to be installed
                Recommends: libxxf86vm1:i386 but it is not going to be installed
                Recommends: libgl1-mesa-dri:i386 but it is not going to be installed
                Recommends: libasound2-plugins:i386 but it is not going to be installed
                Recommends: gstreamer1.0-plugins-good:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Jan (jan-vdv) said : #10

After the above

I ran

sudo apt --fix-broken install

This did some stuff with libgd (sorry missed it, and can't scroll back enough to copy)

From apt log

Start-Date: 2020-04-16 08:04:48
Commandline: apt --fix-broken install
Requested-By: jvdvyver (1000)
Install: libgd3:amd64 (2.2.5-5.2, automatic)
End-Date: 2020-04-16 08:04:49

Then :

sudo apt install wine32 libgphoto2-6 libgd3 wine32:i386 libc6:i386 libwine:i386

It ended with

Processing triggers for libgdk-pixbuf2.0-0:i386 (2.40.0+dfsg-3) ...
E: Could not configure 'libc6:i386'.
E: Could not perform immediate configuration on 'libgcc-s1:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

It seams to be solved now.

I cannot explain what changed or why this worked.