0

I'm unable to install wine in ubuntu 16.04.

sudo apt-get install wine

is giving me this error

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

Please help soon

The following packages have unmet dependencies:
 wine : Depends: wine1.6 but it is not going to be installed or
                 wine1.8 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sumitroy
  • 165
  • If you have not tried to install wine before (or if you cleaned up the mess from failed attempts), then it's a simple sudo apt install wine. The real question is what prior attempts you made, and what PPAs and other non-Ubuntu sources you used, so we can advise you how to clean up the mess. – user535733 Dec 23 '17 at 04:06

1 Answers1

0

You need to go one-by-one and install each of these dependencies to see what the problem is:

sudo apt-get update
sudo apt-get install wine1.6-i386
sudo apt-get install wine1.6
sudo apt-get install wine

Please post any errors, thanks.

mchid
  • 43,546
  • 8
  • 97
  • 150
  • @catch_me first, determine which version of wine you need to achieve your goals Second, if you need a specific wine version, I suggest looking at the Wine PPA channels – user175999 Jul 19 '16 at 06:28
  • @user175999 This seems pretty irrelevant to the error. When you go to install the specific versions explicitly, there should be an additional error describing what is impossible about the situation. Most of the time there is no specific version needed and ppa is not recommended unless that is the case. – mchid Jul 19 '16 at 06:33
  • it is important because to determine the necessary steps to provide a solution, we need to know which packages to remove and un-break in some kind of package manager – user175999 Jul 19 '16 at 06:35
  • @user175999 That's what I'm doing and I'm an expert at package management and haven't met a broken package management setup I couldn't fix in at least a couple of years now. – mchid Jul 19 '16 at 06:36
  • never said your answer was wrong...just saying that there are other ways to the same destination – user175999 Jul 19 '16 at 06:37
  • This is why we should be able to downvote comments, so that we can all weigh in on the issue :) – mchid Jul 19 '16 at 06:38
  • This is the error which i'm getting while installing wine1.6
    The following information may help to resolve the situation:

    The following packages have unmet dependencies: wine1.6 : Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu14) Recommends: fonts-droid but it is not installable E: Unable to correct problems, you have held broken packages

    – sumitroy Jul 20 '16 at 05:50
  • @catch_me Thanks, I have updated the answer. Please post any more errors. – mchid Jul 27 '16 at 13:55