12

So, after setting up my installation of Xubuntu yesterday, I tried to install Wine 1.7 using ppa:ubuntu-wine/ppa. However, after doing sudo apt-get install wine1.7, it keeps giving me this error:

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-amd64 (= 1:1.7.44-0ubuntu1) but it is not going to be installed
           Depends: wine1.7-i386 (= 1:1.7.44-0ubuntu1)
E: Unable to correct problems, you have held broken packages.

I've tried several solutions that I've found online, such as autoremoving, adding the i386 architecture, cleaning up my packages, and fixing my apt-get installs. However, after trying all of the solutions that I could find, wine1.7 is still not installing. I'm not sure if this is my computer's fault or the ppa's fault, but if others could share their finds that would be great.

Thanks, Elly

As requested, here's the output for apt-cache policy wine1.7 wine1.7-amd64 wine1.7-i386:

wine1.7:
  Installed: (none)
  Candidate: 1:1.7.44-0ubuntu1
  Version table:
     1:1.7.44-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ wily/main amd64 Packages
wine1.7-amd64:
  Installed: (none)
  Candidate: 1:1.7.44-0ubuntu1
  Version table:
     1:1.7.44-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ wily/main amd64 Packages
wine1.7-i386:i386:
  Installed: (none)
  Candidate: 1:1.7.44-0ubuntu1
  Version table:
     1:1.7.44-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ wily/main i386 Packages  

and the output for sudo apt-get install wine1.7-amd64 wine1.7-i386:

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-amd64 : Depends: libgphoto2-port10 (>= 2.5.2) but it is not installable
                 Recommends: libgnutls26 but it is not installable
                 Recommends: wine-gecko2.34 but it is not installable
                 Recommends: wine-mono4.5.4 but it is not installable
 wine1.7-i386:i386 : Depends: libgphoto2-port10:i386 (>= 2.5.2) but it is not installable
                     Recommends: libgnutls26:i386 but it is not installable
                     Recommends: libpcap0.8:i386 but it is not going to be installed
                     Recommends: wine-gecko2.34:i386 but it is not installable
                     Recommends: wine-mono4.5.4:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.
  • Edit your question and add the output of apt-cache policy wine1.7 wine1.7-amd64 wine1.7-i386 – A.B. Oct 23 '15 at 18:52
  • @A.B. Edited the main post with the output. – Elly Oct 23 '15 at 19:02
  • Start sudo apt-get install wine1.7-amd64 wine1.7-i386 – A.B. Oct 23 '15 at 19:13
  • @A.B. Also edited into the main post. – Elly Oct 23 '15 at 19:16
6

The needed packages are currently not available for Wily. Check this filtered page.

Wait some days and the Wily packages are likely to be available. In the meantime, install the Vivid packages:

wget http://mirrors.kernel.org/ubuntu/pool/main/libg/libgphoto2/libgphoto2-port10_2.5.4-1.1ubuntu1_i386.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/libg/libgphoto2/libgphoto2-port10_2.5.4-1.1ubuntu1_amd64.deb
sudo dpkg -i libgphoto2-port10*.deb
sudo apt-get install -f
sudo apt-get install wine1.7
  • Thanks for the help! I'll try installing it again next week and I'll reply with how it goes. – Elly Oct 23 '15 at 19:22
  • Generally asking, is it possible to install older packages when I need them urgently? – apex39 Oct 26 '15 at 16:22
  • 2
    Small update. It's 2015-11-10 and the problem remains. According to launchpad, wine1.7 most recent build in the ppa is 11 weeks old; wily is younger than that. – user1129682 Nov 10 '15 at 9:14
  • Please, provide output of find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \; – apex39 Nov 23 '15 at 16:33
  • The packages from the wine-ubuntu ppa have not been updated regularly because one of the developers has been occupied by his day job, while the other one's computer is not working. – Zauber Paracelsus Dec 5 '15 at 19:55
10

The dependency it fails on is libgphoto2-port10, which isn't Wily. You can try manually installing the DEB files from Trusty:

http://packages.ubuntu.com/trusty/libgphoto2-port10

  • 1
    This is the solution, thank you very much! I have just went by this link, downloaded the libgphoto2-port10_2.5.3.1-1ubuntu2_i386.deb package, clicked to install it and the problem is gone. @elly consider marking this answer as the solution perhaps, we have already been waiting enough (following the A.B.'s recommendation) to get nothing, D.B.'s solution is much more practical. – Ivan Nov 4 '15 at 15:39
  • You should also consider the wine-staging package. I find that it is usually more up to date than the wine1.7 package/ppa – D. B. Nov 5 '15 at 16:30
  • This worked for me as well, dlded both packages – Ced Nov 23 '15 at 21:56
  • Wily 64 bit version and Wily 32 bit version – EECOLOR Dec 9 '15 at 18:36
4

You still can use PlayOnLinux on (X)Unbuntu 15.10.

With PlayOnLinux you create (and safe remove) 'virtual drives' (in /home/{user}/.PlayOnLinux/wineprefix/ ) with different Wine versions and different settings.

It's in 15.10 repository:

sudo apt-get install playonlinux

In the program: Menu -> Tools -> Manage Wine Versions

You can install Wine versions (x86 or x64) you need, including 1.7 (latest 1.7.54), and then use in 'virtual drives'.

Programs from PlayOnLinux 'virtual drives' you can run like this:

/usr/share/playonlinux/playonlinux --run "Evernote.5.8.13"

And, of course, you can add .desktop entry in /home/{user}/.local/share/applications/

Imho, it's more convenient than pure Wine anyway.

  • Op wanted wine1.7 PlayOnLinux is just a wine wrapper that still uses wine 1.6 – tomodachi Nov 22 '15 at 20:42
  • 1
    In PlayOnLinux you can use Wine version you choose for particular 'virtual drive'. And it can install 1.7 on 15.10, even though apt-get install wine1.7 fails as described above. – Viktor Nov 23 '15 at 20:06
2

Since Ubuntu 15.10 (Wily Werewolf) and Debian 8, you can install the package wine-development, without needing any additional ppa's, which installs the latest development version.

Once installed, the following executables will be available: wine-development, winecfg-development, etc; instead of the traditionals wine, winecfg, etc.

Update

Wine 1.8 and 1.9 have been released; and are available for Ubuntu 15.10 Wily Werewolf. To install them, you can add a new ppa created by the wine theam:

sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install --install-recommends winehq-devel

For more information, you can take a look at the Ubuntu section on the Official Wine Wiki.

0

If you dont need the very latest version of Wine you can always just do:

sudo apt-get install wine winetricks
  • wine : Depends: wine1.6 but it is not going to be installed – apex39 Oct 27 '15 at 21:32
0

If wine installation fails with broken dependencies like

wine : Depends: wine1.6 but it is not going to be installed

and attempts to install wine1.6, reveal that it depends on libgphoto2-6:i386, which then appears to depend on non-installable libgphoto2-port10:i386, and an attempt to install libgphoto2-port10:i386 would remove the AMD64 version along with libsane and some other packages, then you likely have disabled "Recommended updates" in Software Sources configuration (e.g. I had only "Important security updates" checked and everything else unchecked).

Once I've re-enabled "Recommended updates", I've successfully installed wine.

protected by Community Apr 24 '16 at 0:06

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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