Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I've tried to install wine in ubuntu 12.10 through terminal. I write this script to install wine: sudo apt-get install wine but its is showing this 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.
void@Void:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

please tell me some solution for this problem or tell me some alternative to install wine in my system.

share|improve this question

marked as duplicate by Gilles, Alvar, Warren Hill, Oli Sep 26 '13 at 10:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

have you tried the software center? – Alvar Sep 26 '13 at 10:02

Try this:

sudo dpkg --configure -a  # this will configure packages if needed
sudo apt-get install -f   # fix widespread packages errors

You may have to repeat these lines according to terminal's output. When it suggests you command, you should try that suggestion. And after you get rid of problems with packages, you should write this to install Wine:

sudo apt-get update       # update packages lists
sudo apt-get install wine # install wine
share|improve this answer

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