Debian (Sarge, Ubuntu...)
A. English Dec 2010: I'm working on reviving the debian packages. I haven't done debian packaging in a while, so I've put an alpha build of 1.3.8 on http://www.austinenglish.com/blah. Currently only squeeze/i386, but if these work well, and there is interest, I can do the other releases/64-bit versions.
Recently  Ove Kaven has been assisting with Wine packages and users have reported in the mailing lists that they work well. Ove Kaaven [wine user May 2008] wrote: [He..] might not always build these in the future, though.[...] I've rebuilt the official Debian 0.9.61-2 packages on etch. I put them up at http://people.debian.org/~ovek/wine/, you can apt-get them by putting this into sources.list:
[Nov 06] the Official Debian packages have had critical parts apparently split into different packages even though they are needed for Wine to work. S. Ritchie who does the Ubuntu packages offered [Nov 06]: what I hear my packages work on Debian.
In the past, the official Debian maintainer has not always included the latest Wine packages. Update 7 March 2005: According to the Wine-Devel Mailing List, The Debian maintainer has included the latest Wine in Unstable.
J. Huizer: debian splits audio support into several different packages; or at least that is what it used to do; you can also choose to download packages directly from winehq.org, those are updated more frequently then the debian packages D. Phillips confirmed this: For Debian [and sound], I had to download the libwine-alsa and libwine-jack packages before those choices appeared in the wineconf panel [using winecfg ]. I have not severely tested the latest JACK support[...]. wine archive
The Wine project hosts up-to-date packages for Debian at this page. Graphical instructions for Synaptic users are provided there as well.
S. Richie [May 06]:[in reply to a query about wine packages for Sarge] if anyone here wants to build them, I'll be more than happy to put them in the apt repository alongside the Ubuntu ones. wine archive
B. Klein [Sept09] Scott's not doing the Debian packages any more; that's my job (with Maurilio providing the space for the repository and archives).
budgetdedicated has been permitting wine to be supplied from their servers but it has had some outages such as in Sept 09. However this was not their fault. A wine develper noted: Please note that the outage was my fault rather than budgetdedicated's -[he then confirmed he had fixed the problem]
To download and install, the easier way is to use the following APT repository.
Wine's APT repository for Debian
deb http://wine.sourceforge.net/apt/ binary/ deb-src http://wine.sourceforge.net/apt/ source/
So, edit the file /etc/apt/sources.list in root, using your favorite text editor, and copy/paste these address; anywhere will do but the best is to paste them at the end.
Then, launch apt-get update && apt-get install wine as the user root :
Install an up-to-date version of Wine
$ su - Password: # apt-get update [...] Reading Package Lists... Done # apt-get install wine
It's possible that APT suggests to install winesetup. Don't do that, however, because winesetup is available only in the debian repository, and will conflict...
A user [Jun 06] edited his /etc/apt/sources.list to add a line:
as describe on the download page. When I next tried to run apt-get update it failed with the message "Malformed line 10 in source list" deb http://wine.sourceforge.net/apt/binary
N .Henry: The line has a typo, and should be:
- deb http://wine.sourceforge.net/apt/ binary/ (space between / and binary)
Be prepared to be dropped by the server. I regularly have to remake the connection about 10 times on dialup to get the update, at about 1MB at a time. wine archive
kiwipete wineuser sept 08: This is derived from problems with update manager so I thought id try the terminal to update. I have version 8.04.1
- W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.
- GPG error: http://wine.budgetdedicated.com hardy Release: The following signatures were invalid: BADSIG 58403026387EE263 Scott Ritchie [redacted]
- W: GPG error: http://falcon.landure.fr hardy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY :1CA3E3239FA7DC39 W: Failed to fetch http://wine.budgetdedicated.com/apt/dists/hardy/Release
- W: Some index files failed to download, they have been ignored, or old ones used instead.
- W: You may want to run apt-get update to correct these problems
If I run the sudo apt get again, it is the same error. What's happening here please?
Paul: Google is your friend. http://www.google.com/search?hl=en&rlz=1B3GGGL_enUS280US280&q=apt+bad+signatures+ubuntu&btnG=Search
Using dpkg (for x86_64 machines)
If you have a 64 bit distro, apt won't be able to use this repository as is. However, you can still install the packages by hand, and they will run fine in i386 compatibility mode. Download the wine and the libwine packages from http://wine.sourceforge.net/apt/binary/ . Install them with:
sudo dpkg -i --force-architecture wine*deb libwine*deb
Check that the required libraries are here too - this command helps:
Check whether required dynamic libraries are installed
ldd -r `which wine`
If anything is not found, you don't have the 32-bit compatibility libraries yet. Wine only requires the very mimimum. The package name is for a Ubuntu, but that shouldn't make any difference.
Install 32-bit compatibility libraries
sudo apt-get install ia32-libs
According to Winehq Bugzilla entry 18141 there has been a single report or claim that: Apparently Debian does not install all the Wine components through Synaptic. A user reported I've reinstalled it through apt-get and it's working fine now.
Then after wine installed, you can try to install windows software. Set up your wine with winecfg or you can use a GPL windows installer such as Winetools. See the corresponding section in this wiki for how to install it, and how to patch it for the installation of Microsoft software in your own language.
If there's a problem, then it's time for some investigation. You can use the Talk area of this page to discuss your problems.
Debug Versions Of Wine
When filing a bug, the developers ask you to install a version of wine with debug symbols. This is because a debug version provides more detail, and that in turn can help a developer track down a fault. Distributions often remove debug symbols as this makes the installation smaller and perhaps a little faster, but when tracking down bugs - you need the full package with debug symbols. You can either download it or compile wine yourself, which builds by default with debug symbols.
Winehq Bugzilla entry 20447 [Oct 09 ]what is debug symbols package? [..] all I have is gdb and no idea how to "get another backtrace" with specific symbols.
N. Sivov: Something like that http://packages.debian.org/sid/libwine-dbg-unstable. It's a separate package that should be installed along with binary build. Install corresponding version and get backtrace like you already did. If there's no wine-dbg available for 1.1.32 consider to build wine from source (it's very simple).
Compiling wine on Debian
jorl17 wine user Aug 08: You could (and probably should also) visit the GIT section of the wine website (http://www.winehq.org/site/git) [... for] build-dependencies you can just do [as root] apt-get build-dep wine as root. Code:
sudo apt-get build-dep wine
:~/wine-git$ CC="ccache gcc" ./configure --verbose checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking whether make sets $(MAKE)... yes checking for gcc... ccache gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.
A. English wineuser jun 08: You need lots of dependencies, namely, a compiler. Look at [the official wiki]: http://wiki.winehq.org/Recommended_Packages
V. Margolen [Nov 06]: Wine packages for Debian split important Wine parts into separate packages:
- fonts, few not essential programs, symlinks and _premade_ content of ~/.wine directory (with ~/.wine/c as default c: drive)!!!
- libwine - all the builtin dlls
- wine-utilsexplorer, winecfg, winepath, cmd.exe, iexplore, winedbg)
- and many other packages.
Also as default it's using "winelauncher" instead of standard "wine" binary. That makes it that much more complicated to troubleshoot any problems that users might have. So in case anyone having problems with Debian or Debian based distro, please check that all the "*wine*" packages installed. ... Can we ask packagers to package all parts of Wine into one single package? If they prefer, they can package optional sound drivers separately (arts, esd, jack, nas). Same for documentation, and development headers. However everything else is essential to Wine and most programs that run under it.
Also can packagers keep default method of starting Wine the same without using any additional scripts for starting Wine? And of course, if any alterations has been made, state so in the distro specific readme file.
S. Ritchie: I tried to get my packages put into Debian [...] the packages are split in this broken way as "policy", I need to file a separate bug report against the package for each application that breaks (and each debian-specific change that does no good), nobody could upload my current version of the package since only the official maintainer can make a non-security fix [...] Ubuntu, on the other hand, accepted my packages with open arms. So now I run and package for Ubuntu, and from what I hear my packages work on Debian. [it is difficult] troubleshooting this issue when it's so frequently Debian's fault and there's nothing we can do about it other than tell users that Debian is messed up. I'd really hate to have to go back to the days where we told users to compile Wine themselves.
A. Acoverde de Roche [Jun 06]:
freetype.c:106: error: 'FT_Get_Module' undeclared here (not in a function) freetype.c:106: warning: type defaults to 'int' in declaration of'pFT_Get_Module' freetype.c: In function 'WineEngGetFontData': freetype.c:3698: error:'TT_Face' undeclared (first use in this function) freetype.c:3698: error:
to fix this compile error, I have deinstalled the package freetype2-dev (freetype 2.2.1) from my Debian system and I got a "build complete" with the package libttf-dev (freetype 1.5) already installed on my system.
It seems to be a conflict between two installed header versions.
After doing this I have got a segfault with gcc-4.1 when compiling Wine 0.9.4 with freetype 1.5, but works using CC variable when calling the configure script to change gcc version, like this wine archive:
- /src/wine-0.9.4$ CC=gcc-3.3 ./configure
M. McCormack [Jun 06]: With Debian/amd64 unstable which has autoconf 2.59.cvs.2006.06.05-1, I get:
- config.status: WARNING: tools/wmc/Makefile contains a reference to the variable `datarootdir' which seems to be undefined. Please make sure it is defined.
Alexandre is wondering whether it might be an autoconf bug. wine archive
Articles: Debian Wine installation