A few days ago I wrote a tutorial showing how to compile Wine 1.1.4 from source in Ubuntu 8.04 and how to install it. In the meantime, version 1.1.5 was released on September 19, and since the compile from source and install procedure has not changed, I will explain here how to install the last Wine release using the official WineHQ APT repository. What follows are a few easy to do steps for getting the last Wine release up and running on your Ubuntu Hardy system.
Notice that this tutorial should work too with later Wine releases and Ubuntu 8.10.
1. Add the WineHQ key to your trusted APT keys
Open a terminal like GNOME-Terminal or Konsole and execute the following command:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
The first command will get the key and its output will be passed to the second one, sudo apt-key add -, which will add it to your trusted APT keys.
2. Add the WineHQ APT repository to your sources.list file
Edit your /etc/apt/sources.list file with root privileges using a text editor like nano or Gedit (e.g. sudo nano /etc/apt/sources.list or gksudo gedit /etc/apt/sources.list) and add the following two lines:
deb http://wine.budgetdedicated.com/apt hardy main
deb-src http://wine.budgetdedicated.com/apt hardy main
Make sure to save the file (CTRL+O, Enter, followed by CTRL+X in Nano) and proceed to the next step.
An alternative way to do this is to execute this command:
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
Eventually, you can also edit the file /etc/apt/sources.list.d/winehq.list and uncomment the last line if you want sources repositories to be enabled too.
3. Update the packages list and install Wine
To update the packages list use:
sudo apt-get update
Then install Wine using:
sudo apt-get install wine
This should be all. To configure Wine, run as normal user:
How-To: Compile and Install Wine 1.1.4 in Ubuntu 8.04
Updated: Mar 31, 2008