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 am running Ubuntu and trying to install Wine. When I run sudo apt-get install wine, it gives the following error:

The following packages have unmet dependencies:
 wine : Depends: wine1.4 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I have tried using the -f flag and this doesn't help. Ubuntu software centre returns a similar error.

Edit: Here is what is returned when trying to run sudo apt-get install wine1.4:

$ sudo apt-get install wine1.4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
The following packages have unmet dependencies:
 wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not installable
           Recommends: gnome-exe-thumbnailer but it is not going to be installed or
                       kde-runtime but it is not going to be installed
           Recommends: ttf-droid
           Recommends: ttf-mscorefonts-installer but it is not going to be installed
           Recommends: ttf-umefont but it is not going to be installed
           Recommends: ttf-unfonts-core but it is not going to be installed
           Recommends: winbind but it is not going to be installed
           Recommends: winetricks but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
share|improve this question
    
not adding the -f flag, only with the -f flag, so sudo apt-get install -f –  Gerhard Burger Jan 6 '13 at 12:26
    
How will it know I am trying to install Wine if I just do sudo apt-get install -f? –  microbug Jan 6 '13 at 12:29
    
It knows about the problems you had before, so it will know that you tried to install wine but failed, now it will try to correct it. If all goes right this command will actually install wine. –  Gerhard Burger Jan 6 '13 at 12:30
1  
@GerhadBurger ok, found the same info a few moments ago here. EDIT: Seems to work - thanks! –  microbug Jan 6 '13 at 12:43
1  
You're welcome, I flagged this question as duplicate of the question you mentioned to keep the site clean. Enjoy Ubuntu! –  Gerhard Burger Jan 6 '13 at 12:52
show 2 more comments

1 Answer

Try this file from WineHQ and run it as root or with the sudo command

  1. Download the dependency build file from here.
  2. Copy and paste it into a gedit and save it with a .sh extension
  3. Open terminal and run it as root i.e:

    sudo sh filename.sh
    
share|improve this answer
add comment

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.