Feb 04, 2012 MicrosoftOffice. Microsoft Office is a commonly-used, proprietary office suite. Because the Microsoft Office suite is designed for Microsoft Windows, it cannot be installed directly onto a computer running Ubuntu. However, it is possible to install and run certain versions of Office using the WINE Windows-compatibility layer available in Ubuntu.
Translations of this page:简体中文
Installing WineHQ packages
The WineHQ repository key was changed on 2018-12-19. If you downloaded and added the key before that time, you will need to download and add the new key and run sudo apt update to accept the repository changes.
Ubuntu 18.04/Linux Mint 19.x do not provide FAudio, which is a dependency of current Wine. Follow the instructions in https://forum.winehq.org/viewtopic.php?f=8&t=32192 to install FAudio from the OBS. (FAudio packages for Ubuntu 19.10 and later are in the distro's universe repository.)
If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.
If your system is 64 bit, enable 32 bit architecture (if you haven't already):
Download and add the repository key:
Add the repository:
For this version: | Use this command: |
---|---|
Ubuntu 19.10 | sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main' |
Ubuntu 18.04 Linux Mint 19.x | sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' |
Ubuntu 16.04 Linux Mint 18.x | sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' |
Update packages:
Then install one of the following packages:
Stable branch |
---|
Development branch |
Staging branch |
If apt complains about missing dependencies, install them, then repeat the last two steps (update and install). See the FAQ entry on dependency errors for tips on troubleshooting dependency issues.
If you have previously used the distro packages, you will notice some differences in the WineHQ ones:
- Files are installed to /opt/wine-devel, opt/wine-stable, or /opt/wine-staging (depending on which version you installed).
- Menu items are not created for Wine's builtin programs (winecfg, etc.), and if you are upgrading from a distro package that had added them, they will be removed. You can recreate them yourself using your menu editor.
- Binfmt_misc registration is not added. Consult your distro's documentation for update-binfmts if you wish to do this manually.
- WineHQ does not at present package wine-gecko or wine-mono. When creating a new wine prefix, you will be asked if you want to download those components. For best compatibility, it is recommended to click Yes here. If the download doesn't work for you, please follow the instructions on the Gecko and Mono wiki pages to install them manually.
Installing without Internet
To install Wine on an Ubuntu machine without internet access, you must have access to a second Ubuntu machine (or VM) with an internet connection to download the Wine .deb package and its dependencies.
The procedure goes like this:On the machine with internet, add the WineHQ PPA, then cache just the necessary packages without actually extracting them:
Then cache just the packages necessary for installing wine, without extracting them:
Copy all of the .deb files in /var/cache/apt/archives to a USB stick:
Finally, on the machine without internet, install all of the packages from the flash drive:
The same instructions can also be used for an offline installation of the `winehq-staging` packages.
Microsoft Office For Mac
Compiling WoW64
Ubuntu's implementation of Multiarch is still incomplete, so for now you can't simply install 32-bit and 64-bit libraries alongside each other. If you're on a 64-bit system, you'll have to create an isolated environment for installing and building with 32-bit dependencies. See Building Biarch Wine On Ubuntu for detailed instructions for Ubuntu using LXC, and Building Wine for general information.
See Also
- Official WineHQ packages.
- Multiarch in Wine build dependencies
Install Wine Ubuntu 19
In the past, installing Wine to a portable distribution could be a lengthy struggle, fraught with peril, frustration, and chroots. But that gloomy age is gone now! Thanks to the widespread and mature live-system machinery developed by many distros, it shouldn't be hard to have your own portable installation of Wine.
Installing the Base Distro
The main thing you'll need is a properly formatted (FAT32) USB flash drive. To be sure you also have enough space, you'll probably want...
- At least 3 to 4 GB for the base distro, though some only require a few hundred MB
- 1 GB or more for Wine itself and any dependencies
- Another GB if you plan to keep and compile from source on the drive
- Anywhere from just a few to hundreds of GB for your programs and data, depending entirely on your needs
The next ingredient is the ISO image of whatever distro you want to run Wine on. If you don't have one in mind, two well-known Linux distros that historically focused on portability are KNOPPIX and Puppy, but most major distros including Fedora and Ubuntu now offer live-USB versions.
Ubuntu Install Wine Office For Mac 2017
Another distro you might find interesting is Zorin OS, which tries to make Linux as familiar to Windows users as possible and consequently includes a version of Wine right out of the box.
You can always just go to your preferred distro's website and download an ISO image, but another option definitely worth considering is the UNetbootin tool. Not only can this create your live-USB install from a pre-downloaded ISO, or download the ISO itself, but it makes configuring other settings for your live-USB simple, and can be used entirely from within Windows.
Mac computers have a picky boot-loader and will not accept the file structure typically used on live-USBs. As a result, even though UNetbootin runs on Mac OS X, it can't create a live-USB image bootable on OS X.
This doesn't mean you can't create a portable installation for running on Macs; the tool Mac Linux USB Loader supposedly can, but we haven't tested this software before. If that doesn't work, you may just need to follow special instructions for manually creating your live-USB (Ubuntu's live-USB for OS X instructions are a good example)
Whether you choose a live-USB creator or to follow your distro's specific instructions manually, just be sure to enable persistence when you install the distro to your USB. This setting will allow your live-USB to record any changes to settings and files when you log off, which is exactly what you need to install Wine and your programs to the drive.
Installing Wine and Programs
Ubuntu Install Wine Office For Mac 2017
Once you have a persistent live-USB ready and working, installing Wine itself shouldn't be too hard at all. If you're ok with the version packaged by the distro itself, you should be able to install Wine through the package manager. We also package recent development and staging versions of Wine for a few distros; you can find out more at our Downloads page.
If you want the cutting-edge, as long as your USB drive and host computer's RAM have enough space, downloading Wine from Git and Building Wine from source should also work essentially the same.
Just don't forget to always reboot or shutdown, then unplug your live-USB properly so that data isn't corrupted.
Office For Mac Free
Other Possible Ideas
This section is for noting other approaches that have definite disadvantages, but may actually be useful for some users. If you do come across a situation where one of these methods is preferable, feel free to move its entry to a new section with detailed instructions.
- If you really want or need to, remastering your distro's ISO image with Wine and your programs already installed, then writing it to your USB is possible. In fact, this used to be the required approach for portable Wine. Compared to a persistent live install though, this method results in an installation that is both more difficult to setup and less convenient to update.
- Another thing a remastered ISO image would allow for is theoretically putting your Wine install and distro on a DVD, rather than a USB. However, with the ubiquity of USB ports, using a DVD would have essentially no advantages over a flash drive (except the lower cost of the disk) but many disadvantages (longer boot times and even a rewritable DVD would have limited capacity for updates, which would be very inconvenient)
- Installing Wine and your prefixes and programs to a flash drive, without any underlying distro, is entirely possible. Besides being inherently less portable (it would only work on unix hosts with all necessary dependencies), you would need to configure each host system to properly access the files.
- Actually, if you're just interested in unix host systems, this might not be too hard. One could keep a script on the flash drive to do any necessary configuration.
- Would symlinking even be necessary, or could directories just be appended to the session's PATH variables?
- One last possibility is to still have a live-USB distribution, but rather than installing Wine through the OS with persistence, keep Wine outside the OS file-system on the flash drive. This method should still be wholly portable, but the OS would need to be configured to find all the files (preferably on mount without user input)
- This method does arguably keep the base OS image more stable, with Wine in a distinct overlay. Would that be a significant advantage though?
- If the Wine files can be kept in a different partition altogether, one could also use file-systems other than FAT for them.