Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have tried:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5

and it failed.

The error seems to be:

The following packages have unmet dependencies: wine1.5 : Depends: wine1.5-i386 (= 1.5.19-0ubuntu1) but it is not installable 
E: Unable to correct problems, you have held broken packages.

I need wine1.5-i386 but its not on Ubuntu, so I can't install wine because wine1.5-i386 is part of it. When I try to get wine in the Ubuntu Store I get the same error with less details.

share|improve this question
    
Just a theory: In "Software Sources", make sure you have "multiverse", "universe", "restricted", and "main" enabled (just make sure all of the various sources are checked), and then refresh the package information. –  Richard Dec 23 '12 at 23:19

4 Answers 4

When I got that problem (Which appears on either the 32 Bit or 64 Bit) the first thing I need to do is:

  1. Get easier tools

    To do some of the jobs I will mention below, first download aptitude and synaptic. This is because both of them deal better with broken packages, specially synaptic. so do a sudo apt-get install aptitude synaptic. You can skip this step but I really recommend this one to avoid some very rare package problems like yours.

  2. Eliminate Wine -

    (If this step does not let you eliminate wine, go to Step 3 then back to 2)

    If you open synaptic, look for ALL wine packages and purge them. Do not just delete them. If you delete them, the downloaded package will stay. Purge them which shows as Mark for Complete Removal if you right click the package inside Synaptic.

    If you use aptitude then do a sudo aptitude search wine. For each package that has an i in the beginning column (Which means installed), do a sudo aptitude purge PACKAGE_NAME.
    For example sudo aptitude purge wine1.5. After that do:

    sudo apt-get autoremove
    sudo apt-get autoclean

  3. Update & Upgrade -

    After you are sure they are completely removed do an update and afterwards an upgrade:

    sudo apt-get update
    sudo apt-get upgrade

  4. If steps 2 & 3 do not give any error and you finished them perfectly then (assuming you already added the PPA for Wine as you mentioned in your question, install Wine in one of the following ways:

    With Aptitude: sudo aptitude install wine1.5

    With Synaptic: Open Synaptic and look for the wine1.5 package. It will also install it's dependencies and solve any problems. In there you will see the i386 package also. If this is not selected automatically, select the package manually. Remember to also select winetricks which is needed to install additional packages for wine (.NET, DirectX...)

    With Apt: sudo apt-get install wine1.5

    With Software Center: Just search for Wine. Verify that it is the 1.5 version.

    Of the 4 I recommend first Synaptic, followed by aptitude and apt. Last is Software Center. Not because there is a package problem in general, but because, for this particular case, Software Center for example, gives little put error if something happens, does not show what package dependencies are being installed and one does not know until the end if everything worked or not.

  5. Verify that everything is correct by either running winetricks from the Dash or the terminal. Either way, the Wine Configuration Window should appear. This means everything is ok.

share|improve this answer
1  
Done but failed results: The following actions will resolve these dependencies: Keep the following packages at their current version: 1) wine1.5 [Not Installed] 2) wine1.5-amd64 [Not Installed] Leave the following dependencies unresolved: 3) wine-mono0.0.8 recommends wine1.5 4) wine-gecko1.8 recommends wine1.5-amd64 Accept this solution? [Y/n/q/?] –  user114477 Dec 14 '12 at 10:24
    
I see your problem. Might I ask if you had wine installed BEFORE adding the PPA?. It gave me the same problem. If yes, I will add to the answer 1 or 2 steps. –  Luis Dec 14 '12 at 11:57
    
I tried to install wine before PPA but it didn't work then i decided in the "Ubuntu Software Center" to press the check button on all the add-on's listed for Wine with allowed me to install a few add-on's for wine but not wine its self with was before PPA now there all deleted sense i followed the instructions. –  user114477 Dec 15 '12 at 11:28
    
Aptitude is obsolete - use APT or a frontend instead. –  Richard Dec 23 '12 at 23:15
1  
@searchfgold6789 - Nope. Aptitude is still for me and many others a better version of apt. With one command you can do everything. Keeps it simple. Just so examples is doing a show/search or reinstalling a package. Am pretty sure other Ubuntu users still use aptitude and even synaptic. –  Luis Dec 24 '12 at 1:32

You can install playonlinux and it'll automatically select the best version of wine.

sudo apt-get install playonlinux winetricks
share|improve this answer
    
Tried but same problem sense it depends on wine with cant be install because i don't have wine1.5-i386 there for the install didn't work. –  user114477 Dec 13 '12 at 14:14
    
thanks man, helped me :) trying to install Photoshop –  STEEL Sep 11 '13 at 3:59

It's quite possible the orig. issue here was a matter of date & time, possibly the ppa hadn't built all the packages or some other temporay packing issue.

So may not anything 'to fix'

It is quite simple to install the wine ppa packages, the same command can be used whether wine from ubuntu repos is installed or wine isn't or never has been installed. There is one potential issue if wine was or is currently installed & one wants to only install the ppa version of wine from a console with apt-get. (ie. not use apt-get upgrade

To install just the ppa wine & any deps from a console

1st. remove the metapackage if installed

sudo apt-get purge wine

Then same commands whether wine is or isn't installed

sudo add-apt-repository ppa:ubuntu-wine/ppa

Finish with

sudo apt-get update && \
sudo apt-get install wine

If one has any prior concerns the 1st. simulate, (-s) the install by going

sudo apt-get update && \
sudo apt-get -s install wine

If all is well just re-run without -s, sudo apt-get install wine

share|improve this answer

Your problem is linked to 32-64 bit architecture, so you need to configure a new foreign architecture (quantal/12.10 only):

sudo dpkg --add-architecture i386

Check your new arch is now available, update and install your package with apt:

sudo dpkg --print-foreign-architectures #now this should return 'i386'
sudo apt-get update; sudo apt-get install wine1.5 #and away you go!

Source: Why is Wine not installable on my system?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.