Sunday, 21 September 2008

How-To: Install Wine 1.1.5 in Ubuntu 8.04 from the WineHQ APT Repository

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:

winecfg

Related articles
How-To: Compile and Install Wine 1.1.4 in Ubuntu 8.04

Updated: Mar 31, 2008

6 comments:

Anonymous said...

Straight forward. Worked perfectly. Thank you.

Craciun Dan said...

You're welcome :)

linuxusr47 said...

I quoted your article(s) here: http://linuxbasics.org/forum/index.php?topic=332.0
As you can see in the thread your site was blocked due to having "blog" in the url. I gave you credit for the material, I do hope that is ok with you. If not please tell me and I will remove it. Thanks for the good info.
linuxusr47

Craciun Dan said...

That's perfectly OK with me, actually it's good to know it's useful to people.

Anonymous said...

I can only find 1.1.3 there. Infuriating how random linux can be...

Anonymous said...

How exactly do you edit the source.list file