Dependency problems installing wine 1.5 on ubuntu 12.04 x64

Solution 1:

It seems that multiarch is not enabled. This can happen if you upgrade Ubuntu from a previous version instead of performing a clean installation.

Run the following in a terminal:

echo "foreign-architecture i386" | sudo tee /etc/dpkg/dpkg.cfg.d/multiarch
sudo chmod 644 /etc/dpkg/dpkg.cfg.d/multiarch

Then try to install wine again:

sudo apt-get update
sudo apt-get install wine1.5

If you still get dependency problems, maybe it's because of this bug. wine1.5-amd64 recommends gettext, wine1.5-i386:i386 recommends gettext:i386 and both gettext conflict with each other. I managed to install wine1.5 via aptitude, install it if it's not already installed (sudo apt-get install aptitude):

sudo aptitude install wine1.5 gettext:i386-

The trailing minus (-) will tell aptitude to remove (or skip installation of) gettext:i386.

EDIT:

You have libgnutls26 version 2.12.19, probably installed from a ppa because the latest version available from ubuntu repos is 2.12.14. wine depends on libgnutls26:i386, which must be the same version as libgnutls26, but 2.12.19 is not available for installation. You can try to manually download and install libgnutls26:i386 version 2.12.19, or remove the ppa that installed libgnutls26 version 2.12.19.

Please run apt-cache policy libgnutls26 and post the output. Maybe I can help you to find out a solution.

Solution 2:

I had the same problem, but I had no issues anymore after carrying out the following commands:

sudo dpkg --configure -a
sudo apt-get install -f

Then I successfully tried

sudo apt-get install wine1.5