Unable to install wine on ubuntu 14.04 lts

16,391

You can try one of the following:

sudo apt-get -f install

To force install the dependencies and such.

Or try installing it via the Ubuntu Wine Team PPA:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7
Share:
16,391

Related videos on Youtube

whizcreed
Author by

whizcreed

I am an IT consultant with years of experience in web development. I have worked in several profiles including tam leader, scrum master, business analyst and more. I have started coming up with my own online systems and websites to server different purposes. My most recent project is http://ResolutionList.com

Updated on September 18, 2022

Comments

  • whizcreed
    whizcreed over 1 year

    I am using following article to fix this issue: http://ubuntuforums.org/showthread.php?t=2246183

    This is the output I get:

    aditya@aditya-Vostro-3446:~/$ sudo apt-get purge wine
    [sudo] password for aditya: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package wine is not installed, so not removed
    0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
    aditya@aditya-Vostro-3446:~/$ sudo apt-get autoremove
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    
    0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
    aditya@aditya-Vostro-3446:~/$ 
    aditya@aditya-Vostro-3446:~/$ 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.6 but it is not going to be installed or
                     wine1.7 but it is not going to be installed
    E: Unable to correct problems, you have held broken packages. 
    

    And when I try to install wine using ubuntu software center I get following message:

    The following packages have unmet dependencies:

    q4wine: Depends: libc6 (>= 2.14) but 2.15-0ubuntu10.9 is to be installed
            Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed
            Depends: libqt4-dbus (>= 4:4.5.3) but 4:4.8.1-0ubuntu4.8 is to be installed
            Depends: libqt4-network (>= 4:4.5.3) but 4:4.8.1-0ubuntu4.8 is to be installed
            Depends: libqt4-sql (>= 4:4.5.3) but 4:4.8.1-0ubuntu4.8 is to be installed
            Depends: libqt4-xml (>= 4:4.5.3) but 4:4.8.1-0ubuntu4.8 is to be installed
            Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.1-0ubuntu4.8 is to be installed
            Depends: libqtgui4 (>= 4:4.5.3) but 4:4.8.1-0ubuntu4.8 is to be installed
            Depends: libstdc++6 (>= 4.1.1) but 4.6.3-1ubuntu5 is to be installed
    
    • whizcreed
      whizcreed over 9 years
      @karel please see this comment: askubuntu.com/questions/575706/… Do you still feel its a duplicate?
    • karel
      karel over 9 years
    • julka
      julka over 9 years
      0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded. means that you have 41 upgrade pending. First try cleaning out packages you do not need sudo apt-get autoremove. Then update your system sudo apt-get update && sudo apt-get upgrade. If there still are some packages not installed, go with sudo apt-get dist-upgrade. Note, that this command will remove packages conflicting with the ones being installed, favouring more important ones. Try again sudo apt-get install wine.
    • Elder Geek
      Elder Geek over 9 years
      The actual problem is: E: Unable to correct problems, you have held broken packages. I suggest you begin by following @julka advice in the comment above.
  • whizcreed
    whizcreed over 9 years
    The following packages have unmet dependencies: wine1.6 : Depends: wine1.6-i386 (= 1:1.6.1-0ubuntu1~ppa1~precise1) E: Unable to correct problems, you have held broken packages. The following packages have unmet dependencies: wine1.7 : Depends: wine1.7-i386 (= 1:1.7.18-0ubuntu1) E: Unable to correct problems, you have held broken packages.
  • whizcreed
    whizcreed over 9 years
    this is what i get in the end by using the ppa method: 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.7 : Depends: wine1.7-i386 (= 1:1.7.18-0ubuntu1)
  • blade19899
    blade19899 over 9 years
    What version of Ubuntu are you running AMD64 or i386? Or you can try to Install wine1.7-i386 then? like so: sudo apt-get install wine1.7-i386!
  • blade19899
    blade19899 over 9 years
    AMD64 or i386??
  • whizcreed
    whizcreed over 9 years
    uname output: Linux aditya-Vostro-3446 3.5.0-54-generic #81~precise1-Ubuntu SMP Tue Jul 15 04:02:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
  • whizcreed
    whizcreed over 9 years
    I believe it is 64... but why wont it even install why software center..
  • blade19899
    blade19899 over 9 years
  • whizcreed
    whizcreed over 9 years
    Do I need to install openjdk for wine to work?
  • whizcreed
    whizcreed over 9 years
    I get: icedtea-netx : Depends: openjdk-6-jre (>= 6b23~pre10~) but it is not going to be installed or openjdk-7-jre but it is not going to be installed