Unable to install wine 1.8 or 1.9

Questions about Wine on Linux
Locked
waranty92
Newbie
Newbie
Posts: 3
Joined: Wed Aug 17, 2016 2:56 am

Unable to install wine 1.8 or 1.9

Post by waranty92 »

Hi guys I am on Ubuntu 16.04.1 X64 and haveing issue with installing wine https://wiki.winehq.org/Ubuntu tried online method and get this answer

Code: Select all

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-devel : Depends: wine-devel (= 1.9.16~ubuntu16.04.1)
E: Unable to correct problems, you have held broken packages.
when I try installing wine1.8 like this
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.8
I get this error

Code: Select all

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine1.8 : Depends: wine1.8-amd64 (= 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1) but it is not going to be installed
           Depends: wine1.8-i386 (= 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1)
           Recommends: fonts-droid but it is not installable
E: Unable to correct problems, you have held broken packages.
what should i do to correctly install wine ?

Thank you in advance
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to install wine 1.8 or 1.9

Post by dimesio »

waranty92
Newbie
Newbie
Posts: 3
Joined: Wed Aug 17, 2016 2:56 am

Re: Unable to install wine 1.8 or 1.9

Post by waranty92 »

this did not helped I get same error
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to install wine 1.8 or 1.9

Post by dimesio »

Ask for help on the Ubuntu forum. This is a package manager problem.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Unable to install wine 1.8 or 1.9

Post by Bob Wya »

waranty92 wrote:

Code: Select all

...
 wine1.8 : Depends: wine1.8-amd64 (= 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1) but it is not going to be installed
           Depends: wine1.8-i386 (= 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1)
...
You appear to have a broken (in-place) upgrade to 16.04 - I would say you need to fix that first!!
In practice that means making sure:
  • all your ppa repositories point at the xenial 16.04 release
  • purging any remaining (installed) packages from 15.10 ppa repositories
A quick 'n' dirty check for stale 15.04 ppa 's would be:

Code: Select all

grep -R ' wily ' /etc/apt
Beyond that - shrugs :? ... Debian just isn't really my thing - package breakage - like yours - is just too common...

Bob
waranty92
Newbie
Newbie
Posts: 3
Joined: Wed Aug 17, 2016 2:56 am

Re: Unable to install wine 1.8 or 1.9

Post by waranty92 »

bush5150
Level 2
Level 2
Posts: 22
Joined: Sun Jun 19, 2016 5:24 am

Re: Unable to install wine 1.8 or 1.9

Post by bush5150 »

I noticed you're using the Ubuntu PPA for Wine. Have you considered using the official wine PPA? Sometimes the package builds are broken (I noticed that using Mint, which is based off of Ubuntu). As mentioned, I had problems installing wine a while back. I found my solution was what I suggested, use the official wine ppa. I did that and it worked. For ease, here's a simple guide (I've divided it into half, first part is for removing any existing version of wine from your system (which will make the install much cleaner) and the second part is for installing):

1. Remove wine, winetricks, and anything on your system with wine in its name:

Code: Select all

$ dpkg-query --list 'wine*'
and note each instance with "ii" in the far left column (meaning installed).
next, type

Code: Select all

$ sudo apt-get remove wineversion
where version is replaced with the wine version noted in above dpkg query.
Example if wine version 1.8 is installed

Code: Select all

$ sudo apt-get remove wine1.8
do this for every instance of wine in the query (i.e. winetricks).
Run dpkg to make sure every instance of wine is removed (will "un" in far left column for uninstalled).
Once all says "un", run:

Code: Select all

$ which wine
and note the location (if there is any). the default is /usr/bin/wine
next run:

Code: Select all

$ rm -r ~/.wine
$ rm -r ~/usr/bin/wine
$ rm -r ~/usr/bin/wine*
$ rm -r ~/usr/local/share/wine
Last, run:

Code: Select all

$ sudo apt-get autoremove
2. add the wine repository, update and install newest developer version (developer editions are much more updated and fluid. I find that they fix problems quicker than the build releases can).

Code: Select all

$ sudo add-apt-repository ppa:wine/wine-builds
$ sudo apt-get update
$ sudo apt-get install --install-recommends winehq-devel
Once installed, you can run this to get it setup:

Code: Select all

$ winecfg
Install anything that it suggests (gecko, mono, etc.).

That's it. You should have most up to date wine. Congrats!!!
Verify it by typing:

Code: Select all

$ wine --version
The response to that query should be whatever version is current for developer edition (as of right now it's 1.9.18).

DO NOT INSTALL WINETRICKS!!!


Enjoy!!!
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to install wine 1.8 or 1.9

Post by dimesio »

bush5150 wrote:
DO NOT INSTALL WINETRICKS!!!
I think what bush5150 means by this is "do not install the distro winetricks package." Downloading winetricks from https://raw.githubusercontent.com/Winet ... winetricks is fine, and preferable to the distro package anyway, as it will be the latest version.
Locked