D
D
Daria Motorina2019-09-16 19:28:50
Wine
Daria Motorina, 2019-09-16 19:28:50

How to resolve conflicts when installing wine 4 on Ubuntu 16.04?

Data:
Ubuntu 16.04 64 bit system.
I wanted to install native half-life2 on Linux, some conflicts were created during the installation of dependencies, after that wine stopped working. The conflict is caused by the libpng12-0_1.2.54-1ubuntu1.1_i386 library.
I demolished the old wine, cleaned the i386 architecture packages, installed a new one according to the instructions here https://tecadmin.net/install-wine-on-ubuntu/

Installation history

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-get install --install-recommends winehq-devel
sudo apt-get install --install-recommends winehq-stable
sudo apt-get install wine-stable
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable

After several attempts to install the result is the same:
Errors were encountered while processing:
 /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Synaptic shows broken packages, if I demolish them, wine is demolished and the problem disappears.
5d7fb4ec6ddfa405216770.png
I'm afraid to delete the existing libpng12-0 - it pulls half the system in dependencies. It conflicts with the same version for i386, as I understand it.
5d7fb7350fc13508499555.png
5d7fb7a910cd0119761225.png
The command sudo apt install -f gives the same error:
force install

[email protected]:~/Programs$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libpng12-0:i386
The following NEW packages will be installed:
libpng12-0:i386
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
157 not fully installed or removed.
Need to get 0 B/122 kB of archives.
After this operation, 304 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 279752 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libpng12-0/changelog.Debian.gz', which is different from other instances of package libpng12-0:i386
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How to competently resolve this conflict and how can you check the steps for resolving the conflict so as not to mess up even more firewood?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2019-09-16
@glaphire

install -f swears that /usr/share/doc/libpng12-0/changelog.Debian.gz (this is a changelog and it’s not needed) is from another package, you can rename it, but I don’t know what it will break further

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question