Wine is a compatibility layer that allows some Windows applications to run on Linux. Until Gutsy, Ubuntu did not include a working Wine package for AMD64. This page is designed to enable users of the AMD64 version of Ubuntu Dapper Drake or Edgy Eft to install Wine.
Installation on Hardy 8.04 and later
It is possible to install wine from the package manager. If you are using the Universe repositories, just mark the wine package for installation and apply the changes. It is recommended to configure Wine after, either by running 'Configure Wine' from the 'Wine' menu inside the 'Applications' navigation menu or by executing the winecfg command on the terminal. Alternatively, you can compile and install Wine from source at the BuildingWineFromSource page.
Hardy 8.04 (64-bit) & Sound
PulseAudio and Wine appear not to work so happily together when it comes to sound, luckily there is a workaround! Bypass PA with pasuspender and use the ALSA sound driver in wine.
Launch applications similarly
pasuspender wine app.exe
Installation on Gutsy 7.10
No special instructions are needed - you can install the Wine package that comes with Gutsy (0.9.46) by simply enabling the Universe repositories and selecting it for install. See Wine
Installation on Feisty 7.04
Packages for the 64 bit version of Ubuntu Feisty (7.04) are now available. To install them, use the "Newer Versions of Wine" instructions at Wine.
Installation on Edgy 6.10 or Dapper 6.06
At this moment there is no AMD64-package available. So the i386 architecture is forced to be used. First download the Wine package. You want the latest version available for either dapper or edgy, depending on which one you're using. New versions are released about twice a month. Next get the libxxf86dga1 package When the download fails, check the url on the redirect page, it could be that 'ubuntu' is missing in the url after /ubuntu.com/, for example  Save both of these files to your desktop. First we will install the needed libraries. Open a terminal and enter
cd ~/Desktop dpkg -x libxxf86dga1_1.0.0-0ubuntu3_i386.deb libs sudo cp ~/Desktop/libs/usr/lib/* /usr/lib32
Now that we have installed the libxxf86dga package, we will now install Wine. You may have to edit the command to reflect the version number of the .deb you downloaded.
sudo dpkg --force-architecture -i wine_0.9.30~winehq0~ubuntu~6.06-1_i386.deb
You can delete the files from your desktop when you're done.
If you followed the instructions above you may install the Sidenet script by hand. Sidenet adds fonts, a virtual c drive in you home folder, and sets up the windows dll's in the wine registry, however this method is not supported or recommended by the Wine developers. Users who installed with the below install script do not need to run the Sidenet setup because its included. Please do not run this setup script with sudo. Download the file to your desktop. Open a terminal and enter
cd ~/Desktop tar -xzvf sidenet.tar.gz sidenet
Then we change the directory and run the script.
cd ~/Desktop/sidenet ./setup
Installation Script with Sidenet included
cd ~/Desktop/wine ./wine
The script can also be used to upgrade existing installations. This script should not be run with sudo. For those that have used older scripts we no longer need to run a separate sidenet script afterwords. fatsheep has helped by giving the code that allows us to run everything from one script.
I had a long conversation on the developers mailing list. In it I found out that since they now have a 64bit open office they will be removing the ia32 packages. These packages contain the 32bit libaries for running 32bit applications on 64bit Ubuntu. Because of this some more packages will need to be installed. They are in the repositories and should install with apt. So open a terminal and enter.
sudo apt-get install ia32-libs
We may be adding more packages as development continues. If you have a problems make a post here. Mention that you are running Edgy if you are. Copy and paste into the post the complete error from the terminal. The error will contain the following.
err:module:load_builtin_dll failed to load .so lib for builtin L"winex11.drv":
fixme:wgl:X11DRV_setup_opengl_visual Failed to find a suitable visual
To fix this error you need to install/update the drivers for your video card to enable openGL. To test if they are enabled, type glxgears into a terminal. If you do not see a window open with 3 spinning gears it confirms that you need the drivers. Error 2
error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
The solution for people with Nvidia video cards that have this error can be found here. No Sound in Windows applications.You may need to install the 32bit sound libraries. You can use Synaptic to install lib32asound2 or open a terminal and type
sudo apt-get install lib32asound2
If you have other issues, questions, or need further assistance, you can visit the Forum thread this page was based on.