Dependency problem installing winehq in ubuntu 17.10

Questions about Wine on Linux
Locked
Joe82
Level 1
Level 1
Posts: 7
Joined: Mon Jan 29, 2018 9:38 am

Dependency problem installing winehq in ubuntu 17.10

Post by Joe82 »

Hi everybody, I am trying to install winehq-stable on ubuntu 17.10

When trying to install winehq-stable the output is

Code: Select all

winehq-stable : Depends: wine-stable (= 3.0.0~artful)
Trying wine-stable

Code: Select all

wine-stable : Depends: wine-stable-i386 (= 3.0.0~artful)
Trying wine-stable-i386

Code: Select all

Depends: libgphoto2-6:i386 (>= 2.5.10)
Trying libgphoto2-6:i386

Code: Select all

libgphoto2-6:i386 : Depends: libgd3:i386 (>= 2.1.0~alpha~)
Trying libgd3:i386
libgd3:i386 : Depends: libfontconfig1:i386 (>= 2.11.94)
Trying libfontconfig1:i386
libfontconfig1:i386 : Depends: fontconfig-config:i386 (= 2.11.94-0ubuntu2)
...and then, trying to install fontconfig-config:i386, it says fontconfig-config is already the most up to date version (2.12.6-0.1)

I've tried downloading installing fontconfig-config:i386, but the output is still the same. I've also tried installing with aptitude, but the output is the same.

Any help will be appreciated on how to solve this dependency hell. Thanks!
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Bob Wya »

@Joe82

Have you first added multilib support to your package manager with:

Code: Select all

sudo dpkg --add-architecture i386 
Bob
Joe82
Level 1
Level 1
Posts: 7
Joined: Mon Jan 29, 2018 9:38 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Joe82 »

Bob Wya wrote:@Joe82

Have you first added multilib support to your package manager with:

Code: Select all

sudo dpkg --add-architecture i386 
Bob
Yep, I added it before trying to install.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by jkfloris »

The 64bits fontconfig-config has to be the same version as the 32bit version.
Version 2.11.94-0ubuntu2 is in Ubuntu 17.10
Version 2.12.6-0ubuntu1 is in Ubuntu bionic

So you have to downgrade the 64bits package from 2.12 to 2.11
or try to force the 32bits package to 2.12, but maybe this will result in a dependency hell :-)
Joe82
Level 1
Level 1
Posts: 7
Joined: Mon Jan 29, 2018 9:38 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Joe82 »

jkfloris wrote:The 64bits fontconfig-config has to be the same version as the 32bit version.
Version 2.11.94-0ubuntu2 is in Ubuntu 17.10
Version 2.12.6-0ubuntu1 is in Ubuntu bionic

So you have to downgrade the 64bits package from 2.12 to 2.11
or try to force the 32bits package to 2.12, but maybe this will result in a dependency hell :-)
Tried this

Code: Select all

sudo apt-get install fontconfig-config=2.11.94-0ubuntu2
And here is the output

Code: Select all

Following packages have unmet dependencies:

libtheora0 : Depends: libcairo2 (>= 1.2.4) but it is not going to be installed 

 E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Also checked out my libcairo2 package version:

Code: Select all

libcairo2 is the most recent version (1.14.10-1ubuntu1) 
So still stuck in the same point :?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Dependency problem installing winehq in ubuntu 17.10

Post by dimesio »

Did you remove any previously installed Wine packages that aren't from WineHQ, and all packages that depend on them (e.g., wine-mono, wine-gecko, winetricks)? If not, you need to, as they can cause dependency conflicts.
Joe82
Level 1
Level 1
Posts: 7
Joined: Mon Jan 29, 2018 9:38 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Joe82 »

dimesio wrote:Did you remove any previously installed Wine packages that aren't from WineHQ, and all packages that depend on them (e.g., wine-mono, wine-gecko, winetricks)? If not, you need to, as they can cause dependency conflicts.
It is a SO fresh install, so it any other version of wine had been installed. Just in case I did an
apt-get remove --purge wine*
But nothing was installed.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Bob Wya »

@Joe82

Ok then - it's time to get back to basics 8)

What's the output from:

Code: Select all

grep wine -R /etc/apt/sources.list*

awk '{ if ($1 == "deb") print $3 }' /etc/apt/sources.list /etc/apt/sources.list.d/*

lsb_release -a
Please can you just use forum Code:

Code: Select all

Code
tags for terminal output and commands...
A jumble of Quote and Code tags - for terminal output/commands - just gets annoying... Very quickly... :roll:

Ta
Bob
Joe82
Level 1
Level 1
Posts: 7
Joined: Mon Jan 29, 2018 9:38 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Joe82 »

Sorry I see I confused tags twice :S

Code: Select all

grep wine -R /etc/apt/sources.list*

/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ artful main
/etc/apt/sources.list:# deb-src https://dl.winehq.org/wine-builds/ubuntu/ artful main

Code: Select all

awk '{ if ($1 == "deb") print $3 }' /etc/apt/sources.list /etc/apt/sources.list.d/*

artful
artful-updates
artful
artful-updates
artful
artful-updates
artful-backports
artful
artful-security
artful-security
artful-security
target=Packages]
artful
artful
artful
apt/stable/
apt/stable/

Code: Select all

lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 17.10
Release:	17.10
Codename:	artful
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by jkfloris »

Do you have any other packages installed from the bionic or a non-artful repo?

Code: Select all

apt-show-versions | grep "No available version in archive"
Joe82
Level 1
Level 1
Posts: 7
Joined: Mon Jan 29, 2018 9:38 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Joe82 »

jkfloris wrote:Do you have any other packages installed from the bionic or a non-artful repo?

Code: Select all

apt-show-versions | grep "No available version in archive"
Here's the output

Code: Select all

apt-show-versions | grep "No available version in archive"

libjpeg62-turbo:amd64 1:1.5.2-2+b1 installed: No available version in archive
openjdk-7-jdk:amd64 7u161-2.6.12-1 installed: No available version in archive
openjdk-7-jre:amd64 7u161-2.6.12-1 installed: No available version in archive
openjdk-7-jre-headless:amd64 7u161-2.6.12-1 installed: No available version in archive
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by jkfloris »

libjpeg62-turbo:amd64 1:1.5.2-2+b1 installed
This is a Debian package not an Ubuntu one. (!?) Why did you installed a Debian package?
Joe82
Level 1
Level 1
Posts: 7
Joined: Mon Jan 29, 2018 9:38 am

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Joe82 »

jkfloris wrote:
libjpeg62-turbo:amd64 1:1.5.2-2+b1 installed
This is a Debian package not an Ubuntu one. (!?) Why did you installed a Debian package?
It seems it was installed with java-7 (I had to install java-7 as I need it for a project)

Code: Select all

apt-cache rdepends libjpeg62-turbo:amd64
libjpeg62-turbo
Reverse Depends:
  openjdk-7-jre-headless
  openjdk-7-jre
  racket
cocapo
Newbie
Newbie
Posts: 1
Joined: Wed May 09, 2018 5:45 pm

Re: Dependency problem installing winehq in ubuntu 17.10

Post by cocapo »

Hey Im struggling with a similar issue getting wine to run on Ubuntu 17.10

Code: Select all

~/Downloads/metalign_041012$ wine ms.exe
0009:err:module:import_dll Library FSLCGCwin32.dll (which is needed by L"Z:\\home\\cocopalacelove\\Downloads\\metalign_041012\\ms.exe") not found
0009:err:module:import_dll Library netcdf.dll (which is needed by L"Z:\\home\\cocopalacelove\\Downloads\\metalign_041012\\ms.exe") not found
0009:err:module:attach_dlls Importing dlls for L"Z:\\home\\cocopalacelove\\Downloads\\metalign_041012\\ms.exe" failed, status c0000135
However, after inspecting ~/.wine/drive_c/windows/system32$, to make sure I was actually missing said dependencies, it found both, FSLCGCwin32.dll and netcdf.dll are in this directory.

I'm assuming wine is struggling to located the .dll files or it may be due to the location of my metAlign directory (~/Downloads/metalign_041012) , any thoughts?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Dependency problem installing winehq in ubuntu 17.10

Post by Bob Wya »

cocapo wrote:...
I'm assuming wine is struggling to located the .dll files or it may be due to the location of my metAlign directory (~/Downloads/metalign_041012) , any thoughts?
Your problem isn't remotely the same, as the Thread OP's repository issues... :roll:
Please don't Thread Hijack... Just start a new one.

When you do start a new thread... Please remember to mention what version of Wine you are using!

Thanks
Bob
Locked