4

I 'm trying to install Wine on my Ubuntu system, but cannot complete the installation. I have read countless other Q & A but none of them seems to fix my problem. When I try to install it with

sudo apt-get install wine

I get this message:

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

I tried with Synaptic: (wine package has an exclamation mark instead of a check)

Could not apply changes!  
Fix broken packages first.

I click to fix the packages and then this error occurs:

E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

I have also tried commands like

sudo apt-get remove wine
sudo aptitude search wine
sudo dpkg -p Wine

but none of them worked as well. I 'm so confused right now that I might be missing something simple. I 'm a new Ubuntu user, so I don 't know advanced methods and terminal commands. Am I doing something wrong? I have only tried solutions and commands posted in this forum. Thanks in advance for the help!

Edit: After I ran

uname -a; lsb_release -a; apt-cache policy wine wine1.6; sudo apt-get remove wine; sudo apt-get install -f I get:

Linux tommy-Lenovo-Z50-75 3.19.0-33-generic #38~14.04.1-Ubuntu SMP Fri Nov 6 18:17:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty

apt-cache policy wine wine1.6

wine:
  Installed: (none)
  Candidate: 1:1.7.50-0ubuntu1
  Version table:
     1:1.7.50-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages
     1:1.6.2-0ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
wine1.6:
  Installed: (none)
  Candidate: 1:1.6.2-0ubuntu4
  Version table:
     1:1.6.2-0ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

sudo apt-get remove wine

Building dependency tree
Reading state information... Done
Package 'wine' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists... Done

sudo apt-get install -f

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Edit: I tried

$ sudo apt-get remove --purge wine
$ sudo apt-get install wine

even after running sudo apt-get update. The problem remains.

Edit (last and final): After an unsuccessful attempt to determine the broken packages, I will format my laptop to Ubuntu Gnome (latest version). Current version I run 14.04 LTS with Unity. Thanks for all your help, this thread should be closed. It seems my system is missing some packages so since it is freshly installed (2 weeks ago) I will just format it again. Thanks again for all the responses!

3 Answers3

2

Type the following into a terminal:

$ sudo apt-get remove --purge wine
$ sudo apt-get install wine

This should remove any held packages, and properly install Wine. Also make sure that you did not install Wine from source.

0
  1. You currently do not have any problem ... proved by :

    $ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    
  2. The PPA also does not have problems. There is a package wine for Trusty and this should install the package wine1.7 Check it with this link. As having tested this on my machine it works. The package wine forces the installation of wine1.7. I'm afraid you just forgot to run the command sudo apt-get update. Obviously you did it in the meantime (according to your updated question).

  3. The package wine is "only" a meta-package. You could also install wine with the command

    sudo apt-get install wine1.7
    
cl-netbox
  • 31,163
  • 7
  • 94
  • 131
A.B.
  • 90,397
0

This would repair the necessary links too.

> sudo apt-get install wine --fix-missing
dschinn1001
  • 3,829