Saturday, 20 June 2009

3 Ways to Install Latest Wine in Ubuntu 9.04 Jaunty Jackalope

I decided to put up this guide which shows how to install the latest Wine release in Ubuntu 9.04 using 3 different methods. The default Jaunty repositories come with Wine 1.0.1, but the latest release is 1.1.24 and a new version is available every two weeks, so here is a tutorial which explains how to get the last Wine release in Ubuntu or Kubuntu Jaunty.

I. Using the Wine PPA
A PPA (Personal Package Archives) is a separate repository which ships newer packages for various applications. You can use a PPA repository for installing newer versions of Amarok, or Wine, or Banshee etc. These repositories are hosted on Launchpad.

In order to get the latest Wine available, you can follow these easy steps:

1. Add the Wine PPA repositories to the /etc/apt/sources.list file
Open the /etc/apt/sources.list file as root with your favourite text editor (e.g. gksudo gedit /etc/apt/sources.list or sudo nano /etc/apt/sources.list) and enter your user password. Then add the following two lines to this file and save it:

deb jaunty main
deb-src jaunty main

You can also use Shift+Insert here. Then make sure to save the file and update the sources lists:

sudo apt-get update

After updating, this warning may appear:

W: GPG error: jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A9A06AEF9CB8DB0
W: You may want to run apt-get update to correct these problems

You can either ignore it, or (optionally), install the trusted key for these repositories. In order to get the key, follow the instructions from here. Notice that this is an optional step, so you can skip it or add the key later.

Then, install Wine:

sudo apt-get install wine

Press Y when it asks to install packages from untrusted sources. This should be all, the latest Wine should be now installed (at the time of writing, the version available in this PPA is 1.1.23).

II. Compile and Install Wine from Source
This method needs more time, but this way you get to compile your own version of Wine, without using any additional repositories. Here's what you have to do:

1. Install the needed dependencies and compiling tools
First, make sure you have the sources repositories enabled, that is, a line which starts with deb-src and looks like this:

deb-src jaunty universe multiverse

Notice that in Jaunty these are enabled by default, so, unless you deleted this line from the /etc/apt/sources.list file, you don't have to add anything here.

Next, type the following:

sudo apt-get build-dep wine

This command will fetch all the needed development libraries for compiling Wine, including the package build-essential, which is a meta-package consisting of tools needed to compile C/C++ sources like g++.

2. Get the Wine tarball from the official website
Download the Wine source from the official website (direct link here) and uncompress it (e.g. tar -xjf wine-1.1.24.tar.bz2).

3. Compile and install Wine
Make sure the current working directory is wine-1.1.24 (or whatever version you have), and issue the following commands:

make depend && make
sudo make install

This should be all. Notice that you can also use a different path and install as normal user:

./configure --path=/home/USER/usr
make depend && make
make install

This will install Wine inside the /home/USER/usr directory (replace USER with your username). In this case, make sure /home/USER/usr/bin is added to your $PATH variable, preferable before the other paths.

III. Using the WineHQ Ubuntu repositories
This is yet another method of getting the latest Wine on Ubuntu. It is similar with the first method, but instead of adding a PPA repository we'll add the WineHQ repositories. Follow the steps below:

1. Add the repositories to /etc/apt/sources.list
Add the following repositories to your sources.list file:

deb jaunty main

2. Update the sources lists
To update the sources lists use:

sudo apt-get update

With your user password.

3. Install Wine
To install Wine, just type:

sudo apt-get install wine

And this should be all.


jorge said...

what if I already have the older version of Wine installed, how do I upgrade to a newer version?

James said...


The 2 methods involving new sources for apt will still work for you. Install the new sources; then perform "apt-get update; apt-get upgrade". The new version will be installed, as desired.

jorge said...

James, thank you. I did this, using the Wine repository instead of Launchpad (Way #3 in the article) and it did upgrade me from my old 1.0.1 but now I have 1.1.23 not 1.1.24. Did I mess up?

Craciun Dan said...

No jorge, you didn't mess up. It means 1.1.23 is available in the repositories at the current time. 1.1.24 was released just two days ago and probably they hadn't built the packages yet, but the repository should be updated soon. Method #2 will definitely install the latest, if compiling and getting all those dependencies is not a problem for you.

Anonymous said...

Thank you for this article and the detail as to the status of WINE installing.

I have been one of the worlds greatest Kubuntu advocates. I am not a "troll".

All of this is overly convoluted and will not help XP converts (or dual booter's) increase the open OS base. Keep all the "choices" ISOLATED from the main install and newbie experience.

That in no way takes away our options. It simply presents better standards to new users.

MrRtd said...

Hi, what I did was to add the Wine repository from,
(I just followed the steps provided on that page. EASY)

twickline said...


You can also get the latest debs from budgetdedicated




Anonymous said...

You should add:
-gpg --import 387EE263.gpg
-sudo apt-key add 387EE263.gpg
to the third step make sure that the wine repo is secure.

Anonymous said...

I'm not a huge linux expert (only diddle with it a couple times a year) but it seems Ubuntu atleast is much further than it use to be (like 5.10 or whatever the last version I used years ago).

This quick little guide worked great, first thing you suggested worked great.

Anonymous said...

In the third method it should be:

sudo apt-get install wine


sudo apt-get install Wine

Linux is case-sensitive.

Craciun Dan said...

Just a typo. Thanks for pointing it out though.

ruby-rube said...

So I followed method 2 and successfully installed and compiled Wine 1.1.25.

Since I didn't use the uBuntu 9.04 installer it seems like it doesn't recognised that version 1.1.25 is installed. How would I manually remove everything I did if needed? The compiling tools, libraries, Wine itself (both sources and compiled versions).


Ahmad Qomaruddin said...

Try my step in my blog, It's may help.

Willy Jansen said...

this url might be useful too.

Anonymous said...

@Ahmad Qomaruddin

Please consider that all good people in this world cannot understand your language in your artistic blog. If you had provided a translated link...

I would have blessed you! Anyway thanks for sharing...