Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running Ubuntu 12.04 64bit and I want to install wine. This is the output of sudo apt-get install wine:

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:
 wine : Depends: wine1.4 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I spend 4 hours and I have not made any progress. I don't get it. Here is how the dependencies looks like:

wine -> wine1.4
wine1.4 -> wine1.4-amd64
wine1.4-amd64 -> wine1.4-common
wine1.4-common -> wine1.4

I see a problem here.

Please help me.

share|improve this question
It looks like you have a package manager problem that is preventing it from being installed in the first place, can you run a sudo apt-get update and sudo apt-get upgrade and post the results in your question? – Jorge Castro Jul 4 '12 at 16:59
Is this still a problem? I see a dependency loop... – ObsessiveSSOℲ Sep 27 '12 at 22:52

3 Answers

Type in terminal

sudo apt-get autoremove
sudo apt-get  remove wine
sudo dpkg -p Wine
sudo apt-get install wine.

The first command will remove broken packages.second will remove wine. third will remove configuration files. so wine will be totally out from your system. and forth one will be install wine again on your system.

share|improve this answer

found the solution. Install "synaptic" from your software repository, and then use it to delete all your wine packages. Just search in synaptic for "wine", and then remove all of them. Then you should be able to install wine again.

share|improve this answer
Good suggestion but it didn't help. The only wine thing i had installed was winetricks. – Nikola Borisov Jun 24 '12 at 2:59

I don't know if you still has this issue, but I had a similar issue, and the first answer here helped: Can't install wine (or ia32-libs) in Ubuntu 12.10 64 bit

Briefly what you should do:

sudo nano /etc/apt/preferences

and insert the following lines:

Package: *       
Pin: release a=quantal*
Pin-Priority: 2012

enter ctrl+O to write the file. Pin-Priority must be greater than 1000.

Then you may downgrade the offending applications with:

sudo apt-get dist-upgrade

I remark, that I had wine installed correctly, but unfortunately I installed Intel's driver update, and after that did I have this dependency issue. Hope this will work!

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.