Installing WINE

I get the following error when I try to install WINE or the Zorin WINE layer app:

Error while installing package: trying to overwrite shared '/etc/gtk-3.0/settings.ini', which is different from other instances of package libgtk-3-0t64

Zorin 18 Pro

How can I fix this?

Before offering some tips - What method are you using to install WINE?

Under Software>Search>WINE.> select Wine and then Install in upper right.

Can you launch Software & Updates from the App menu. In the first tab, set Download from to "Main server".

Once done, you can close it and allow it to refresh.

Launch terminal and run

sudo apt update && sudo apt full-upgrade

Once complete, run

sudo apt install zorin-windows-app-support

This command above instructs the system to install wine the same as using Software store, but if it errors out, we can see more information in the terminal.

Completed with output:
jimmie@jimmie-MS-7A38:~$ sudo apt install zorin-windows-app-support
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zorin-windows-app-support is already the newest version (2.0.3).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libdecor-0-plugin-1-gtk:i386 : Depends: libgtk-3-0t64:i386 (>= 3.19.12) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

ran the fix-broken install and received the following output:

jimmie@jimmie-MS-7A38:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libgtk-3-0t64:i386
Suggested packages:
gvfs:i386
The following NEW packages will be installed:
libgtk-3-0t64:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
248 not fully installed or removed.
Need to get 0 B/3,165 kB of archives.
After this operation, 11.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 261577 files and directories currently installed.)
Preparing to unpack .../libgtk-3-0t64_3.24.41-4ubuntu1.3_i386.deb ...
Unpacking libgtk-3-0t64:i386 (3.24.41-4ubuntu1.3) ...
dpkg: error processing archive /var/cache/apt/archives/libgtk-3-0t64_3.24.41-4ub
untu1.3_i386.deb (--unpack):
trying to overwrite shared '/etc/gtk-3.0/settings.ini', which is different from
other instances of package libgtk-3-0t64:i386
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgtk-3-0t64_3.24.41-4ubuntu1.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo dpkg --add-architecture i386

sudo cp /etc/gtk-3.0/settings.ini /etc/gtk-3.0/settings.ini.bak

sudo rm /etc/gtk-3.0/settings.ini

sudo apt --fix-broken install

sudo dpkg --configure -a

I ran all of the commands you provided and have extracted the following from the terminal output:

dpkg: dependency problems prevent configuration of libdecor-0-plugin-1-gtk:i386:
libdecor-0-plugin-1-gtk:i386 depends on libgtk-3-0t64 (>= 3.19.12); however:
Package libgtk-3-0t64:i386 is not installed.

dpkg: error processing package libdecor-0-plugin-1-gtk:i386 (--configure):
dependency problems - leaving unconfigured

Errors were encountered while processing:
libdecor-0-plugin-1-gtk:i386

???

I just checked using apt search and libgtk3-0t64:i386 is not even present in the Ubuntu Universe Repository.

So, the package lists a dependency that cannot be fulfilled.

I am shaking my head.

sudo dpkg --remove --force-depends libdecor-0-plugin-1-gtk:i386

sudo apt install libgtk-3-0:i386 libpango-1.0-0:i386 libx11-6:i386 libxext6:i386 libxrandr2:i386

sudo apt --fix-broken install

sudo dpkg --configure -a

jimmie@jimmie-MS-7A38:~$ sudo apt install libgtk-3-0:i386 libpango-1.0-0:i386 libx11-6:i386 libxext6:i386 libxrandr2:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libgtk-3-0t64:i386' instead of 'libgtk-3-0:i386'
libpango-1.0-0:i386 is already the newest version (1.52.1+ds-1build1).
libx11-6:i386 is already the newest version (2:1.8.7-1build1).
libxext6:i386 is already the newest version (2:1.3.4-1build2).
libxrandr2:i386 is already the newest version (2:1.5.2-2build1).
Suggested packages:
gvfs:i386
The following NEW packages will be installed:
libgtk-3-0t64:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,165 kB of archives.
After this operation, 11.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 261574 files and directories currently installed.)
Preparing to unpack .../libgtk-3-0t64_3.24.41-4ubuntu1.3_i386.deb ...
Unpacking libgtk-3-0t64:i386 (3.24.41-4ubuntu1.3) ...
dpkg: error processing archive /var/cache/apt/archives/libgtk-3-0t64_3.24.41-4ub
untu1.3_i386.deb (--unpack):
trying to overwrite shared '/etc/gtk-3.0/settings.ini', which is different from
other instances of package libgtk-3-0t64:i386
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgtk-3-0t64_3.24.41-4ubuntu1.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Still errors. I really appreciate your helping me on this.

I do not know about how you feel, but this is getting absurd.

Let's wipe this issue:

sudo apt remove --purge zorin-windows-app-support

sudo apt clean && sudo apt autoremove

Now, installing Wine manually requires getting the key and repo:

sudo mkdir -pm755 /etc/apt/keyrings

use wget to retrieve the key:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -

Add Wine's direct repository:
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources

Install Wine:

sudo apt update && sudo apt install --install-recommends winehq-stable

Same type of errors after completing your commands:

dpkg: error processing archive /tmp/apt-dpkg-install-aU2Jk7/156-libgtk-3-0t64_3.24.41-4ubuntu1.3_i386.deb (--unpack):
trying to overwrite shared '/etc/gtk-3.0/settings.ini', which is different from other instances of package libgtk-3-0t64:i38
6
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

Unpacking libosmesa6:amd64 (25.0.7-0ubuntu0.24.04.2) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-aU2Jk7/156-libgtk-3-0t64_3.24.41-4ubuntu1.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Insanity par excellence!!!!!! Are these problems associated with Zorin18 or the depositories or WINE?

Ubuntu introduced the libgtk3-0t64 package beginning with Ubuntu 24.04.
There is no libgtk3-0t64:i386

Zorin OS is based on Ubuntu 24.04

However, Ubuntu 24.04 has been out for quite a while. It seems like this would have been addressed by the maintainers of WINE by now.
They set a dependency that cannot be filled.

Are you certain you set your server to Main Server?

Yes, just checked it. Would my best alternative be to just reinstall Zorin altogether or any other suggestions? I am trying to divorce from Windows by going to Zorin, but still need exe/msi functionality, however Linux terminal is not my forte.

Depending on what you're trying to do with WINE, you may be able to use Steam, Heroic, or Lutris for games, or Steam or Bottles for non-games. In all of those cases, installing the front-end will set up WINE for use with it, but not system wide. It also doesn't draw on whatever packages are involved in this fiasco. Bottles would be a last resort in my opinion--I like it, but it's harder to use. In all cases, you would launch your Windows program through whichever of the tools I named above you chose.

This sounds exactly like the problem I had with Ubuntu's packaged Nvidia driver that drove me to start using the .run. The issue was that libwayland-egl:i386 wasn't included, which Valve's .deb expected. The only solution was to get the package maintainer to fix it--and then it happened again. :confused:

1 Like

Thank you again for your help. I'll rethink what I need WINE for and go from there. I am not a gamer, but there are a couple of Windows apps that I really need, and they don't have Linux versions.

Thank you again, and perhaps share these problems with the Zorin development team.

Jim

2 Likes

Done.

1 Like